Claude Model Router logo

Claude Model Router

Community
Rajvardhman05
claude-model-router

Pick the right Claude model for each piece of work instead of running everything on one. Load BEFORE spawning any subagent or parallel worker (to choose its model), when a task stalls and you are deciding whether to raise effort or move up a model, and when the user asks which model or effort level to use for a task.

Overview

PublisherRajvardhman05
Repositoryclaude-model-router
Skill nameclaude-model-router
Stars
31
Forks
6
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Rajvardhman05 on GitHub. Read the source before you install it.

Installation

Install the Claude Model Router AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Rajvardhman05/claude-model-router/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Rajvardhman05/claude-model-router.git \
  .claude/skills/claude-model-router
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Claude Model Router in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Claude Model Router on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Claude Model Router is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Claude model router

One model for everything is either too expensive or too weak. This skill routes each piece of work to the cheapest model that will finish it properly.

Rules are condensed from Anthropic's guide "Which Claude model should you build with?" (claude.dev/blog, November 2026). They are written by tier (Haiku / Sonnet / Opus / Fable), so they survive version bumps. If the tiers themselves change, re-read the guide.

The one rule that shapes everything

Route by delegation. Never switch the main session's model mid-task.

The main session keeps its model. Routing happens when you hand work to a subagent, by setting that subagent's model. Switching the main model mid-session throws away the prompt cache (the next turn pays full price for the whole context) and, when moving down a tier, the earlier reasoning too.

Routing table for delegated work

Set the model on the subagent call (model: haiku | sonnet | opus | fable) or in the subagent's definition file. If a tier is not available on this account, use the next tier down (no fable means opus) and say so in one line.

The subagent's jobModel
Find files, grep, read logs, run tests and report, summarize long outputhaiku
Classify, tag, route, extract fields, high-volume checkable workhaiku
Well-scoped edits against a clear spec; a contained bug fixsonnet
Repeated agent tasks: investigation, review, draftingsonnet
Everyday documents, slides, spreadsheetssonnet
Multi-file features, tricky debugging, computer use, vision-heavy workopus
Major refactor or migration, architecture planning, deep research, scientific or quantitative analysisfable
Unsureopus

Two guards on the table:

  • A clear spec does not guarantee Sonnet is enough. Migrations and performance work can need Opus even when fully specified.
  • Small models get work where mistakes are cheap to spot. If a wrong answer would pass unnoticed (a judgment call, a subtle edit), keep it on the main model.

For a one-off subagent, leave effort at the model's default. Set it explicitly in only two cases, both below: climbing the escalation ladder, and a cheap-first retry over a checkable batch.

When not to delegate at all

Delegation has a coordination cost. Skip it when:

  • the work is one dependent chain (each step needs the previous step's result), or
  • it all fits comfortably in the current context, or
  • it is a handful of tool calls.

Delegate when the work is verbose reading (logs, wide file sweeps) or genuinely parallel. The point is to keep the expensive model's context lean: every turn resends the whole context, so bulk reading belongs in a cheap subagent that returns a short summary.

Escalation ladder

When a result is not good enough, climb in this order and stop at the first rung that works:

  1. Let it verify. Give the model a test, build, or script to check its own work.
  2. Raise effort one level. Effort buys more thinking and checking. It does not add skill the model lacks.
  3. Move up one model, starting at a lower effort than the smaller model was using.

Past high effort, one more effort level can cost as much as the next model up. On hard tasks try the bigger model before going beyond high.

Cheap-first retry. When the outcome can be checked automatically, run the batch at low effort and re-run only the failures at high. This usually beats running everything at high on both cost and pass rate.

Advising on the main session's model

You cannot change the session's model yourself; the user does. Speak up in one line only when there is a clear mismatch, then carry on as asked:

  • Too small: a major migration, architecture work, or a long unattended run on Sonnet or Haiku. Suggest moving up.
  • Too big: a long stretch of simple, well-scoped edits on the top tier. Suggest moving down.

Sensible starting points when the user asks:

WorkModelEffort
Most coding and knowledge workopusmedium, then high
Well-scoped everyday codingsonnetmedium, then high
Chat a person is waiting onsonnetlow or medium
Hardest technical work, long unattended runs, leading many subagentsfablemedium, then high

If the user does switch, tell them to compact first or start a fresh session with a short written plan, so the new model does not pay to re-read the whole history.

Do not oversell it

Mixed-model setups do not always win. Judge by cost per finished task, not price per token: a pricier model that finishes in half the tokens can be cheaper. If the user wants proof, the test is simple: run a few real tasks with automatic pass/fail checks on each candidate, and keep the mixed setup only if it beats every single-model run.

Frequently asked questions

What does the Claude Model Router AI skill do?

Pick the right Claude model for each piece of work instead of running everything on one. Load BEFORE spawning any subagent or parallel worker (to choose its model), when a task stalls and you are deciding whether to raise effort or move up a model, and when the user asks which model or effort level to use for a task.

Why use Claude Model Router on TypingMind?

Because you install it once and use it with any model. Claude Model Router is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Claude Model Router in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Rajvardhman05/claude-model-router/tree/main. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Claude Model Router?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Claude Model Router?

As many as you like. As long as a model supports skills, you can use Claude Model Router with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Claude Model Router AI skill free?

Yes. It is published on GitHub by Rajvardhman05 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