๐Ÿง  Model Configuration

AI model setup, failover rules, rate limits, and thinking modes.

Configured Models

ModelRoleProviderContextMax Tokens
GLM-5.2PrimaryZ.AI128k8,192
GLM-5.2Pro Coding PlanZ.AIโ€”Generous rate limits
Kimi K2.6FallbackMoonshot262k8,192
GPT-5.2 CodexCursor AgentOpenAI128k4,096
Claude Sonnet 4HarnessAnthropicโ€”โ€”

GLM-5.2 (Primary)

ProviderZ.AI
API Basehttps://api.z.ai/api/coding/paas/v4
TierPro Coding Plan (generous rate limits)

Thinking Modes

LevelBehaviorWhen to Use
offNo thinkingDefault. Daily tasks, quick replies
lowLight reasoningMulti-step tasks
highDeep reasoningComplex analysis, architecture
maxMaximum reasoningHardest problems only
Default is 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.

Kimi K2.6 (Fallback)

ProviderMoonshot
API Basehttps://api.moonshot.ai/v1
Context262k (largest window)
Also Used ForImage model primary

Failover Configuration

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.

Model Disclosure in Discord

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:

This gives Mike visibility into which models are doing the actual work.

Rate Limit Tips

When to Use Thinking

TaskRecommended
Quick reply / chatoff
Writing docs / HTMLoff
Multi-step codinglow or high
Architecture decisionshigh
Complex debugginghigh or max
Simple file editsoff