router

router is a Claude Code mod by alexei-led that 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.

Updated 2026-11-30

What is router?

router is a Claude Code mod by alexei-led that 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. It is listed under Agents & automation and has 53 GitHub stars.

TypeClaude code mod
Authoralexei-led
Repositoryalexei-led/claude-router
Popularity53 GitHub stars
CategoryAgents & automation
SecurityHigh risk (44/100)
Rank#350 of 9,397 Claude Code mods; #40 in Agents & automation
LicenseMIT
Last commit2026-11-30
Stars this week+3
Hooks15 events
Seesclassic hooks, compaction, every prompt, subagent spawns
Draws onSpinner, SessionMode, Placed, AbovePrompt|Pane

Is router safe to install?

router scores 44/100 on the MCPMods security check: High risk. Things to review: sends data over the network; writes files or config; reads environment variables; watches every prompt or event. It passed 2 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
Sends data over the networkReview
Starts no processesPass
Writes files or configReview
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.agent.list
$.clock.after
$.clock.sleep
$.command.register
$.command.rundrives Claude
$.env.getreads env vars
$.fs.existsreads files
$.fs.listreads files
$.fs.readreads files
$.fs.statreads files
$.fs.writewrites files
$.http.fetchnetwork requests
$.prompt.submitdrives Claude
$.session.cwd
$.session.id
$.session.messagesreads the transcript
$.session.model
$.session.root
$.session.surfaces
$.session.usage
$.session.version
$.settings.readreads settings
$.state.get
$.state.set
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.keyskeeps its own state
$.store.setkeeps its own state
$.ui.closedraws interface
$.ui.copydraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.placedraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface
$.ui.viewdraws interface

How do I install router?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/alexei-led/claude-router
    claude plugin validate ./claude-router/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/alexei-led/claude-router && claude --plugin-dir ./claude-router/.

Or ask Claude to set it up

Paste this into Claude Code and it installs router for you:

Install the "router" Claude Code mod from https://github.com/alexei-led/claude-router. Run claude plugin validate on it first and show me what it can access before you enable it.

More from alexei-led/claude-router

This repository has 3 Claude Code mods on MCPMods.

  • router-mod-probe: Opt-in probe of native model routing, usage and UI; not the production router. (High risk)
  • spawn-probe: Records agent.spawn inputs and results (Review before installing)