Home / Claude Code mods / Agents & automation / clef-model-router

clef-model-router

clef-model-router is a Claude Code mod by AbelNavarro that picks the Claude model and reasoning effort for each turn with Cloudflare Clef, a fast decision model on Workers AI.

Updated 2026-10-04

What is clef-model-router?

clef-model-router is a Claude Code mod by AbelNavarro that picks the Claude model and reasoning effort for each turn with Cloudflare Clef, a fast decision model on Workers AI. It is listed under Agents & automation and has 1 GitHub stars.

TypeClaude code mod
AuthorAbelNavarro
RepositoryAbelNavarro/clef-model-router
Popularity1 GitHub stars
CategoryAgents & automation
SecurityHigh risk (52/100)
Rank#1,445 of 5,272 Claude Code mods; #125 in Agents & automation
LicenseApache-2.0
Last commit2026-10-04
Hooks9 events
Seescompaction, every prompt
Draws onPromptHint

Is clef-model-router safe to install?

clef-model-router scores 52/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 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
Sends data over the networkReview
Starts no processesPass
Writes files or configReview
Reads environment variablesReview
Watches every prompt or eventReview
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.clock.sleep
$.command.register
$.env.getreads env vars
$.fs.listreads files
$.fs.readreads files
$.fs.writewrites files
$.http.fetchnetwork requests
$.session.id
$.session.model
$.session.usage
$.settings.readreads settings
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.invalidatedraws interface
$.ui.toastdraws interface

How do I install clef-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/AbelNavarro/clef-model-router
    claude plugin validate ./clef-model-router/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add AbelNavarro/clef-model-router && claude plugin install clef-model-router@clef-model-router

Or ask Claude to set it up

Paste this into Claude Code and it installs clef-model-router for you:

Install the "clef-model-router" Claude Code mod from https://github.com/AbelNavarro/clef-model-router. Run claude plugin validate on it first and show me what it can access before you enable it.