What is model-router?
model-router is a Claude Code mod by sftinc that routes each turn and subagent to a model tier and reasoning effort using a classifier behind any server that speaks POST /v1/classify (model-router-api on Cloudflare Workers AI today),. It is listed under Agents & automation and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | sftinc |
| Repository | sftinc/claude-code-model-router |
| Popularity | no public popularity data yet |
| Category | Agents & automation |
| Security | High risk (40/100) |
| Rank | #4,570 of 5,272 Claude Code mods; #355 in Agents & automation |
| Last commit | 2026-10-05 |
| Hooks | 4 events |
| Sees | every prompt, subagent spawns |
| Draws on | nothing |
Is model-router safe to install?
model-router scores 40/100 on the MCPMods security check: High risk. Things to review: sends data over the network; writes files or config; reads environment variables; watches every prompt or event. It passed 1 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 |
|---|---|
| Sends data over the network | Review |
| Starts no processes | Pass |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.now | |
$.clock.sleep | |
$.env.get | reads env vars |
$.fs.write | writes files |
$.http.fetch | network requests |
$.model.classify | drives Claude |
$.session.id | |
$.session.messages | reads the transcript |
$.ui.log | 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/sftinc/claude-code-model-router claude plugin validate ./claude-code-model-router/plugin
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add sftinc/claude-code-model-router && claude plugin install model-router@sftinc
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/sftinc/claude-code-model-router/tree/main/plugin. Run claude plugin validate on it first and show me what it can access before you enable it.