model-router
by schwepps · ★ 0 · updated 21 Oct 2026
0
Routes each turn and subagent to the cheapest Claude model that keeps quality, gated by a prompt-cache cost model.
Install
/plugin marketplace add schwepps/claude-mods/plugin install model-router@claude-modsThen 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.startprompt.submitturn.startturn.steptool.callturn.completesession.compactsession.endagent.spawncommand.run- API calls
$.clock.now$.command.register$.model.complete$.session.id$.session.usage$.state.get$.state.set$.store.delete$.store.get$.store.keys$.store.set$.ui.status$.ui.toast- Can see
every promptevery tool callcompactionsubagent spawns- Reach
- level 2 of 3 drives Claudereads mod statepersists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/schwepps/claude-mods
- Path in repo
model-picker-mod- Source commit
c5ae935the exact code the scan read- Author
- @schwepps
- License
- No license declared — ask the author before reusing code.
- 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.