Install
openclaw skills install chitin-coreSelects the most cost-effective capable model for tasks, handles rate limit failures gracefully, and supports tier overrides and health checks.
openclaw skills install chitin-coreRoute tasks to the cheapest capable model. Never crash on rate limits.
When spawning sub-agents or delegating tasks, use ModelRouter to select the optimal model.
Trigger phrases: "route this", "spawn a sub-agent", "delegate", or any time you need to choose a model for a task.
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js route "task description here"
Returns JSON:
{"tier":"MEDIUM","model":"google-antigravity/gemini-3.1-pro","confidence":0.85,"estimatedCost":0.005,"signals":["codeSignals:2×1.2=2.4"]}
Use the returned model value in sessions_spawn.
If a spawned session fails with a rate limit or error:
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js fail "provider/model" "error message"
Then re-route — the failed model will be skipped:
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js route "same task"
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js health
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js costs
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js validate
router.js route "<task>" to get optimal modelsessions_spawn with returned modelrouter.js fail "<model>" "<error>" → retry route| Tier | Use Case | Models |
|---|---|---|
| LIGHT | Greetings, simple Q&A, status checks | Flash, DeepSeek, gpt-5-mini, Groq, Ollama |
| MEDIUM | Code, summaries, standard tasks | Gemini Pro, gpt-5.2, DeepSeek Reasoner |
| HEAVY | Architecture, complex reasoning, agentic | gpt-5.2-pro, o3, Codex |
Include in task text to force a tier:
@light — force cheapest model@medium — force mid-tier@heavy — force most capableIf all models in a tier are rate-limited, the router automatically:
Edit config.json in the skill directory to: