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),.

Updated 2026-10-05

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.

TypeClaude code mod
Authorsftinc
Repositorysftinc/claude-code-model-router
Popularityno public popularity data yet
CategoryAgents & automation
SecurityHigh risk (40/100)
Rank#4,570 of 5,272 Claude Code mods; #355 in Agents & automation
Last commit2026-10-05
Hooks4 events
Seesevery prompt, subagent spawns
Draws onnothing

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.

CheckResult
Sends data over the networkReview
Starts no processesPass
Writes files or configReview
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
No license detectedNote

API calls in its code

CallWhat it means
$.clock.after
$.clock.now
$.clock.sleep
$.env.getreads env vars
$.fs.writewrites files
$.http.fetchnetwork requests
$.model.classifydrives Claude
$.session.id
$.session.messagesreads the transcript
$.ui.logdraws interface

How do I install model-router?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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
  3. 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.