Skip to content
Agent Orchestration
Skill

/vllm-sr-agent-operations

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

From plugin
semantic-router
6.5k6 skills

Claude Code

$ npx -y skills add vllm-project/semantic-router --skill vllm-sr-agent-operations --agent claude-code

SKILL.md

vllm-sr-agent-operations.SKILL.md
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.

vLLM Semantic Router: operate it as an agent

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.

Ground rules

  • Nothing waits for a person.

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.

  • Keep secrets in environment variables, never in YAML, command arguments,

logs or your report. Name the variable (`api_key_env`, `--token-env`).

  • Don't stop, restart or replace what you didn't start (containers, a running

`vllm-sr` stack, services on its ports) without asking.

  • Ask before system-wide changes: installing packages, adding the user to a

group, publishing a port beyond loopback, deleting volumes or state.

  • Success is what the output contains: an exit code, a JSON field, a header

value. An HTTP 200 alone is not success.

  • Change one thing at a time, then rerun the step that failed. Keep the

evidence of a failed attempt; don't rewrite a check to make it pass.

  • When an error names the command that fixes it (an image pull, a rebuild,

`vllm-sr config migrate`), run that command if these rules allow it, then rerun the step. Don't work around the message.

Conventions

  • A stack is named by `VLLM_SR_STACK_NAME` (default `vllm-sr`, which names its

containers) and moved by `VLLM_SR_PORT_OFFSET` (default 0, added to every host port). Export both for every command of a second stack.

  • Run a stack's `vllm-sr` commands from its config directory; the stack keeps

its state in `.vllm-sr/` beside `config.yaml`.

  • With offset 0: inference `http://127.0.0.1:8899/v1`, management

`ROUTER_ORIGIN=http://127.0.0.1:8080`, Dashboard `http://127.0.0.1:8700`. Add the offset to each port otherwise.

  • JSON checks use `python3 -c`; header names are case-insensitive, so use

`grep -i`.

Preflight

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$'

Tasks

| 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

Read more
@vllm-project
Ships withsemantic-router

An open, programmable decision layer for models and compute.

Stars on GitHub

Momentum

stars in total
6.5k
Star history of vllm-project/semantic-router on GitHub, a chart by star-history.com

Other skills on semantic-router.

calibrate

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…

setup

setup

Guided setup for the vSR plugin. Runs the vLLM Semantic Router classifier on this machine's GPU or CPU or connects a remote…

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw4d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca2d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip3d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about vllm-sr-agent-operations.

Which coding agents can use vllm-sr-agent-operations?
vllm-sr-agent-operations installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.