Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By schweppsv0.2.0In 1 marketplace
Routes each turn and subagent to the cheapest Claude model that keeps quality, gated by a prompt-cache cost model.
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Model pricesprices
Leave empty for the built-in prices. To override: tier=input/output/cacheRead in USD per million tokens, separated by ';', e.g. opus=4/20/0.2; haiku=0.1/0.5/0.01. Tiers left out keep the built-in price.
stringdefault
Lowest model allowedminTier
The router never picks a model below this one.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; calls a model on your account; reads or rewrites your prompts.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
One of haiku, sonnet, opus
stringdefault haiku
Main loop routingmainLoop
auto: route turns; shadow: log what it would do, change nothing; off: leave the main loop on /model.
One of auto, shadow, off
stringdefault auto
When Fable may be usedfableMode
manual: only ::fable or /route fable; escalation: also on a second rejection in a row; auto: also on the first rejection and when a prompt looks very hard.
One of manual, escalation, auto
stringdefault escalation
Opus model idopusModel
Model id used for the opus tier.
stringdefault claude-opus-5-5
Subagent routingsubagents
auto: pick a model for each spawned subagent; off: leave subagents alone.
One of auto, off
stringdefault auto
Ask Haiku on unclear promptsclassifier
When the keyword rules are unsure, ask Haiku to classify the prompt (about $0.0003 and under a second).
booleandefault true
Fable model idfableModel
Model id used for the fable tier.
stringdefault claude-fable-5-1
Haiku model idhaikuModel
Model id used for the haiku tier.
stringdefault claude-haiku-5-5
Date of your pricespricesAsOf
YYYY-MM-DD date your prices were checked; /route warns when they are over 90 days old.
stringdefault
Effort on Haiku detourshaikuEffort
Thinking effort for main-loop turns sent to Haiku. Haiku keeps its own prompt cache, so this never touches the home model's cache. inherit: the session's effort.
One of low, medium, inherit
stringdefault low
Sonnet model idsonnetModel
Model id used for the sonnet tier.
stringdefault claude-sonnet-5-5
Turns a downgrade is expected to lasthorizonTurns
How many turns the cost model assumes a cheaper model will be used for before returning.
numberdefault 3
Prompt cache lifetime (minutes)cacheTtlMinutes
How long a model's prompt cache is assumed to stay warm.
numberdefault 60
Cache write price multipliercacheWriteMultiplier
Cache write price as a multiple of input price: 2 for the 1-hour cache, 1.25 for the 5-minute one.
numberdefault 2
A Claude Code mod that picks the model (Haiku, Sonnet, Opus, Fable) for each turn and each subagent. The goal is to spend fewer tokens without losing quality.
Your /model is home. Each turn either runs on the home model or takes a detour to another model. The router never changes /model itself.
Explore, claude-code-guide and statusline-setup run on Haiku.Plan and security reviewers run on Opus. Other reviewers run on Sonnet.general-purpose agents are sized from their task.git status, a rename or a lookup.fableMode, it takes a second rejection while the first is still held.If any part of the router fails, the turn runs on your /model unchanged.
| Input | Effect |
|---|---|
::haiku fix the typo in README | One turn on Haiku. The prefix is stripped before the model sees the prompt. |
::opus (on its own) | Pins Opus for the session. |
::auto (on its own) | Unpins. |
/route | Status, last decision with its cost estimate, today's and this week's savings and spend by model. |
/route log | The last 20 routing decisions, each with its session. |
/route sessions | The 10 most expensive sessions of the last 7 days, with spend by model. |
/route sonnet · /route auto | Pin or unpin. |
The status line shows the current tier, the reason for it, and today's estimated savings.
Change these in the config menu, or under pluginConfigs.model-router in settings.
| Option | Default | |
|---|---|---|
mainLoop | auto | shadow logs decisions but changes nothing; off disables main-loop routing |
subagents | auto | off leaves subagents alone |
fableMode | escalation | escalation: ::fable, or a second rejection in a row; manual: only ::fable; auto: very hard prompts and the first rejection too |
minTier | haiku | Floor: the router never picks a model below this |
classifier | true | Ask Haiku about unclear prompts |
haikuEffort | low | Effort for main-loop turns sent to Haiku; inherit uses the session's. Haiku keeps its own cache, so this never touches the home model's cache |
*Model | claude-*-5-5, claude-fable-5-1 | Model ids per tier (change them for Bedrock or Vertex) |
cacheTtlMinutes / cacheWriteMultiplier | 60 / 2 | Cache assumptions: 1-hour cache. Use 5 / 1.25 for the 5-minute cache |
horizonTurns | 3 | How many turns a downgrade is assumed to last |
prices | empty (built-in) | Override prices: tier=input/output/cacheRead in $ per million tokens, separated by ;, for example opus=4/20/0.2; haiku=0.1/0.5/0.01. Tiers left out keep the built-in price |
pricesAsOf | empty | YYYY-MM-DD date of your prices. /route and the session-start toast warn once prices are over 90 days old |
npx claudepluginhub schwepps/claude-mods --plugin model-routerBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.