- Home
- Skills
- Agents & Orchestration
- Model Router
Model Router
Route AI tasks across providers with automatic fallback.
Free
Model Router
Example session with this skill installed
I have Ollama running llama3:70b locally and an OpenRouter account. Set up a routing chain that prioritizes local for summaries but uses OpenRouter for complex refactoring.
- Read your context and instructions
- Compiled the model router
I have generated a starter config at ~/.model-router/config.json. I mapped 'local-ollama' to the 'local' tier and 'openrouter' to the 'cloud' tier. I successfully validated both endpoints. Summaries will now route locally, falling back to cloud only if Ollama is unreachable.
Connects securely to your tools. The creator never sees your data.
About this skill
A pattern-based decision framework that teaches AI agents how to intelligently route tasks across multiple model providers with automatic fallback. **Key Features:** - **Multi-provider routing**: Try cloud first, fall back to local providers automatically - **Vendor-agnostic GPU detection**: Works with NVIDIA, AMD, Intel, and Apple Silicon - **Auto-discovery**: Detect running providers (Ollama, LM Studio, llama.cpp, vLLM) on your machine - **Zero dependencies**: Helper scripts use Python stdlib only - **Config-driven**: Simple JSON or YAML config - bring your own providers and models - **Task-tier routing**: Route complex tasks to cloud, simple queries to local - save API costs **What's included:** - SKILL.md decision framework - Discovery script (auto-detect GPU + providers) - Probe script (check provider health) - Route validator (test your full chain) - Annotated config template Perfect for developers running local LLMs alongside cloud APIs who want a reliable fallback when their primary provider is rate-limited or down.
Requires Python 3.8 standard library. Routing is sequential, not parallel. Timeouts on primary providers will delay fallback execution.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
This skill has been used 6 times.
Trust & safety
Security scan
Security scan passed 3 months ago
- Free with an Agensi account
- Accounts
Openrouter
- Software
Python
Permissions
Allowed Hosts
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.