AI model setup, failover rules, rate limits, and thinking modes.
| Model | Role | Provider | Context | Max Tokens |
|---|---|---|---|---|
| GLM-5.2 | Primary | Z.AI | 128k | 8,192 |
| GLM-5.2 | Pro Coding Plan | Z.AI | โ | Generous rate limits |
| Kimi K2.6 | Fallback | Moonshot | 262k | 8,192 |
| GPT-5.2 Codex | Cursor Agent | OpenAI | 128k | 4,096 |
| Claude Sonnet 4 | Harness | Anthropic | โ | โ |
| Provider | Z.AI |
|---|---|
| API Base | https://api.z.ai/api/coding/paas/v4 |
| Tier | Pro Coding Plan (generous rate limits) |
| Level | Behavior | When to Use |
|---|---|---|
off | No thinking | Default. Daily tasks, quick replies |
low | Light reasoning | Multi-step tasks |
high | Deep reasoning | Complex analysis, architecture |
max | Maximum reasoning | Hardest problems only |
off. On the GLM Pro Coding plan, rate limits are generous โ thinking high or max can be used freely when needed. Use /think high for per-session override.
| Provider | Moonshot |
|---|---|
| API Base | https://api.moonshot.ai/v1 |
| Context | 262k (largest window) |
| Also Used For | Image model primary |
Configured in ~/.openclaw/openclaw.json:
"agents": {
"defaults": {
"model": {
"primary": "glm/glm-5.2",
"fallbacks": ["moonshot/kimi-k2.6"]
},
"imageModel": {
"primary": "moonshot/kimi-k2.6"
}
}
}
When GLM returns a rate limit error, OpenClaw automatically retries on Kimi K2.6. If both fail, the run produces an error.
Rule: When responding in Discord, agents must include a model footer showing what model they used and whether they delegated to a harness:
๐ Model: | Harness: ()
Examples:
๐ Model: GLM-5.2 | Harness: self โ plain self only when every line of the shipped code was written by the agent itself๐ Model: GLM-5.2 | Harness: self (impl: grok-cli/grok-4.7) โ a Grok CLI run wrote code that shipped (CLI default grok-4.7; use the model the run actually used)๐ Model: GLM-5.2 | Harness: cursor (gpt-5.2-codex)๐ Model: Kimi K2.6 | Harness: codex (claude-sonnet-4)This gives Mike visibility into which models are doing the actual work.
/think high for per-session override, resets next session| Task | Recommended |
|---|---|
| Quick reply / chat | off |
| Writing docs / HTML | off |
| Multi-step coding | low or high |
| Architecture decisions | high |
| Complex debugging | high or max |
| Simple file edits | off |