Iblai Router
Cost-optimizing model router for OpenClaw. Automatically routes each request to the cheapest capable Claude model (Haiku/Sonnet/Opus) using weighted scoring. Use when setting up smart model routing, reducing API costs, or configuring multi-tier LLM routing. Supports Anthropic models directly and OpenAI/Google models via OpenRouter.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add iblai-router npx -- -y @trustedskills/iblai-router
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"iblai-router": {
"command": "npx",
"args": [
"-y",
"@trustedskills/iblai-router"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The iblai-router is a Node.js proxy that optimizes costs when using OpenClaw with Anthropic's Claude models. It automatically routes each request to the cheapest Claude model capable of handling it, achieving savings of up to 80% compared to always using the most expensive model like Opus. The router operates locally and does not send data to third parties.
When to use it
- Routine tasks: Ideal for automating repetitive operations such as inbox checks or operational alerts where cost efficiency is paramount.
- Subagent workflows: Use it when delegating tasks to subagents, like issue triage or communications, to minimize expenses.
- Cost-sensitive environments: When operating within a budget and seeking significant reductions in LLM API costs.
- OpenClaw deployments: Specifically designed for use with OpenClaw agents.
Key capabilities
- Automatic model routing based on cost optimization.
- Local operation – no data leaves your server.
- Compatibility with Anthropic, OpenRouter, and other providers using your API key.
- Zero dependencies installation process.
- Excludes system prompts from scoring to ensure accurate cost assessment.
Example prompts
- "Install iblai-router from https://github.com/iblai/iblai-openclaw-router" (for agent installation)
- "Uninstall iblai-router" (to remove the skill)
- Use
iblai-router/autoas a model provider within your OpenClaw configuration.
Tips & gotchas
The router scores user messages, not system prompts. Since OpenClaw sends a large, keyword-rich system prompt with every request, scoring it would inflate costs and negate savings; this is why the system prompt is excluded from the routing calculation.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Installing this skill downloads the exact code at commit 1e75b80b, not the current state of the repository. This prevents supply-chain attacks from unauthorized updates.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
Details
- Version
- v1.4.0
- License
- MIT
- Author
- iblai
- Installs
- 0
- Updated
- Feb 20, 2026
- Published
- Feb 16, 2026
🔓 Unverified
Not yet reviewed. Use with caution.
Install command fetches the verified snapshot, not the live repository.