What is model-router?
model-router is a Claude Code mod by p4t1gsr that sends easy prompts (short questions, typos, renames, explanations) to a cheaper model. It is listed under Agents & automation and has 1 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | p4t1gsr |
| Repository | p4t1gsr/claude-mods |
| Popularity | 1 GitHub stars |
| Category | Agents & automation |
| Security | Low risk (100/100) |
| Rank | #4,092 of 9,397 Claude Code mods; #322 in Agents & automation |
| License | MIT |
| Last commit | 2026-10-20 |
| Hooks | 5 events |
| Sees | only the events it hooks |
| Draws on | nothing |
Is model-router safe to install?
model-router scores 100/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 8 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 no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.command.register | |
$.session.append | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.status | 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/p4t1gsr/claude-mods claude plugin validate ./claude-mods/model-router
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add p4t1gsr/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/p4t1gsr/claude-mods/tree/main/model-router. Run claude plugin validate on it first and show me what it can access before you enable it.
More from p4t1gsr/claude-mods
This repository has 2 Claude Code mods on MCPMods.
- session-dashboard: Dashboard panel with live activity, sub-workers, tokens, budget, git, skills and files, plus themed chat (High risk)