Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By vllm-projectv0.1.11Apache-2.0In 1 marketplace
Routes subagents to cheaper models by task difficulty, redacts personal data and secrets, and holds risky Bash commands for confirmation. A local decision model installs under ~/.local/share/vsr, using about 2.3 GB of RAM; a remote runtime is also possible.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it decides whether tool calls may run; sees, changes or blocks tool calls; makes network requests; writes files; reads files; reads environment variables (CLAUDE_CONFIG_DIR, HOME, KITTY_WINDOW_ID, KONSOLE_VERSION, TERM, TERM_PROGRAM, TERM_PROGRAM_VERSION, TMUX, USERPROFILE, VTE_VERSION); changes your /config settings; reads or rewrites your prompts.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Logologo
The vLLM Semantic Router mark, the yellow and blue V, beside each vSR card and at the top of the /vsr pane. auto draws the picture in kitty, Ghostty and iTerm2 3.5 or later outside tmux; elsewhere it draws the V in characters, smooth ones (diagonal wedges) in VS Code 1.108+, GNOME Terminal and other VTE 0.60+ terminals, Konsole 22.04+ and foot, and block elements in the rest. image asks for the picture; smooth and blocks pick the characters (smooth suits Windows Terminal 1.25+); off leaves it out.
One of auto, image, smooth, blocks, off
stringdefault auto
App: checkcheck
Checks an answer against the files and command output Claude read that turn. Off by default: on a CPU runtime a long answer outlasts its 3 s limit, so turn it on with a GPU or remote runtime. Off: no classifier call, no card.
booleandefault false
App: guardguard
Holds a Bash command for your confirmation when it could cause serious harm. Off: no classifier call, no card.
booleandefault true
App: redactredact
Hides personal data and secrets in what Claude reads from files and Bash output. Off: no classifier call, nothing hidden.
booleandefault true
App: routerrouter
Routes each general-purpose subagent to Haiku, Sonnet or Opus by how hard its task is, and sets its starting effort by how many steps it needs. Off: no classifier call, no card.
booleandefault true
App: shieldshield
Tells Claude to treat a file or page as data when it tries to give an AI agent instructions. Off: no classifier call, no card.
booleandefault true
What each decision showsdisplay
normal: a card where vSR needs your eyes (a held command, an injection, an unbacked answer), one line where it changed something (a route, hidden data), nothing where all went as usual. quiet: only the cards. verbose: every decision, with its scores. /vsr lists every decision in each mode.
One of normal, quiet, verbose
stringdefault normal
Decision loglogPath
The JSON Lines file every decision is written to, the newest 5000 kept; a leading ~/ is your home directory. /vsr:calibrate reads it. Empty turns logging off.
stringdefault ~/.claude/vsr/decisions.jsonl
Classifier runtimeruntime
Where the decision model runs: on this machine's CPU, on its GPU, or behind a remote API. Shown in /vsr; the URL below is what is called.
One of local-cpu, local-gpu, remote
stringdefault local-cpu
App: escalateescalate
When you push back on an answer, tells Claude to re-check it and sends the next subagent one step up: from Haiku to Sonnet, otherwise at least the session's model with one effort level more. Off: no classifier call, no card.
booleandefault true
Wait: guardguardWait
How long guard waits for the decision model on a Bash command, all its steps together: 1, 2 or 3 seconds, then a command it could not check runs, as redact and shield step aside, and only its fixed rules hold. done: wait until every step is checked, at most 60 s; if one cannot be (a timeout, an error, the decision model offline), the command is held for your confirmation.
One of 1, 2, 3, done
stringdefault 3
Advanced: Redact: personal dataredactPii
A personal-data span with a probability (0 to 1) at or above this is hidden.
numberdefault 0.7
Wait: redactredactWait
How long redact waits for the decision model on a file or command output: 1, 2 or 3 seconds, then what it read in time is hidden and the rest goes to Claude unchecked. done: wait until the check finishes, at most 60 s; if it cannot finish (a timeout, an error, the decision model offline, an output too long to read whole), the output is withheld from Claude.
One of 1, 2, 3, done
stringdefault 3
Router goalrouterGoal
quality: never give a subagent a smaller model than the session's; one the router would make lighter keeps the session's model and effort. balanced: a smaller model only when the classifier is sure (the smaller-model confidence below). save: a smaller model whenever the classifier answers clearly enough to route.
One of quality, balanced, save
stringdefault balanced
Runtime URLruntimeUrl
The runtime's /v1/decisions endpoint. Its /health, at the same base, is checked when a session starts.
stringdefault http://127.0.0.1:8790/v1/decisions
Wait: shieldshieldWait
How long shield waits for the decision model on a file or page: 1, 2 or 3 seconds, then what it read in time is judged and the rest goes to Claude unchecked. done: wait until the check finishes, at most 60 s; if it cannot finish (a timeout, an error, the decision model offline, an output too long to read whole), the output is withheld from Claude.
One of 1, 2, 3, done
stringdefault 2
Advanced: Guard: reviewguardReview
A review score (0 to 1) at or above this holds the command for your confirmation.
numberdefault 0.9
App: router · your turnsrouterTurns
The router also picks the model (Sonnet or Opus, Haiku too with the save goal) and effort for each prompt you send, on your own Claude login. A turn keeps its model through its tool calls, a short reply is read with the prompt before it and keeps the last turn's model, and a move to a smaller model waits while writing the conversation to its cache would cost more than it saves. A model you pick yourself pauses it until /vsr turns on. Off: your turns run on the model you picked.
booleandefault false
Runtime modelruntimeModel
Sent as the request's model when set, for a runtime that serves several models, such as a System One API (GET /v1/systemone/models lists them). Empty sends none.
stringdefault
Runtime tokenruntimeToken
Sent as Authorization: Bearer <token> when set, for a remote runtime behind a proxy. Empty sends no header.
Sensitivestring
Advanced: Shield: injectionshieldInject
A prompt-injection probability (0 to 1) at or above this shields the output.
numberdefault 0.9
Advanced: Escalate: reaskescalateReask
A score (0 to 1) at or above this, for a prompt that asks the prior one again, escalates.
numberdefault 0.75
Advanced: Calibration remindercalibrateEvery
Decisions since the last calibration before a reminder to run /vsr:calibrate, once a session. 0 turns it off.
numberdefault 200
Advanced: Router: hard fromrouterHardFrom
Expected difficulty level (0 to 2) at or above which a subagent goes to Opus; in between, Sonnet. Never below the easy line.
numberdefault 1.5
Advanced: Router: few steps belowrouterStepsLow
Expected reasoning steps (0 to 2) below which Sonnet starts at low effort and Opus at high.
numberdefault 0.5
Advanced: Router: easy belowrouterEasyBelow
Expected difficulty level (0 to 2) below which a subagent goes to Haiku, always at medium effort.
numberdefault 0.5
Advanced: Router: many steps fromrouterStepsHigh
Expected reasoning steps (0 to 2) at or above which Sonnet starts at high effort and Opus at xhigh; in between, medium and high. Never below the few-steps line.
numberdefault 1.2
Advanced: Check: unsupportedcheckUnsupported
A hallucination score (0 to 1) at or above this marks the answer UNVERIFIED.
numberdefault 0.5
Advanced: Escalate: feedbackescalateFeedback
A WRONG_ANSWER or WANT_DIFFERENT probability (0 to 1) at or above this escalates.
numberdefault 0.8
Advanced: Router: minimum confidencerouterMinConfidence
Below this confidence (0 to 1) the subagent keeps its default model.
numberdefault 0.3
Advanced: Router: steps minimum confidencerouterStepsMinConfidence
Below this confidence (0 to 1) the steps answer is ignored and the model's default effort is used: Sonnet medium, Opus high.
numberdefault 0.3
Advanced: Router: smaller-model confidencerouterDowngradeConfidence
With the balanced goal, the confidence a route to a smaller model than the session's needs (0 to 1); below it the subagent keeps its model.
numberdefault 0.6
vSR gives Claude Code's subagents a cheaper model when their task is easy, holds risky Bash commands for you to confirm, and hides personal data and secrets before Claude reads them. A small decision model from the vLLM Semantic Router project (vela3-lite, about 2.3 GB of RAM) makes these calls on your machine or on a runtime you host; your requests still go to Claude as usual. It does six things:
| App | What it does |
|---|---|
| router | Gives each general-purpose subagent a model (Haiku, Sonnet or Opus) and an effort level that fit its task, and with your turns on, each prompt you send. |
| escalate | When you push back on an answer, Claude re-checks it and the next subagent, or with your turns routed the turn itself, goes one step up. |
| redact | Hides personal data and secrets in Read and Bash output before Claude reads them. |
| shield | Warns Claude when a file or web page tries to give it instructions. |
| guard | Holds a risky Bash command for you to confirm, part by part. |
| check | Marks an answer that is not backed by what Claude read that turn. Off by default: see Check. |

