ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 5/5

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/bowen31337/intelligent-router
Or

What 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

  1. "Classify the following task: 'Run a 24/7 background heartbeat check on the primary API endpoint.'"
  2. "Generate the payload for a new cron job that monitors system disk usage, optimized for the cheapest available model."
  3. "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.py script to generate the appropriate model ID dynamically.
  • Understand the Hierarchy: The router balances effective_params, context_window, and cost_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-server is strictly blocked for network reasons; the enforcer will reject these assignments automatically. Always verify your payload using the validation tool before deployment.

Metadata

Stars4190
Views3
Updated2026-04-18
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-bowen31337-intelligent-router": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#cost-optimization#model-routing#infrastructure#ai-efficiency#agent-management
Safety Score: 5/5

Flags: code-execution

Related Skills

Terse

Skill by bowen31337

bowen31337 4190

Identity Resolver

Skill by bowen31337

bowen31337 4190

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.

bowen31337 4190

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.

bowen31337 4190

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.

bowen31337 4190