model-router

model-router is a Claude Code mod by DuffyEthan that haiku reads each prompt and routes it to the cheapest capable model and effort.

Updated 2026-10-22

What is model-router?

model-router is a Claude Code mod by DuffyEthan that haiku reads each prompt and routes it to the cheapest capable model and effort. It is listed under Agents & automation and has 1 GitHub stars.

TypeClaude code mod
AuthorDuffyEthan
RepositoryDuffyEthan/model-router
Popularity1 GitHub stars
CategoryAgents & automation
SecurityHigh risk (56/100)
Rank#3,542 of 9,397 Claude Code mods; #280 in Agents & automation
LicenseMIT
Last commit2026-10-22
Hooks6 events
Seesclassic hooks, compaction, every prompt
Draws onnothing

Is model-router safe to install?

model-router scores 56/100 on the MCPMods security check: High risk. Things to review: writes files or config; reads environment variables; watches every prompt or event. It passed 3 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
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.readreads files
$.fs.writewrites files
$.model.completedrives Claude
$.session.id
$.session.messagesreads the transcript
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.statusdraws 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/DuffyEthan/model-router
    claude plugin validate ./model-router/plugin
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add DuffyEthan/model-router && claude plugin install model-router@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/DuffyEthan/model-router/tree/main/plugin. Run claude plugin validate on it first and show me what it can access before you enable it.