You need Claude Code 2.1.319 or later and Python 3.
claude plugin marketplace add vllm-project/semantic-router
claude plugin install vsr@vllm-sr
Then, in a Claude Code session:
/vsr:setup
The setup looks at your machine, then offers a recommended setup: it installs and starts the
decision model on this machine (GPU if you have one, else CPU), turns on five apps with the measured
defaults (check stays off, see Check), shows you the settings it will write, and checks each app against the model. A
custom setup lets you pick the runtime (including a remote one), the apps and the thresholds. When
it is done, run /reload-plugins and then /vsr.
The local runtime needs about 2.3 GB of RAM on CPU (about 2 GB of GPU memory on a GPU) and is
installed into ~/.local/share/vsr, without sudo.
vSR draws each decision under the row it is about, and keeps a one-line tally, in a dim frame,
above the prompt. /vsr opens a pane with every decision of the session and the current setup.
The top of the /vsr pane, under the logo, holds the controls, which you can change at any time:
apps: one entry per app, ● guard when on and a dim ○ check when off. Click one, or press its
digit (1 to 6) while the pane has focus, to turn it on or off.redact waits, shield waits, guard waits: how long each protective app waits for the decision
model, 1s, 2s, 3s or until done; the chosen one is highlighted in the app's colour. The row
of an app that is off is dim, and you can still pick its wait.The same changes work as commands: /vsr redact off, /vsr check on, /vsr guard wait done,
/vsr shield wait 3. Each change is saved like one made in /config, and vSR reloads with it.
By default (display: normal) vSR only interrupts when it matters:
HELD: a Bash command waits for your yes or no in Claude Code's permission dialog. The dialog says which part was risky and why.DECLINED or APPROVED: what you answered.SHIELDED: a file or page tried to instruct Claude; Claude was told to treat it as data.UNVERIFIED: the answer claims things that what Claude read does not back. Look twice.REDACTED with a note on unchecked characters: a long output was only partly checked in time.WITHHELD: redact or shield waits until done and could not finish its check, so Claude got
no output from that file or command. The card says why.ROUTED: the subagent's model and effort, and how hard the task looked; under a prompt, the
model and effort your turn moved to and the one it moved from.KEPT: the subagent stays on your session's model, or your turn on the model it ran on, and why
(the router was not sure enough, routerGoal is quality, a short reply, or a move that would
re-read more of the conversation than it saves).REDACTED: what kinds of data were hidden from a file or command. The same kinds hidden from the same file again are not repeated.ESCALATED: you pushed back; Claude re-checks and the next subagent (or this turn) goes one step up.PARTIAL: an output was read only in part, and the rest went to Claude unchecked.SKIPPED: an app got no answer in time, and the line says what went unchecked (for example
ticket.txt went to Claude unchecked for personal data); Claude went on without it./vsr.7-day copy clicks
npx claudepluginhub vllm-project/semantic-router --plugin vsrPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.