Install
openclaw skills install model-troubleshooterAutomatically diagnose and fix model-related errors in OpenClaw/AutoClaw including API issues, timeouts, config errors, and gateway problems.
openclaw skills install model-troubleshooterOpenClaw/AutoClaw mein model-related issues ko automatically identify aur permanently resolve karega.
Use when user mentions:
# Check current model
/whoami
# Check gateway logs
Get-Content "C:\Users\IDL\.openclaw-autoclaw\logs\gateway.log" -Tail 50
# Check config
openclaw config.get models
| Error Pattern | Likely Cause | Fix |
|---|---|---|
| "Unexpected end of JSON" | Incomplete streaming chunks | Restart gateway + enable chunk validation |
| "401 Unauthorized" | API key expired/wrong | Update openclaw.json with fresh key |
| "429 Too Many Requests" | Rate limit hit | Switch model or implement retry logic |
| "timeout" | Model too slow | Switch to faster model (GLM-5-Turbo) |
| "connection refused" | Network/endpoint down | Check provider status + failover model |
| "model not found" | Invalid model ID | Validate model exists in config |
# Trigger graceful restart
openclaw gateway restart
If current model consistently fails:
openclaw config.get models.providers{
"agents": {
"defaults": {
"model": {
"primary": "zai/zai_glm-5-turbo"
}
}
}
}
openclaw config.patch{
"models": {
"providers": {
"custom_xxx": {
"apiKey": "NEW_KEY_HERE"
}
}
}
}
Add retry logic to handle incomplete chunks:
agents.defaults.compaction.reserveTokensFloor: 40000agents.defaults.timeoutSeconds: 1800# Test model response
openclaw sessions.list --limit 1
# Confirm no errors in next 5 minutes
Get-Content "C:\Users\IDL\.openclaw-autoclaw\logs\gateway.log" -Tail 100 | Select-String -Pattern "error" -CaseSensitive:$false
When model issue detected:
[MODEL ISSUE DETECTED]
Error: [specific error message]
Model: [current model]
Root Cause: [diagnosis]
Fix Applied:
- [action taken]
- Status: [success/fail]
Recommendation: [future prevention tip]
Want me to switch to a more reliable model?
- GLM-5-Turbo (fast/stable)
- GLM-5.1 (balanced)
- MINIMAX M2.7 (complex tasks)