Home / Claude Code mods / Security / model-router

model-router

model-router is a Claude Code mod by TFoxik that model and effort routing per kind of work, with prompt-cache and cost tracking, a cold-cache guard, and an optional learn mode that explains what each choice cost.

Updated 2026-11-27

What is model-router?

model-router is a Claude Code mod by TFoxik that model and effort routing per kind of work, with prompt-cache and cost tracking, a cold-cache guard, and an optional learn mode that explains what each choice cost. It is listed under Security and has 1 GitHub stars.

TypeClaude code mod
AuthorTFoxik
RepositoryTFoxik/claude-model-router
Popularity1 GitHub stars
CategorySecurity
SecurityReview before installing (60/100)
Rank#4,309 of 9,397 Claude Code mods; #513 in Security
LicenseMIT
Last commit2026-11-27
Hooks12 events
SeesEnterPlanMode calls, ExitPlanMode calls, compaction, every prompt, every tool call, subagent spawns
Draws onPane, SessionMode, AbovePrompt, AbovePromptList

Is model-router safe to install?

model-router scores 60/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables; watches every prompt or event. It passed 4 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
No network accessPass
Starts no processesPass
Writes files or configReview
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.agent.list
$.clock.every
$.clock.now
$.clock.sleep
$.command.list
$.command.register
$.command.rundrives Claude
$.env.getreads env vars
$.fs.existsreads files
$.fs.listreads files
$.fs.readreads files
$.fs.writewrites files
$.model.classifydrives Claude
$.model.forkdrives Claude
$.prompt.fillwrites the prompt box
$.prompt.read
$.prompt.submitdrives Claude
$.session.id
$.session.messagesreads the transcript
$.session.model
$.session.repo
$.session.root
$.session.surfaces
$.session.usage
$.settings.readreads settings
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.tool.list
$.ui.closedraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.panesdraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws 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/TFoxik/claude-model-router
    claude plugin validate ./claude-model-router/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add TFoxik/claude-model-router && claude plugin install model-router@claude-model-router

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/TFoxik/claude-model-router. Run claude plugin validate on it first and show me what it can access before you enable it.