Skip to content

Kimi (Moonshot) Setup

Get API Key

  1. Visit Kimi Platform
  2. Sign up and log in
  3. Go to "API Key Management" page
  4. Create a new API Key

Add Channel in CCX

Option 1: Chat Endpoint (OpenAI Compatible)

FieldValue
NameKimi
Service Typeopenai
Base URLhttps://api.moonshot.ai/v1
API KeysYour Moonshot API Key

Option 2: Messages Endpoint (Coding Endpoint)

For Claude Code CLI and other tools using Claude Messages protocol.

FieldValue
NameKimi Coding
Service Typeclaude
Base URLhttps://api.kimi.com/coding/
API KeysYour Kimi API Key
Request ModelRedirects To
opuskimi-k2.7
sonnetkimi-k2.7
haikukimi-k2.7

Model Mapping (Coding Plan)

Coding Plan endpoint uses kimi-for-coding model:

Request ModelRedirects To
opuskimi-for-coding
sonnetkimi-for-coding
haikukimi-for-coding

Available Models

ModelDescription
kimi-k2.7Latest pay-as-you-go model, native multimodal Agentic model
kimi-for-codingCoding Plan specialized model, optimized for programming tasks
kimi-k2.6Multimodal Agentic model, 1T total / 32B active
kimi-k2.5Multimodal Agentic model
moonshot-v1-autoAuto-selects context length (legacy)
moonshot-v1-128k128K context (legacy)

Deprecation Notice

kimi-k2 will be retired on 2026/05/25. Please migrate to kimi-k2.6.

Notes

  • Kimi OpenAI-compatible Base URL is https://api.moonshot.ai/v1 (note: moonshot.ai not moonshot.cn)
  • Coding endpoint is https://api.kimi.com/coding/, suitable for Claude Code CLI
  • kimi-k2.7 is the latest pay-as-you-go model with long-context coding support
  • kimi-for-coding is the Coding Plan specialized model, optimized for programming tasks