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 crisnahine Verifiedv0.2.3Apache-2.0In 1 marketplace
Makes the main session hand work to subagents, teammates and workflow agents, and routes each one. Claude names each one's model and effort from a short table; the plugin holds them to your cap, fills in what is missing, and runs a redo one step higher.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
1 critical · 1 caution 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; runs programs; writes files; reads your settings; changes your /config settings; runs commands; changes what Claude reads (system prompt, context, reminders).
A hook runs when Claude writes or edits files
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.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Strongest model allowedmax_tier
The most capable model subagents may run on: haiku, sonnet, opus or fable. A stronger model from the call, a rule, the agent's definition or a parent model the router can see is lowered to it. A model set by CLAUDE_CODE_SUBAGENT_MODEL, CLAUDE_CODE_SUBAGENT_MODEL_FORCE or CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL isn't, nor is a model ID the registry can't place, and a fork always runs on its conversation's model. Where Python is missing, only the plugin's mod lowers a model, and only one the call names. Leave as none for no cap.
One of none, haiku, sonnet, opus, fable
stringdefault none
Weakest model allowedmin_tier
The least capable model subagents may run on: sonnet, opus or fable. A weaker model from the call, a rule, the agent's definition, a redo or the level table is raised to it, at the same level and effort. A model set by CLAUDE_CODE_SUBAGENT_MODEL, CLAUDE_CODE_SUBAGENT_MODEL_FORCE or CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL isn't, nor is a model ID the registry can't place, and a fork always runs on its conversation's model. If the strongest model allowed is weaker than this, that cap wins. Where Python is missing, only the plugin's mod raises a model, and only one the call names. Leave as none to allow every model.
One of none, sonnet, opus, fable
stringdefault none
Delegationdelegation
strict (default): the session note tells Claude that this session coordinates and agents do the work, and once the main conversation's own tool calls have moved 8,000 characters (what they sent and what came back, one call counting for 4,000 at most) with no agent started, the next such call doesn't run until an agent starts. on: the same note, with a reminder at that total and no refusal. off: no delegation text, reminder or refusal. Only while routing_mode is auto. The reminder and the refusal need the plugin's mod, and nothing here applies under CLAUDE_CODE_SUBAGENT_MODEL_FORCE.
One of strict, on, off
stringdefault strict
Check before finishingverify_gate
On by default, and only while routing_mode is auto. When Claude or a subagent changed a project file with Edit, Write or NotebookEdit, or a subagent's shell changed one, and no check command ran afterwards, Claude is asked once, before it finishes a turn, for the work's own check: tests, type check or linter for code, a recompute for figures, a reread against the request for a document. For a subagent's work with no check to run, the ask is for a review by model-router:reviewer. When a subagent's shell changed a project file, Claude is also told which files, beside that subagent's report, and when a subagent's work comes back with no check run on it, Claude is told that too. A file the main conversation's own shell changed counts only when a heredoc in the command writes it, or in PowerShell a here-string. There is no ask while background work runs or when the session's transcript can't be read. An ask costs one more turn. Set it to false to skip it.
booleandefault true
Routing moderouting_mode
auto (default): the model and effort Claude names on each subagent call are kept within your limits, and the effort is filled in when only a model is named. off: calls are left as they are, with no session note, no check before finishing and no session check.
One of auto, off
stringdefault auto
Session checksession_check
ask (default): when a new interactive session starts below the setups Model Router recommends for the main session (Opus or Fable at medium effort or higher, Sonnet at xhigh or higher), it asks once whether to switch. Picking a setup runs /model and /effort, which also make that model and effort Claude Code's default for new sessions (max lasts one session). off: never asks. Only while routing_mode is auto, the plugin's mod is loaded and Python runs.
One of ask, off
stringdefault ask
A plugin for Claude Code that makes the main session hand work to agents and keeps each agent's model and effort within the limits you set. It is an independent project, not made or endorsed by Anthropic.
/plugin install model-router --marketplace crisnahine/claude-code-model-router
Requirements: Claude Code 2.1.329 or later, sh, and Python 3.9 or later as python3 or python on your PATH.
Options, in /config: routing_mode (auto), max_tier (none), min_tier (none), verify_gate (true), session_check (ask) and delegation (strict). Commands: /model-router, /model-router:route, /model-router:models and /model-router:usage.
What it runs: the hooks in hooks/hooks.json and the mod hooks/router.ts, which start sh and Python on your machine. The mod also runs ps to read a --effort flag the session started with, and, for a setup you pick when a session starts below the recommended ones, Claude Code's /model and /effort. It writes one option, session_check, when you ask it to. What it keeps: a ledger and state files in the plugin's data folder, private to your user on macOS and Linux, never a prompt, brief or description. On a Python that writes no bytecode, such as the macOS system Python, it caches compiled code in ~/.cache/model-router/pycache. It makes no network call of its own.
evals/ holds the cases claude plugin eval runs; tsconfig.json points an editor at the types Claude Code writes into .claude-plugin/types/. Neither runs in a session.
How it decides, its options and its limits are in the main README. Apache-2.0.
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub crisnahine/claude-code-model-router --plugin model-routerPlugins from other owners that cover similar ground