intelligent-router
Intelligent model routing for sub-agent task delegation. Choose the optimal model based on task complexity, cost, and capability requirements. Reduces costs by routing simple tasks to cheaper models while preserving quality for complex work.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bowen31337/intelligent-routerWhat This Skill Does
The intelligent-router is a critical infrastructure component for OpenClaw that automates model selection for sub-agent tasks. By evaluating task complexity—ranging from SIMPLE maintenance tasks to CRITICAL security operations—the router assigns the most cost-effective and capable model available. This implementation replaces inefficient default behaviors, such as using expensive top-tier models (Sonnet) for trivial tasks, effectively reducing infrastructure expenditure by 80-95% without compromising output quality.
Installation
The intelligent-router is installed via the OpenClaw skill ecosystem. Run the following command in your terminal to activate the routing policy enforcer and scripts:
clawhub install openclaw/skills/skills/bowen31337/intelligent-router
After installation, run bash skills/intelligent-router/install.sh to configure the router_policy.py enforcer, which prevents non-compliant agent payloads from executing.
Use Cases
- Automated Monitoring: Route heartbeat checks and status reporting to low-cost, high-speed local models.
- Production Engineering: Ensure high-stakes tasks or production patching utilizes the CRITICAL tier (Claude Opus) to mitigate risk.
- Research & Development: Direct complex architecture planning and multi-file debugging to intelligent models like Claude Sonnet.
- Cost Governance: Automatically block unauthorized or high-cost model usage for background cron jobs to prevent budget overrun.
Example Prompts
- "Classify the following task: 'Run a 24/7 background heartbeat check on the primary API endpoint.'"
- "Generate the payload for a new cron job that monitors system disk usage, optimized for the cheapest available model."
- "Validate this agentTurn JSON payload to ensure it adheres to the router's model recommendations: {"kind":"agentTurn","message":"Refactor the auth middleware"}"
Tips & Limitations
- Avoid Hardcoding: Never hardcode models into your agent payloads. Always use the
spawn_helper.pyscript to generate the appropriate model ID dynamically. - Understand the Hierarchy: The router balances
effective_params,context_window, andcost_input. If you are performing a complex proof or formal logic task, use the REASONING tier to leverage models with chain-of-thought capabilities. - Blocking Rules: Note that the
ollama-gpu-serveris strictly blocked for network reasons; the enforcer will reject these assignments automatically. Always verify your payload using the validation tool before deployment.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bowen31337-intelligent-router": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution
Related Skills
Terse
Skill by bowen31337
Identity Resolver
Skill by bowen31337
whalecli
Agent-native whale wallet tracker for ETH and BTC chains. Track large crypto wallet movements, score whale activity, detect accumulation/distribution patterns, and stream real-time alerts. Integrates with FearHarvester and Simmer prediction markets for closed-loop signal→bet workflows. Use when: user asks about whale activity, on-chain signals, large wallet movements, smart money flows, or when pre-validating crypto trades/bets with on-chain data.
agent-self-governance
Self-governance protocol for autonomous agents: WAL (Write-Ahead Log), VBR (Verify Before Reporting), ADL (Anti-Divergence Limit), VFM (Value-For-Money), and IKL (Infrastructure Knowledge Logging). Use when: (1) receiving a user correction — log it before responding, (2) making an important decision or analysis — log it before continuing, (3) pre-compaction memory flush — flush the working buffer to WAL, (4) session start — replay unapplied WAL entries to restore lost context, (5) any time you want to ensure something survives compaction, (6) before claiming a task is done — verify it, (7) periodic self-check — am I drifting from my persona? (8) cost tracking — was that expensive operation worth it? (9) discovering infrastructure — log hardware/service specs immediately.
pyright-lsp
Python language server (Pyright) providing static type checking, code intelligence, and LSP diagnostics for .py and .pyi files. Use when working with Python code that needs type checking, autocomplete suggestions, error detection, or code navigation.