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

  1. Set the environment variables:
Bash
  1. Launch Claude Code with the kimi-k2.5 model:
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_search calls, you can temporarily resolve it by setting the environment variable ENABLE_TOOL_SEARCH=false.

Using with Roo Code

Roo Code is an AI coding extension for VS Code.

Install Roo Code

  1. Search for Roo Code in the VS Code Extensions Marketplace and install it.
  2. After installation, the Roo Code icon will appear in the activity bar; if it doesn't, restart VS Code.

Configure the Kimi Code model

  1. Open the Roo Code panel and navigate to the Settings page.

  2. In the Providers section, select OpenAI Compatible and fill in the following:

    SettingValue
    Entrypointhttps://api.kimi.com/coding/v1
    API KeyYour API Key
    Modelkimi-k2.5
  3. 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.