router

by Alexei Ledenev · ★ 48 · updated 2 days ago

PanesBandsReskinsCommandsPromptwarnings

0

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.

install router

Install

git clone https://github.com/alexei-led/claude-router
claude --plugin-dir ./claude-router

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startsession.attachcommand.runconfig.setclassic.PostModelSwitchprompt.autocompleteturn.startprompt.submitagent.spawnturn.stepturn.completeclassic.StopFailuresession.compactsession.endui.render
API calls
$.agent.list$.clock.after$.clock.sleep$.command.register$.command.run$.env.get$.fs.exists$.fs.list$.fs.read$.fs.stat$.fs.write$.http.fetch$.session.cwd$.session.id$.session.messages$.session.model$.session.surfaces$.session.usage$.session.version$.settings.read$.state.get$.state.set$.store.delete$.store.get$.store.keys$.store.set$.ui.close$.ui.copy$.ui.log$.ui.open$.ui.place$.ui.resolve$.ui.toast$.ui.view
Draws
SpinnerSessionModePlacedAbovePromptPane
Can see
classic hooksevery promptsubagent spawnscompaction
Reach
level 3 of 3 networkwrites filesdrives Claudewrites the clipboardreads filesreads env varsreads settingsreads the transcriptreads mod statepersists statedrawsother: $.ui.place

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/alexei-led/claude-router
Path in repo
repository root
Source commit
832d89e the exact code the scan read
Author
Alexei Ledenev @alexei-led
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from alexei-led/claude-router

router-mod-probe

alexei-led/claude-router

Opt-in probe of native model routing, usage and UI; not the production router.

★ 48BandsCommands

spawn-probe

alexei-led/claude-router

Records agent.spawn inputs and results

★ 48Automation