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 alexei-ledv1.36.0MITIn 1 marketplace
Native model and effort routing within your provider. Anthropic, DeepSeek, z.ai, MiniMax, MiMo and Kimi defaults, custom provider profiles, classifier advice and one model per subagent.
Trending plugins
7-day copy clicks
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.
Valar API key (Joey and Elephant)
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it makes network requests; writes files; reads files; reads environment variables (ANTHROPIC_BASE_URL, CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS, CLAUDE_CODE_PROMPT_CACHE_TTL, CLAUDE_CODE_SUBAGENT_MODEL, CLAUDE_CODE_SUBAGENT_MODEL_FORCE, CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL, CLAUDE_CODE_USE_BEDROCK, CLAUDE_CODE_USE_FOUNDRY, CLAUDE_CODE_USE_VERTEX, CLAUDE_CONFIG_DIR, CLAUDE_PLUGIN_OPTION_CLOUDFLARE_ACCOUNT_ID, CLAUDE_PLUGIN_OPTION_CLOUDFLARE_API_TOKEN, CLAUDE_PLUGIN_OPTION_OPENAI_API_KEY, CLAUDE_PLUGIN_OPTION_TYPESAFE_API_KEY, CLAUDE_PLUGIN_OPTION_VALAR_API_KEY, CLAUDE_ROUTER_PROVIDER, CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_API_TOKEN, ENABLE_PROMPT_CACHING_1H, FORCE_PROMPT_CACHING_5M, HOME, OPENAI_API_KEY, TYPESAFE_API_KEY, VALAR_API_KEY); reads your settings; runs commands; reads or rewrites your prompts; sends prompts on its own.
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.
valar_api_keyValar API key with Decisions access. When Valar Joey or Valar Elephant is selected, bounded prompt text goes to api.valarhq.ai.
Sensitivestring
OpenAI API key (OpenAI classifier)openai_api_key
OpenAI API key for the gpt-6-luna classifier. Used only when the classifier is OpenAI; the bounded prompt text then goes to OpenAI. Ollama needs no key.
Sensitivestring
Jev API key (typesafe.ai)typesafe_api_key
Jev API key from typesafe.ai. Used when the classifier is Jev; without its key the current model is kept.
Sensitivestring
Cloudflare API token (Clef, Clef Flash, Clef Omni)cloudflare_api_token
Workers AI token for the Clef, Clef Flash and Clef Omni classifiers. Scope it to Workers AI only.
Sensitivestring
Cloudflare account ID (Clef, Clef Flash, Clef Omni)cloudflare_account_id
The Cloudflare account that runs Workers AI. Not a secret.
string
For Claude Code users with mixed work: each turn gets a fitting model and effort, picked automatically and shown above your prompt.
flowchart LR
A["1 · Prompt<br/>“why does this test fail?”<br/>your classifier rates tier and activity"]
B["2 · Route<br/>Opus 5.5 · xhigh<br/>local rules weigh cache, context, holds, policy"]
C["3 · Turn<br/>Claude Code runs it<br/>the band shows the route and why"]
A --> B --> C
Illustrative example. No proxy; prompt text goes to the classifier you choose.
You need a Claude Code version at or above MIN_CLAUDE_CODE in lib/config.mjs (on an older one the router names that minimum and keeps Claude's model), and credentials for one classifier or a local Ollama model.
claude plugin marketplace add alexei-led/claude-router
claude plugin install router@alexei-led-claude-router
claude --model claude-haiku-5-5
In Claude Code, run /plugin configure router and save the credentials. Jev is the default classifier; to use another, select it on the Classifier tab of the /router pane. Before the first turn, the band above the prompt shows a dim tier meter, the model, ready and the routing mode, such as balanced. Send a prompt. /router off stops routing. Desktop app and VS Code set-up.
Now: the next turn's route and why, plan usage, context, this session. Sample data. |
Usage: estimated cost against no routing for the same tokens. Sample data, not a measured saving. |
Anthropic defaults: Haiku 5.5 for the micro and low tiers, Opus 5.5 for medium and high; some kinds of work use Sonnet 5.5 or Haiku instead. All routes.
Savings and answer quality are not measured; costs shown are list-price estimates. Evaluation.
| To | Do |
|---|---|
| Open the pane | /router, or Router on the band |
| Turn routing on or off | /router on, /router off |
| Pin the next turn to a tier | /router pin <micro|low|medium|high>, or the pin control |
| Lean cheaper or stronger | /router mode cost|balanced|quality |
| Move one turn from the prompt | Start it with morethink, highthink, maxthink, lessthink, lowthink or nothink |
| See why each turn ran where it did | /router decisions |
7-day copy clicks
npx claudepluginhub alexei-led/claude-router --plugin 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.
Plugins from other owners that cover similar ground