Kimi Code Overview
What is Kimi Code
Kimi Code is an intelligent programming service for developers included in Kimi membership benefits. Built on Kimi's latest flagship models, it provides AI-assisted capabilities—such as code reading, file editing, and command execution—through product forms like CLI and VS Code extension. Subscribers can also obtain an API Key to integrate Kimi Code's model capabilities into third-party development tools and platforms.
Core Advantages
- Continuous model upgrades: Stay current with Kimi's latest flagship models and continuously gain cutting-edge code understanding, reasoning, and generation capabilities
- Two speed tiers, switch freely: the same model offers Standard and HighSpeed; HighSpeed is roughly 5–6× faster, so you can pick the right pace for each task
- Broad compatibility: Seamlessly works with Kimi Code CLI, VS Code, Claude Code, and various other development tools
- Ultra-fast response: Output speed up to 100 Tokens/s
- High-frequency concurrency: Supports approximately 300–1,200 requests per 5-hour window, with up to 30 concurrent requests
Getting Started
Kimi Code allows members to use their benefits in both the official client and third-party platforms, covering different development scenarios.
Using the Official Client
Choose the client that fits you and install with one click:
For developers who prefer terminal operations. Chat with AI in the terminal, letting it read code, edit files, execute commands, search the web, and autonomously complete development tasks.
📢 CLI Upgraded
Kimi Code CLI has gone through a major version upgrade — moving from Python/uv to Node.js, bringing a simpler install experience, faster startup, and a redesigned terminal UI. The legacy version will no longer be maintained. See Version Upgrade for details and migration instructions, or refer to the legacy Python-based Kimi Code docs if needed.
# macOS / Linux
curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash# Windows (PowerShell)
irm https://code.kimi.com/kimi-code/install.ps1 | iexAfter installation, run kimi in the terminal to start; on first use, log in to the Kimi Code platform with the /login command to complete the connection — no need to manually manage an API Key.
API Access
When integrating Kimi Code into third-party development tools, you need to manually configure an API Key to complete authentication.
Service Endpoint
The Kimi Code API is compatible with both OpenAI and Anthropic protocols. Different tools have different requirements for address configuration:
- Base URL: Some tools (e.g., Claude Code) only require the Base URL, and the tool will automatically append the subsequent path.
- Full Endpoint: Some tools (e.g., Trae) require the complete API request address.
Choose the corresponding address as needed:
| Protocol | Base URL | Common Endpoint Example |
|---|---|---|
| OpenAI Compatible | https://api.kimi.com/coding/v1 | https://api.kimi.com/coding/v1/chat/completions |
| Anthropic Compatible | https://api.kimi.com/coding/ | https://api.kimi.com/coding/v1/messages |
Both protocols accept the following 3 model IDs:
k3: Kimi K3 — available to Moderato members and above; Allegretto members and above unlock the 1M context window; supportslow/high/maxthinking effort levels.kimi-for-coding: Kimi K2.7 Code — available to all members.kimi-for-coding-highspeed: Kimi K2.7 Code HighSpeed — available to Allegretto members and above.
See Model configuration for model capabilities and setup details.
Obtaining an API Key
Kimi members can create and manage API Keys in the Kimi Code Console (up to 5 keys; each is shown only once upon creation—please keep it safe).
Configuring in Third-Party Tools
After obtaining an API Key, configure the corresponding Base URL and API Key in the environment variables of the respective tool to start using it. For configuration details, see Using in Other Coding Agents.
Note: Please maintain the tool's real identity identifier when using. Tampering with the client identifier (User-Agent) is considered a violation and may result in suspension of membership benefits.
Platform Comparison
Kimi Code membership benefits are designed specifically for programming scenarios. If you need to call large model capabilities in your own product, or require team collaboration and usage management, please visit the Kimi Platform.
| Comparison Item | Kimi Code Platform | Kimi Platform |
|---|---|---|
| Base URL | OpenAI Compatible: https://api.kimi.com/coding/v1Anthropic Compatible: https://api.kimi.com/coding/ | https://api.moonshot.cn/v1 |
| Billing | Membership subscription, monthly/annual payment, with rate limiting | Pay-as-you-go, top up and use |
| Best For | Terminal/IDE Agent programming, multi-file engineering tasks | Product integration, enterprise-level calls, multimodal application development |
Next Steps
- Kimi Code CLI Quick Start – Install, log in, and start your first conversation
- Kimi Code for VS Code Quick Start – Install the extension, log in, and typical workflows
- Using in More Third-Party Tools – Claude Code, Roo Code, and more
- Membership Benefits – Quota refresh and rate limits, quota sharing, Extra Usage, and more
- FAQ – Common issues with installation, login, and usage