router
by Alexei Ledenev · ★ 48 · updated 2 days ago
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
git clone https://github.com/alexei-led/claude-routerclaude --plugin-dir ./claude-routerThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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
832d89ethe 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.