model-router
Self-aware multi-provider model routing for OpenClaw. Auto-detects your available models, recommends the best routing mode, and adapts per task. Claude, Gemini, GPT, DeepSeek — benchmarks are routing tables, not leaderboards.
Why use this skill?
Optimize your OpenClaw AI performance and costs with Model Router. Automatically route tasks to the best LLM based on benchmark data and real-time pricing.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/chandika/sonnet-model-routerWhat This Skill Does
The Model Router is a sophisticated orchestration layer for OpenClaw that empowers your AI agent to make intelligent, cost-aware decisions about which LLM to deploy for any given task. Rather than relying on a static configuration, the Model Router maintains a living, self-updating registry of your available providers—including Claude, Gemini, GPT, and DeepSeek. It evaluates the complexity of your request against real-world benchmark data and cost metrics stored in the 'model-registry.json' file, ensuring that high-intensity reasoning tasks receive premium compute while mundane summarization tasks are routed to the most cost-effective model available.
Installation
To integrate this intelligence into your OpenClaw environment, run the following command in your terminal:
clawhub install openclaw/skills/skills/chandika/sonnet-model-router
Use Cases
- Dynamic Task Routing: Automatically switch between 'deep-reasoning' models for complex architectural tasks and 'cheapest-available' models for simple draft generation.
- Cost Optimization: Maintain a balance between performance and budget by letting the agent suggest models based on current pricing and context limits.
- Benchmarking-Driven Selection: Leverage empirical data from the registry to ensure your coding tasks are handled by the models with the highest SWE-bench scores currently in your stack.
Example Prompts
- "Scan my gateway configuration and update the model registry with the latest benchmark data for my new providers."
- "I need to refactor this entire codebase; route this task to the best available model for deep-reasoning and complex coding."
- "Summarize these logs for me using the cheapest possible model available in my registry to save on token costs."
Tips & Limitations
- Manual Trigger Only: The router is intentionally designed to be non-intrusive. It never scans your environment on startup or heartbeats to preserve your privacy and performance. You must manually invoke a scan when you add new API providers.
- Privacy First: This skill is strictly local. It never transmits your API keys or credentials; it only reads the metadata of the providers already configured in your gateway.
- Registry Maintenance: While the skill handles the creation of 'model-registry.json', advanced users can manually edit the routing rules within this file to force specific models for custom workflows.
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-chandika-sonnet-model-router": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, external-api