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.
| Type | Claude code mod |
|---|---|
| Author | alexei-led |
| Repository | alexei-led/claude-router |
| Popularity | 53 GitHub stars |
| Category | Agents & automation |
| Security | High risk (44/100) |
| Rank | #350 of 9,397 Claude Code mods; #40 in Agents & automation |
| License | MIT |
| Last commit | 2026-11-30 |
| Stars this week | +3 |
| Hooks | 15 events |
| Sees | classic hooks, compaction, every prompt, subagent spawns |
| Draws on | Spinner, 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.
| Check | Result |
|---|---|
| Sends data over the network | Review |
| Starts no processes | Pass |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.agent.list | |
$.clock.after | |
$.clock.sleep | |
$.command.register | |
$.command.run | drives Claude |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.stat | reads files |
$.fs.write | writes files |
$.http.fetch | network requests |
$.prompt.submit | drives Claude |
$.session.cwd | |
$.session.id | |
$.session.messages | reads the transcript |
$.session.model | |
$.session.root | |
$.session.surfaces | |
$.session.usage | |
$.session.version | |
$.settings.read | reads settings |
$.state.get | |
$.state.set | |
$.store.delete | keeps its own state |
$.store.get | keeps its own state |
$.store.keys | keeps its own state |
$.store.set | keeps its own state |
$.ui.close | draws interface |
$.ui.copy | draws interface |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.place | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
$.ui.view | draws interface |
How do I install router?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- 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/.
- 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)