/install chitin-core
chitin-core
Route tasks to the cheapest capable model. Never crash on rate limits.
Activation
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.
Usage
Route 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.
Handle Failures
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"
Check Health
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js health
View Costs
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js costs
Validate Config
node ~/.openclaw/workspace/skills/chitin-core/scripts/router.js validate
Workflow
- Receive task from user
- Run
router.js route "\x3Ctask>"to get optimal model sessions_spawnwith returned model- If spawn fails →
router.js fail "\x3Cmodel>" "\x3Cerror>"→ retry route - Return result to user
Tiers
| 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 |
Override Tags
Include in task text to force a tier:
@light— force cheapest model@medium— force mid-tier@heavy— force most capable
Graceful Degradation
If all models in a tier are rate-limited, the router automatically:
- Tries adjacent tiers (escalate or downgrade)
- Falls back to local Ollama if configured
- Returns structured error with retry time (never crashes)
Configuration
Edit config.json in the skill directory to:
- Add/remove models per tier
- Adjust cost figures
- Tune classification boundaries
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install chitin-core - 安装完成后,直接呼叫该 Skill 的名称或使用
/chitin-core触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
chitin-core 是什么?
Selects the most cost-effective capable model for tasks, handles rate limit failures gracefully, and supports tier overrides and health checks. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 396 次。
如何安装 chitin-core?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install chitin-core」即可一键安装,无需额外配置。
chitin-core 是免费的吗?
是的,chitin-core 完全免费(开源免费),可自由下载、安装和使用。
chitin-core 支持哪些平台?
chitin-core 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 chitin-core?
由 adroidian(@adroidian)开发并维护,当前版本 v1.0.0。