Kimi Code benefits can be used with Claude Code and Roo Code, allowing you to enjoy Kimi's AI capabilities within your preferred coding tools.
Prerequisites
- An active Kimi membership with Kimi Code benefits enabled.
- An API Key (created in the Kimi Console).
Using with Claude Code
Claude Code is a command-line coding assistant by Anthropic.
Configuration steps
- Set the environment variables:
Bash
- Launch Claude Code with the
kimi-k2.5model:
Bash
In Claude Code, you can press Tab to switch to the Kimi K2 Thinking model.
If you encounter a 400 error caused by
tool_searchcalls, you can temporarily resolve it by setting the environment variableENABLE_TOOL_SEARCH=false.
Using with Roo Code
Roo Code is an AI coding extension for VS Code.
Install Roo Code
- Search for Roo Code in the VS Code Extensions Marketplace and install it.
- After installation, the Roo Code icon will appear in the activity bar; if it doesn't, restart VS Code.
Configure the Kimi Code model
-
Open the Roo Code panel and navigate to the Settings page.
-
In the Providers section, select OpenAI Compatible and fill in the following:
-
Save the configuration and you're ready to go.
Important notes
- Kimi Code benefits are only supported in Kimi Code CLI, Claude Code, and Roo Code.
- Using your API Key with unauthorized platforms or tools may be considered a violation and could result in restricted access.
- For questions, refer to the Benefits page or contact Kimi support.