model-router

by SFT Inc · ★ 0 · updated 2 days ago

PromptAutomationwarnings

0

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), falling back to the engine's built-in classifier.

install model-router

Install

/plugin marketplace add sftinc/claude-code-model-router
/plugin install model-router@sftinc

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startprompt.submitturn.stepagent.spawn
API calls
$.clock.after$.clock.now$.clock.sleep$.env.get$.fs.write$.http.fetch$.model.classify$.session.id$.session.messages$.ui.log
Can see
every promptsubagent spawns
Reach
level 3 of 3 networkwrites filesdrives Claudereads env varsreads the transcriptdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/sftinc/claude-code-model-router
Path in repo
plugin
Author
SFT Inc @sftinc
License
No license declared — ask the author before reusing code.
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.