ClaudeCodeMod

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.

In your shell
claude plugin marketplace add alexei-led/claude-router
claude plugin install router@alexei-led-claude-router
Open the repo

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

The claude-router section on the author's GitHub page
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command/model/router
  • config.setA Claude Code event
  • turn.startWhen Claude starts a turn
  • agent.spawnWhen a subagent starts
  • turn.stepAt each step of a turn
  • turn.completeWhen a turn ends
  • session.compactWhen the context is compacted
  • session.endWhen a session ends
  • ui.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
Repo
alexei-led/claude-router
Version
1.14.0
License
MIT
Repo stars
29
Last change
2026-10-14
Language
JavaScript
Files
169

Other mods in Usage

context-budgetmelodic-softwareHolds a commandDraws the session's context by category, in a pane or a band above the prompt, and asks before a settings file is written.extra-modsJhonatan-de-SouzaDraws a menu for Zen, themes, model and effort, and a status line of context, plan limits, and cache.jevNasrallah-ALHas Jev drop stale tool calls at compaction and keep the rest word for word, toasts what it kept, and adds slash commands for the jev CLI.decknvr0x5Draws a collapsible panel above the prompt for the plan, context, the 5-hour and 7-day limits, and a small pet.desktop-statuslinecentminmodDraws a status band above the prompt in the Desktop app's Code tab, with context, plan limits, and the last turn.pixel-buddyhamymarnieDraws the 5-hour and 7-day usage above the prompt, with what each window cost, a cache timer, and a pixel creature.account-rotatorivokundDraws each account's usage under the prompt, and can move the session to another account as a limit fills.usage-bandJetsonChanDraws one line above the prompt for the 5-hour and 7-day limits, the context, and the last turn's cache hit.burn-meterOneWave-AIDraws session spend as a fuse above the prompt, with the plan limits and a cost in burritos and McDoubles.cache-warmerpaulbkim-devResends the last request to keep the prompt cache warm when that saves at least $0.05, and draws a band with Clawd while it runs.token-weather-usageaugiefraDraws a band above the prompt for context size, the 5-hour and weekly limits, cache warmth, session cost, and running agents.agent-dietVedantAndhaleStarts Explore subagents, and other agent types you list, on Haiku or a model you pick instead of the main model, and counts how many it moved.
All 183 in Usage