#hey, I think through configuration changes my kimi model configuration is broken
1 messages Β· Page 1 of 1 (latest)
Yeah, thatβs a common one. The big gotcha is that Moonshot K2 and Kimi Coding are different providers in OpenClaw.
- Moonshot K2.5 β model like
moonshot/kimi-k2.5, auth viaMOONSHOT_API_KEY - Kimi Coding β model like
kimi/kimi-code, auth viaKIMI_API_KEY
So if you mixed moonshot/... with KIMI_API_KEY, or kimi/... with MOONSHOT_API_KEY, itβll look broken.
First, can you paste:
openclaw --version
openclaw status --all
openclaw models status
And also tell me which one you actually want:
moonshot/kimi-k2.5kimi/kimi-code
If you want, paste your relevant config snippet too, with keys redacted, especially:
agents.defaults.modelmodels.providers.moonshot- any
enventries for Kimi/Moonshot
Docs:
If it helps, I can also give you a clean known-good minimal config for either option and we rebuild it from scratch.
I want moonshot API
"id": "kimi-for-coding",
"name": "Kimi K2.6 Code Preview",
"reasoning": false,
"input": [
"text",
"image"
OpenClaw 2026.4.15 (041266a)
Got it. If you want the Moonshot API, the safest reset is:
- provider:
moonshot - env key:
MOONSHOT_API_KEY - model ref:
moonshot/...notkimi/...
Your snippet suggests you may be defining a custom Moonshot model id:
{
env: {
MOONSHOT_API_KEY: "sk-..."
},
agents: {
defaults: {
model: { primary: "moonshot/kimi-for-coding" }
}
},
models: {
mode: "merge",
providers: {
moonshot: {
baseUrl: "https://api.moonshot.ai/v1",
apiKey: "${MOONSHOT_API_KEY}",
api: "openai-completions",
models: [
{
id: "kimi-for-coding",
name: "Kimi K2.6 Code Preview",
reasoning: false,
input: ["text", "image"]
}
]
}
}
}
}
Two likely breakages here:
agents.defaults.model.primaryis set tokimi-for-codinginstead ofmoonshot/kimi-for-coding- you overwrote the provider config without
models.mode: "merge"
My recommendation: first get the bundled Moonshot model working, then add the preview model.
Minimal known-good baseline:
{
env: { MOONSHOT_API_KEY: "sk-..." },
agents: {
defaults: {
model: { primary: "moonshot/kimi-k2.5" }
}
}
}
Then test:
openclaw models status
openclaw models list --provider moonshot