https://bettertoken.ai, and map kimi-k3 for the Haiku, Sonnet, and Opus roles.
Key settings
Prerequisites
- Install the latest Claude Code.
- Create a BetterToken API Key, then select Claude Code and the Kimi provider in the Setup dialog.
- Confirm that
kimi-k3is available in the Setup dialog.
Configure Claude Code CLI
Open~/.claude/settings.json on macOS/Linux or %USERPROFILE%\\.claude\\settings.json on Windows. Add or update the env object:
YOUR_API_KEY with your BetterToken API Key. If the file already contains env, add these fields to the existing object instead of creating a second one.
Configure the Claude Code VS Code extension
Open VS Code usersettings.json and add:
Verify the connection
Run this command in your project:settings.json change.
Common errors
Related guides
Technical details
Why map three model roles
Why map three model roles
Claude Code requests Haiku, Sonnet, and Opus roles. Map
kimi-k3 to all three variables so the same available Model ID is used for each role. Claude Code appends the Anthropic Messages path itself, so do not add /v1 to the Base URL.
