Hey im running my agent on opencode go subscriptioni hit limit on kimi2.6 i guess and wanna switch model whats the easiest way to add a model and jow about if i want to setuo something like this? cat > ~/.config/openclaw/config.json << 'EOF'
{
"models": {
"planner": "Qwen3.6 Plus",
"coder": "DeepSeek V4 Pro",
"reasoning": "Kimi K2.6",
"reasoning_fallback": "GLM-5.1",
"fallback": "GLM-5"
}
}
EOF
#Help
1 messages · Page 1 of 1 (latest)
First thing: what does openclaw --version show? Version mismatch can make model behavior weird.
Your config shape is the main issue: OpenClaw does not use a top-level models: { planner, coder, reasoning... } role map like that. Model selection is basically:
- default:
agents.defaults.model.primary - fallbacks:
agents.defaults.model.fallbacks - available/allowed models:
agents.defaults.modelswhen you set an allowlist
For OpenCode Go, the easiest path is usually:
openclaw onboard --auth-choice opencode-go
openclaw models list --provider opencode-go
openclaw models set opencode-go/<model-id>
openclaw models status
For a temporary switch in a chat/session, use:
/model
or:
/model opencode-go/<model-id>
If you want a fallback chain for rate limits, use the CLI instead of overwriting config by hand:
openclaw models set opencode-go/<primary-model-id>
openclaw models fallbacks add opencode-go/<fallback-model-id>
openclaw models fallbacks add opencode-go/<another-fallback-model-id>
openclaw models status
If you do hand-edit, the shape is more like:
{
agents: {
defaults: {
model: {
primary: "opencode-go/<primary-model-id>",
fallbacks: [
"opencode-go/<fallback-model-id>"
]
}
}
}
}
Use the exact model ids from openclaw models list --provider opencode-go; don’t use display names like “Qwen3.6 Plus” unless the CLI shows that exact id.
Docs:
https://docs.openclaw.ai/providers/opencode
https://docs.openclaw.ai/concepts/models
https://docs.openclaw.ai/concepts/model-failover