Model Router

    by Postlethwaite Labs

    2

    Route AI tasks across providers with automatic fallback.

    Free

    6 uses5.0 (1 review)

    Works with the AI Agents you already use

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    5.0
    1 review
    5
    1
    4
    0
    3
    0
    2
    0
    1
    0

    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

    Terminal / Shell
    Environment Variables

    Allowed Hosts

    openrouter.ai
    Listed3 months ago
    Updated3 months ago

    What's inside

    Frequently Asked Questions

    Model Router is a decision-making framework that acts as a traffic controller for your AI agents, allowing them to automatically switch between cloud models and local instances based on availability, hardware capabilities, or task complexity.

    This skill is designed to be model-agnostic and works with any agent framework that supports external tool calls or custom Python scripts, including popular platforms like AutoGen, LangChain, and CrewAI.

    No, the helper scripts utilize the Python standard library to ensure a lightweight footprint, making it easy to integrate into existing environments without causing version conflicts.

    You receive the core SKILL.md decision logic, automated discovery and health-check scripts for your providers, a route validator, and a customizable configuration template.

    The included discovery script automatically identifies your hardware (NVIDIA, AMD, Intel, or Apple Silicon) and detects running local providers like Ollama or LM Studio to configure your routes instantly.

    By defining simple rules in the config, you can route high-reasoning tasks to expensive cloud APIs while offloading routine summaries or basic chat to your local hardware, significantly reducing your monthly API spend.

    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.

    Free