calibrate
Re-tunes the vSR plugin's thresholds from the user's own decision log. Tunes only the parts the user names (for example just the…
Install, configure, verify, maintain, troubleshoot and optimize vLLM Semantic Router v0.5 on a Docker host (CPU, AMD or NVIDIA GPU) or a Kubernetes cluster (Helm or the operator), through its CLI and Router API. Use for a first install, configuration and routing changes, checks
Claude Code
$ npx -y skills add vllm-project/semantic-router --skill vllm-sr-agent-operations --agent claude-code
Codex
$ npx skills add vllm-project/semantic-router --skill vllm-sr-agent-operations -a codex -y
Cursor
$ npx skills add vllm-project/semantic-router --skill vllm-sr-agent-operations -a cursor -y
Gemini CLI
$ npx skills add vllm-project/semantic-router --skill vllm-sr-agent-operations -a gemini-cli -y
GitHub Copilot
$ npx skills add vllm-project/semantic-router --skill vllm-sr-agent-operations -a github-copilot -y
OpenCode
$ npx skills add vllm-project/semantic-router --skill vllm-sr-agent-operations -a opencode -y
Windsurf
$ npx skills add vllm-project/semantic-router --skill vllm-sr-agent-operations -a windsurf -y
name: vllm-sr-agent-operations description: Install, configure, verify, maintain, troubleshoot and optimize vLLM Semantic Router v0.5 on a Docker host (CPU, AMD or NVIDIA GPU) or a Kubernetes cluster (Helm or the operator), through its CLI and Router API. Use for a first install, configuration and routing changes, checks of routed requests, upgrades and the v0.5 config migration, secrets, logs, health, backup and restore, removal, failure diagnosis, and tuning of the decision model, recipes, caches, latency and cost with sr-bench.
The Router serves an OpenAI-compatible API and picks a model for each request. Every routing judgment (a domain, a jailbreak, the complexity of a request, a question you write) is a question to the **decision model**, System One, which the Router's built-in model runtime serves; it starts a model only when a rule or feature asks it. The models that answer users are the user's own endpoints, such as vLLM, Ollama or a hosted API. `vllm-sr serve` runs the stack in Docker: the Router (inference on port 8899, management API on 8080) with its model runtime, the Dashboard (8700), sr-bench (8090) and supporting services.
This file routes you to a task. Each task names its preconditions, the reference that holds its steps, what success looks like, what to do when a step fails, and when to stop and ask the user. Every step is safe to run again.
Never run `vllm-sr serve` without a complete `--config`: without one it starts the Dashboard's setup mode and waits indefinitely. Pass every answer as a flag; no command here prompts.
logs or your report. Name the variable (`api_key_env`, `--token-env`).
`vllm-sr` stack, services on its ports) without asking.
group, publishing a port beyond loopback, deleting volumes or state.
value. An HTTP 200 alone is not success.
evidence of a failed attempt; don't rewrite a check to make it pass.
`vllm-sr config migrate`), run that command if these rules allow it, then rerun the step. Don't work around the message.
containers) and moved by `VLLM_SR_PORT_OFFSET` (default 0, added to every host port). Export both for every command of a second stack.
its state in `.vllm-sr/` beside `config.yaml`.
`ROUTER_ORIGIN=http://127.0.0.1:8080`, Dashboard `http://127.0.0.1:8700`. Add the offset to each port otherwise.
`grep -i`.
These commands change nothing. Run them and keep the results.
uname -sm
docker info --format '{{.ServerVersion}} {{.MemTotal}}'
python3 -c 'import sys; print(sys.version.split()[0])'
python3 -m ensurepip --version
df -h "$HOME" | tail -1
free -g 2>/dev/null | head -2
ls /dev/kfd /dev/dri/render* 2>/dev/null
nvidia-smi -L 2>/dev/null
vllm-sr --version 2>/dev/null && vllm-sr status| Check | Pass | Otherwise | | --- | --- | --- | | Docker | prints a version | "permission denied": ask the user to add their account to the `docker` group. Not installed: ask before installing it. Podman works too: add `--container-runtime podman` to `vllm-sr` commands. | | Python | 3.10 or newer, and `ensurepip` prints `pip …` | Ubuntu and Debian: with the user's OK, `sudo apt-get install -y python3-venv`. Without it the installer stops at "ensurepip is not available". | | Disk | 15 GB free; 40 GB for a GPU platform | Ask the user. The images take about 4 GB (about 22 GB for ROCm) and the default decision model about 6 GB. | | Memory | `MemTotal` of 12 GB or more, and 8 GB available | The default decision model holds about 7 GB on the CPU. Ask: leave the decision-model route out of the first configuration, or run the model on a GPU or a remote System One API ([Optimization](https://vllm-sr.ai/install/agent/vllm-sr/references/optimization.md#choose-the-decision-model)). | | `vllm-sr` | not installed, or `status` says `Not running` | A stack is already running. It is the user's: find its directory (below), verify it with [Verification](https://vllm-sr.ai/install/agent/vllm-sr/references/route-verification.md) using its own decision and model names, and ask before changing it. |
Then check the host ports a stack publishes:
bash -c 'for p in 8899 8080 8700 8090 9190 50051 6379 5432 3000 9090 4317 16686; do (exec 3<>/dev/tcp/127.0.0.1/$p) 2>/dev/null && echo "port $p is in use"; done'
Nothing printed: pass. Otherwise ask the user, or run this stack beside the other one with a [stack name and port offset](https://vllm-sr.ai/install/agent/vllm-sr/references/deployment-loop.md#stack-identity).
Each running stack has one Router container: `vllm-sr-router-container` for the default stack, `NAME-vllm-sr-router-container` for a stack named `NAME`. Its directory is the parent of the `.vllm-sr` directory that Router mounts:
docker ps --format '{{.Names}}' | grep -- '-router-container$'
docker inspect vllm-sr-router-container \
--format '{{range .Mounts}}{{println .Source}}{{end}}' | grep -m1 '/\.vllm-sr$'| Task | When | Reference | | --- | --- | --- | | Deploy | A first install on Docker (CPU, AMD, NVIDIA) or Kubernetes (Helm, the operator); GPUs, Envoy, engine mode, a second stack, a pinned image, a new back
Re-tunes the vSR plugin's thresholds from the user's own decision log. Tunes only the parts the user names (for example just the…
Guided setup for the vSR plugin. Runs the vLLM Semantic Router classifier on this machine's GPU or CPU or connects a remote…
Use for vLLM Semantic Router issue intake, PR decisions, releases, and reviewed GitHub mutations performed on behalf of…
Use when changing a request-visible router contract across configuration, signals, decisions, algorithms, or recipe-scoped…
Use when calibrating or validating a maintained routing recipe against live model backends, including probe manifests and…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration