model-router
Route requests between different LLM providers and models. Configure routing rules, fallback providers, and model-specific parameters inspired by ZeroClaw and OpenClaw model routing systems.
How do I install this agent skill?
npx skills add https://github.com/winsorllc/upgraded-carnival --skill model-routerIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is a configuration utility for routing LLM requests between different providers. It manages a local configuration file and checks for the presence of API keys in the environment without exposing their values, performing network requests, or executing remote code.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
2/2 files flagged
- ZeroLeakspass
Score: 93/100 · 2 sections analyzed
What does this agent skill do?
Model Router
Configure routing between LLM providers and models with fallback support.
Features
- config: Set up routing rules per task type
- list: Show available providers and models
- route: Route requests to appropriate model
- fallback: Configure fallback providers
- weights: Set model usage weights
- status: Check provider health
Usage
# List available providers
./scripts/model-router.js --command list
# Configure routing
./scripts/model-router.js --command config --task coding --provider anthropic --model claude-sonnet-4
# Set fallback
./scripts/model-router.js --command fallback --primary anthropic --fallback openai,groq
# Check status
./scripts/model-router.js --command status
# Route a request
./scripts/model-router.js --command route --task research --prompt "Explain quantum computing"
Routing Rules
Routing can be based on:
- Task type (coding, research, creative, reasoning)
- Token count
- Model capability
- Provider availability
- Cost optimization
Examples
| Task | Command |
|---|---|
| List providers | model-router.js --command list |
| Config coding | model-router.js --config --task coding --provider anthropic --model opus |
| Set fallback | model-router.js --fallback --provider anthropic --fallback openai,groq |
| Check status | model-router.js --status |
| Route request | model-router.js --route --task summarize --file article.txt |
Notes
- Supports major providers: OpenAI, Anthropic, Groq, etc.
- Automatic failover to fallback providers
- Cost and quality optimized routing
- Health checks on providers
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/winsorllc/upgraded-carnival/model-router">View model-router on skillZs</a>