model-router
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
More from winsorllc/upgraded-carnival
vector-memory
Vector-based semantic memory using embeddings for intelligent recall. Store and search memories by meaning rather than keywords. Use when you need semantic search, similar document retrieval, or context-aware memory.
131rss-monitor
Monitor RSS/Atom feeds and blogs for new content using feedparser.
59rss-reader
Read and parse RSS/Atom feeds. Use when: user wants to subscribe to feeds, get latest articles, or monitor news sources.
54video-frames
Production-grade video frame extraction with thumbnail grids, GIF creation, and batch frame processing. Includes intelligent quality presets, progress tracking, and comprehensive error handling.
39elevenlabs-tts
Convert text to speech using ElevenLabs API. Use when you need to generate voice audio for messages, narrations, or accessibility.
25skill-autoinstaller
Automatically discover, evaluate, validate, and install new PopeBot skills from GitHub repositories. Combines ZeroClaw's security auditing with OpenClaw's CLI-based skill approach.
22