All shelves / Mods / Usage
router
By alexei-led
router is a Claude Code usage mod by alexei-led.
Picks a model and effort for each turn from a classifier, and draws the tier above the prompt.
Draws
Install
The marketplace name is alexei-led-claude-router.
claude plugin marketplace add alexei-led/claude-router claude plugin install router@alexei-led-claude-router
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 1.14.0
- License
- MIT
- Repo stars
- 29
- Last change
- 2026-10-14
What it can reach
- Draws in the session
- Reads usage or context figures
- Reaches the network or an outside service
- Calls another program on this machine
Claude Code 2.1.289 or newer, and credentials for one classifier. Jev is the default, and its prompt text goes to typesafe.ai. Clef goes to Cloudflare, and OpenAI goes to api.openai.com. An Ollama classifier calls an Ollama server you run, and that prompt text stays on this machine. Only the active classifier receives prompt text. A subagent whose definition names no model, says model: inherit, or sets modelRouting: auto gets one model when it starts, chosen the same way. Start on the baseline model, for example claude --model claude-haiku-5-5, then run /plugin configure router and save the key. /router opens the pane. /router auto turns routing on. The Usage tab estimates what routing cost against your own model at list prices, for this session and longer windows. It is not a bill. Savings are not measured. A checkout starts with claude --plugin-dir "$PWD" --model claude-haiku-5-5.
The install name is router. This page uses the repository's name, claude-router.
Demo

What it hooks into
session.startWhen a session startscommand.runWhen you run its slash command/model/routerconfig.setA Claude Code eventturn.startWhen Claude starts a turnagent.spawnWhen a subagent startsturn.stepAt each step of a turnturn.completeWhen a turn endssession.compactWhen the context is compactedsession.endWhen a session endsui.renderDraws into the sessionSpinnerSessionModeAbovePromptPane
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/routerOpen the Router pane, or switch routing: auto, off, pin <tier>, activities <mode>.
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- alexei-led
- Category
- Usage
- Marketplace
- alexei-led-claude-router
- Version
- 1.14.0
- License
- MIT
- Repo stars
- 29
- Last change
- 2026-10-14
- Language
- JavaScript
- Files
- 169