Skip to main content
Version: Latest (main)

Install with an agent

Paste this prompt into a coding agent with terminal access to the target machine:

Install the development channel of vLLM Semantic Router on this machine, then configure it and verify a routed request by following the official skill: https://vllm-sr.ai/install/agent/vllm-sr/SKILL.md. Use the same skill later to upgrade, troubleshoot and tune it.

The vLLM SR Skill takes the agent from a host with Docker to a verified, routed request, and stays useful afterwards: the same skill upgrades the stack, migrates a configuration to v0.5, diagnoses failures and tunes routing. Dashboard and Playground checks are optional. Add the model endpoint to use, such as a local Ollama or vLLM server or a hosted API, and any constraints; the agent asks before it changes anything outside the stack.

Once the Router is running, connect your agent harness. For other tasks and contributor workflows, use the skill catalog. For a focused local vllm-sr serve walkthrough, use the Serve skill. To verify which decision model answers a recipe's signals, use the Decision-model skill. For a reviewable workload-to-recipe configuration, use the Configure-recipe skill. To explain a route, fallback, or delivery failure, use the Routing-diagnosis skill. For a bounded, reproducible sr-bench run, use the Benchmark skill. For a paired A/B verdict from compatible runs, use the Comparison skill. For a measured recipe improvement and calibration handoff, use the Tune-recipe skill. The skill workflows guide shows how these fit together and which evidence each one produces.

Release channel

The Skill follows main, as these pages do. It installs the stable release when that release reads the v0.5 configuration (vllm-sr config schema reports "config_version": "v0.5"), and the development channel otherwise, and tells you which one it installed.

What the Skill covers​

The skill is a short router over six tasks. Each task states its preconditions, the reference with its steps, what the output must contain (exit codes, JSON fields, header values), what to do when a step fails, and when to stop and ask you.

TaskWhat the agent does
DeployInstalls the CLI, writes and validates a configuration, starts the stack on Docker (CPU, AMD or NVIDIA) or Kubernetes (Helm or the operator), and checks it
ConfigureChanges models, signals, decisions, plugins, recipes or entrypoints of a running stack with config validate, config plan and config apply
VerifyPreviews routing, probes the routed path, reads the response headers and checks that the decision model is ready
MaintainUpgrades, runs vllm-sr config migrate for v0.5, rolls back configuration versions, backs up and restores, rotates secrets, reads logs and health, removes the stack
TroubleshootMatches a symptom to a check and a fix, including the v0.5 load errors, a decision model that isn't ready, header trust and image routes
OptimizeChooses the decision model and its hardware, tunes recipes, caches and judge caps, and measures quality, latency and cost with a short sr-bench run

A first install​

  1. Preflight, without changing anything: Docker access and memory, Python and its venv support, free disk and ports, AMD or NVIDIA GPU devices, and any vllm-sr stack that already runs.
  2. Chooses the path: the release channel; the platform (--platform rocm or cuda when the host has those GPUs, --platform cpu when you keep them for other work); standalone mode, or --gateway extproc when you need Envoy; Docker or Kubernetes; and the model endpoint, checked the way the Router container will reach it.
  3. Installs the CLI with the curl installer, without starting a stack, and checks that it reads the v0.5 configuration.
  4. Writes a configuration for your model, with the inference API bound to 127.0.0.1, one keyword route, and one route that the decision model judges (a domains rule), and validates it with vllm-sr config validate.
  5. Starts the stack with vllm-sr serve --config config.yaml, never in setup mode, which would wait for a person. The first start downloads the default decision model, vela3-fast, which holds about 7 GB on the CPU.
  6. Verifies it against explicit criteria: vllm-sr status, GET /v1/models, the decision model's readiness, vllm-sr route preview for both routes, a routed request with its x-vsr-selected-decision, x-vsr-selected-model and x-vsr-response-path headers, and vllm-sr route probe. On a GPU host it also serves one decision model on the GPU in engine mode.
  7. Hands off the version and channel, the configuration path, the endpoints, the decision model, the Dashboard's first-administrator step, and what each check returned.

Every step is safe to rerun: an existing configuration or running stack is verified, not replaced.

Direct contracts​

The agent works against the same contracts used by the CLI and Dashboard.

PurposeCLI or Router contract
Discover operationsGET /api/v1?audience=agent&visibility=primary
Inspect an operationGET /openapi.json?path=...&method=...
Discover configurationvllm-sr config schema or GET /api/v1/config/schema
Discover packaged Recipesvllm-sr recipe builtin list
First launchvllm-sr config validate, then vllm-sr serve --config config.yaml
Check the stackvllm-sr status, GET /ready
Check the decision modelGET /api/v1/inventory/model-runtime
Plan an existing-stack changevllm-sr config validate, then vllm-sr config plan
Apply a hot-reloadable changevllm-sr config apply, which plans again before applying
Move a configuration to v0.5vllm-sr config migrate
List and restore versionsvllm-sr config versions, vllm-sr config rollback
Test routing logicvllm-sr route preview
Test the complete data pathvllm-sr route probe
Serve a decision model alonevllm-sr serve ARTIFACT --engine
Measure quality, latency and costvllm-sr benchmark plan, vllm-sr benchmark run

The management origin, port 8080 on a local stack, serves health, discovery, configuration, and OpenAPI. The inference listener, port 8899, separately serves the supported inference protocols. An agent must discover both rather than infer one from the other.

Safety boundaries​

  • Keep API keys and provider credentials in environment variables; do not put secret values in prompts, YAML, command arguments, or logs.
  • Keep changes within the requested deployment and existing authorization; obtain missing authorization before installing packages, publishing a port beyond loopback, stopping or upgrading a stack you run, deleting volumes or state, or disrupting an unrelated service such as a stack the agent didn't start.
  • A routing preview runs routing signals without backend generation. A route probe is the end-to-end check that reaches the selected backend.
  • Use the running Router's discovery, schema, and OpenAPI responses as the authority for its installed version.

For deeper configuration work, continue with the configuration contract and configuration workflows; for v0.5, the migration guide and System One. For model and Mixture-of-Models evaluation, use the agent evaluation loop.

Maintaining the Skill​

Each public skill has one authored source under tools/agent/skills/. Edit the source and run make agent-skill-sync; do not edit its public copy. The generator checks linked documents and makes relative Markdown links absolute so a remote agent can load a reference without a checkout. Commit the generated files alongside their sources; the website publishes those static files directly.

make agent-skill-check, pre-commit, and make harness-check reject missing or stale generated files. Two tests keep the Skill honest: the Router loads every YAML block of the Skill with its own configuration parser, and the CLI's unit suite parses every vllm-sr command line with the CLI's own argument parser and checks every command and option the prose names.

Change the Skill together with the CLI behavior it describes, and follow it on a fresh host before publishing: its commands and expected outputs are the contract an agent runs.