https://bettertoken.ai/v1, and the Model ID kimi-k3.
Key settings
Prerequisites
- Install OpenCode.
- Create a BetterToken API Key.
- In the Setup dialog, select OpenCode and the Kimi provider, then copy the
kimi-k3Model ID.
Configure with /connect
Start OpenCode and run:bettertoken as the provider id, and paste your BetterToken API Key. Then select bettertoken/kimi-k3. Restart OpenCode after saving.
Manual configuration
Open the global file~/.config/opencode/opencode.json. For one project, you can instead use opencode.json in the project root.
YOUR_API_KEY. Do not append /chat/completions to baseURL; OpenCode adds the request path itself.
Verify the connection
Open a project in OpenCode, selectbettertoken/kimi-k3, and send a short prompt. A normal response confirms the connection. Fully restart OpenCode after editing JSON.
Common errors
Related guides
Technical details
OpenCode provider and model provider
OpenCode provider and model provider
bettertoken is the provider id in OpenCode. Kimi is a model provider in BetterToken, and kimi-k3 is the Model ID written after bettertoken/.
