Skip to main content
To use Kimi K3 in OpenCode, connect BetterToken as an OpenAI-compatible provider. Enter your BetterToken API Key, the Base URL https://bettertoken.ai/v1, and the Model ID kimi-k3.

Key settings

Prerequisites

Configure with /connect

Start OpenCode and run:
Choose Other, enter 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.
Replace YOUR_API_KEY. Do not append /chat/completions to baseURL; OpenCode adds the request path itself.

Verify the connection

Open a project in OpenCode, select bettertoken/kimi-k3, and send a short prompt. A normal response confirms the connection. Fully restart OpenCode after editing JSON.

Common errors

Technical details

bettertoken is the provider id in OpenCode. Kimi is a model provider in BetterToken, and kimi-k3 is the Model ID written after bettertoken/.