Overview
Kimi Code is a coding agent powered by Moonshot AI’s Kimi models. It offers strong performance on coding tasks and is a great option for teams looking to diversify beyond Anthropic and OpenAI providers.Latest Models
- Kimi K2.7 Code - Default model, tuned for coding tasks
- Kimi K2.6 - Previous generation model
- Kimi K3 - Largest model, with a 1M token context window
Authentication
Kimi Code supports two authentication methods:- Kimi API Key
- Blocks
Pay-as-you-go API access
- Get an API key from Moonshot AI Platform
- In Blocks Dashboard, go to Dashboard → Agents
- Select Kimi Code and choose “API Key”
- Paste your Kimi API key (
KIMI_API_KEY)
Setting as Default
To use Kimi Code automatically for all requests:- Go to Dashboard → Agents
- Select “Set as default agent” from Kimi Code’s dropdown menu
Using Kimi Code
Once configured, Kimi Code is used automatically if it’s your default agent:/kimi slash command to use it specifically:
Best For
- Coding tasks requiring a strong alternative to Anthropic and OpenAI models
- Teams wanting to diversify AI providers
- Cost optimization with a competitive pricing model
Cost
Kimi Code uses your Kimi API key and is billed directly by Moonshot AI. Check pricing at the Moonshot AI Platform. With the Blocks authentication method there is no Moonshot AI bill. Requests route through the Blocks AI Gateway and are billed against your Blocks LLM credits.Next Steps
Claude Code
Learn about Claude Code
OpenCode
Explore OpenCode capabilities

