Iblai Openclaw Router
/install iblai-openclaw-router
iblai-router
A zero-dependency proxy that sits between OpenClaw and the Anthropic API, routing each request to the cheapest capable model using a 14-dimension weighted scorer (\x3C1ms overhead).
Install
Run the install script to set up everything automatically:
bash "$(dirname "$0")/scripts/install.sh"
This will:
- Copy
server.jsandconfig.jsonto~/.openclaw/workspace/router/ - Create and start a systemd service (
iblai-router) on port 8402 - Register
iblai-router/autoas an OpenClaw model provider
After install, iblai-router/auto is available anywhere OpenClaw accepts a model ID.
Verify
curl -s http://127.0.0.1:8402/health | jq .
curl -s http://127.0.0.1:8402/stats | jq .
Use
Set iblai-router/auto as the model for any scope:
| Scope | How |
|---|---|
| Cron job | Set model to iblai-router/auto in job config |
| Subagents | agents.defaults.subagents.model = "iblai-router/auto" |
| Per-session | /model iblai-router/auto |
| All sessions | agents.defaults.model.primary = "iblai-router/auto" |
Tip: Keep the main interactive session on a fixed model (e.g. Opus). Use the router for cron jobs, subagents, and background tasks where cost savings compound.
Customize
All config lives in ~/.openclaw/workspace/router/config.json and hot-reloads on save — no restart needed.
Models
Change the models per tier:
{
"models": {
"LIGHT": "claude-3-5-haiku-20241022",
"MEDIUM": "claude-sonnet-4-20250514",
"HEAVY": "claude-opus-4-20250514"
}
}
Non-Anthropic models (OpenAI, Google)
Set apiBaseUrl to route through OpenRouter:
{
"models": {
"LIGHT": "openai/gpt-4.1-mini",
"MEDIUM": "openai/gpt-4.1",
"HEAVY": "openai/o3"
},
"apiBaseUrl": "https://openrouter.ai/api/v1"
}
Update the API key in the systemd service when switching providers, then systemctl daemon-reload && systemctl restart iblai-router.
Scoring
Keyword lists control which tier handles a request:
simpleKeywords,relayKeywords→ push toward LIGHT (cheap)imperativeVerbs,codeKeywords,agenticKeywords→ push toward MEDIUMtechnicalKeywords,reasoningKeywords,domainKeywords→ push toward HEAVY (capable)
Tune boundaries and weights in config.json to match your workload. See the full README for details.
Uninstall
bash "$(dirname "$0")/scripts/uninstall.sh"
Stops the service, removes the systemd unit, and deletes router files. Reminder: switch any workloads using iblai-router/auto back to a direct model first.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install iblai-openclaw-router - 安装完成后,直接呼叫该 Skill 的名称或使用
/iblai-openclaw-router触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Iblai Openclaw Router 是什么?
Cost-optimizing model router for OpenClaw. Automatically routes each request to the cheapest capable Claude model (Haiku/Sonnet/Opus) using weighted scoring.... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 602 次。
如何安装 Iblai Openclaw Router?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install iblai-openclaw-router」即可一键安装,无需额外配置。
Iblai Openclaw Router 是免费的吗?
是的,Iblai Openclaw Router 完全免费(开源免费),可自由下载、安装和使用。
Iblai Openclaw Router 支持哪些平台?
Iblai Openclaw Router 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Iblai Openclaw Router?
由 Neuralshift1(@neuralshift1)开发并维护,当前版本 v1.0.0。