What is model-router?
model-router is a Claude Code mod by r1305 that middleware que elige el modelo (haiku/sonnet/opus/fable, escalado junior-middle-senior-goat con techo por agente) de todo subagente segun tabla de suelos por agente, complejidad de la. It is listed under Cost & usage and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | r1305 |
| Repository | r1305/claude-mods |
| Popularity | no public popularity data yet |
| Category | Cost & usage |
| Security | Review before installing (72/100) |
| Rank | #7,971 of 9,397 Claude Code mods; #1,556 in Cost & usage |
| License | MIT |
| Last commit | 2026-11-30 |
| Hooks | 11 events |
| Sees | subagent spawns |
| Draws on | AbovePrompt, Pane |
Is model-router safe to install?
model-router scores 72/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables. It passed 5 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 |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes files or config | Review |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.every | |
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.session.cwd | |
$.session.id | |
$.session.usage | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.invalidate | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install model-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/r1305/claude-mods claude plugin validate ./claude-mods/plugins/model-router
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add r1305/claude-mods && claude plugin install model-router@claude-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs model-router for you:
Install the "model-router" Claude Code mod from https://github.com/r1305/claude-mods/tree/main/plugins/model-router. Run claude plugin validate on it first and show me what it can access before you enable it.
More from r1305/claude-mods
This repository has 4 Claude Code mods on MCPMods.
- clean-view: Vista limpia: panel sobre el cuadro de texto con pasos, tiempo y estado (terminado, detenido, pendiente de mi respuesta) (Low risk)
- session-band: Band above the prompt: turn number, output speed, turn and session cost, prompt cache countdown and context fill; notifi (Review before installing)
- session-link: Coordina sesiones paralelas de Claude Code: panel de sesiones activas y mensajes, pizarra compartida (un archivo por ses (Review before installing)