Moonshot AI (Kimi) with OpenClaw
Configure Kimi K2.5 and K2 Thinking — API key
Configure Kimi K2.5 and K2 Thinking — API key
Moonshot AI's Kimi models are supported in OpenClaw for chat and coding. Kimi K2 offers strong long-context performance and reasoning. Get an API key from Moonshot Platform or your region's Kimi API portal.
Use moonshot/kimi-k2.5 or moonshot/kimi-k2-thinking in your config. Kimi Coding is a separate provider (kimi-coding/) — onboard with kimi-code-api-key if you need it.
Onboard with the wizard:
openclaw onboard --auth-choice moonshot-api-key
https://api.moonshot.ai/v1https://api.moonshot.cn/v1Use the correct baseUrl for your API key region. International keys will fail on the .cn endpoint.
{
"agent": { "model": "moonshot/kimi-k2.5" },
"models": {
"providers": {
"moonshot": {
"baseUrl": "https://api.moonshot.ai/v1",
"apiKey": "${MOONSHOT_API_KEY}",
"api": "openai-completions"
}
}
}
}
Store MOONSHOT_API_KEY in credentials or environment. See Configuration.