| name | openrouter-toolkit |
| description | The definitive OpenRouter skill — intelligent model routing by task type, cost tracking with budget alerts, automatic fallback chains, side-by-side model comparison, and savings recommendations. Use for optimizing AI model selection, controlling costs, and building resilient LLM pipelines. |
| homepage | https://www.agxntsix.ai |
🔀 OpenRouter Toolkit
The definitive OpenRouter skill for OpenClaw agents. Intelligent model routing, cost tracking, fallback chains, and model comparison — all in one toolkit.
Features
- Smart Routing — Automatically pick the best model for code, reasoning, creative, fast, or cheap tasks
- Cost Tracking — Log every API call with cost, track daily/weekly/monthly spend
- Fallback Chains — If primary model fails or times out, auto-retry with fallbacks
- Model Comparison — Send the same prompt to N models, compare quality and cost side-by-side
- Budget Alerts — Set spending limits and get warned before you blow your budget
- Live Model Data — Pulls real pricing and capabilities from OpenRouter's API
Requirements
OPENROUTER_API_KEY — Your OpenRouter API key
- Python 3.10+ with
requests (included in most environments)
Usage
Smart Routing
python3 {baseDir}/scripts/openrouter_toolkit.py route --task code
python3 {baseDir}/scripts/openrouter_toolkit.py route --task reasoning
python3 {baseDir}/scripts/openrouter_toolkit.py route --task creative
python3 {baseDir}/scripts/openrouter_toolkit.py route --task fast
python3 {baseDir}/scripts/openrouter_toolkit.py route --task cheap