model-router
Automatic LLM model selection for sub-agent tasks. Classifies tasks by complexity and type, then routes to the optimal model (cost vs capability). Use when spawning sub-agents, choosing models for cron jobs, or deciding which model to use for any task. Eliminates manual model specification by providing a decision tree and optional cheap-model classifier for ambiguous cases.
Why use this skill?
Automate LLM model selection with the OpenClaw model-router. Reduce operational costs and boost agent performance by routing tasks to the optimal model tier.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/globalcaos/smart-model-routerWhat This Skill Does
The model-router skill is an intelligent orchestration layer designed to optimize OpenClaw's computational expenditure. Instead of defaulting to the most expensive or powerful LLM for every interaction, model-router acts as a traffic controller. By analyzing the inherent complexity and objective requirements of a task, it dynamically selects the most cost-effective model from your configured providers. Whether you are performing simple data transformations or debugging complex system architectures, this skill ensures that you are using the minimum required intelligence, thereby drastically reducing latency and costs without sacrificing output quality.
Installation
To integrate the model-router into your agent's workflow, execute the following command in your terminal:
clawhub install openclaw/skills/skills/globalcaos/smart-model-router
Once installed, ensure your agent environment is configured with the necessary API keys for your preferred tiers (flash, fast, mid, strong, reasoning).
Use Cases
- Autonomous Agent Spawning: When an agent needs to spin up sub-agents to handle specific sub-tasks, model-router determines the model tier for those workers.
- Cron Job Optimization: Automate routine system reports or data synchronization tasks by selecting 'flash' or 'fast' models, saving resources for heavy-duty analytical tasks.
- Ambiguous Request Handling: Use the built-in classifier for natural language prompts that don't clearly fall into a single category, ensuring that a 'strong' or 'reasoning' model is only invoked when truly necessary.
Example Prompts
- "Route this task: 'Convert this list of 500 email addresses into a clean JSON array' using the most efficient model."
- "I need to debug this failing authentication module across three different files; select the best model for this deep investigation."
- "Summarize the following document into bullet points for a quick update, keeping costs as low as possible."
Tips & Limitations
- The 'Good Enough' Principle: Always prefer the 'flash' or 'fast' tiers for mechanical tasks like string manipulation or date lookups. Over-engineering by selecting an 'opus' or 'o3' model for simple tasks is a common performance bottleneck.
- Classification Latency: While the router itself is fast, using the classifier adds a minor overhead. For known routine tasks, bypass the classifier by specifying the tier manually.
- Model Availability: Ensure your provider supports the models mapped in the Tier table; if a specific model is unreachable, the router will fallback to the next available tier.
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-globalcaos-smart-model-router": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Related Skills
shell-security-ultimate
Classify every shell command as SAFE, WARN, or CRIT before your agent runs it.
memory-pioneer
Benchmark your agent's memory. Contribute anonymized scores to open research. Citizen science for AI memory.
subagent-overseer
Monitor sub-agent health and progress via a pull-based bash daemon. Use when spawning sub-agents that need progress tracking, staleness detection, and automatic status reporting. Replaces manual heartbeat polling with a deterministic status file the agent reads every 3 minutes. Zero AI tokens for monitoring — pure OS-level process checks and filesystem diffs.
agent-memory-ultimate
Give your OpenClaw agent a memory system that actually works across sessions. Research-backed. Open source.
jarvis-voice
Turn your AI into JARVIS. Voice, wit, and personality — the complete package. Humor cranked to maximum.