跳到正文
vLLM 官方博客· vLLM Semantic Router Team·AI 评分65

vLLM Semantic Router v0.5 Ariadne 发布:单一决策模型与编码 Agent 网关

vLLM Semantic Router v0.5 Ariadne: Routing the World's Intelligence

AI 导读

vLLM Semantic Router 发布 v0.5 Ariadne 大版本,用单个决策模型处理路由信号、守卫和评判,并新增 vllm-sr connect 一条命令将 Claude Code、Codex 或 Pi 接入 Router 网关。

正文 · 原文

Every answer starts with a decision: which model answers, how hard it thinks, and what it may do. v0.5 Ariadne puts that decision in one model, serves it from the Router itself, and keeps a record of every route, from a single prompt to the hundredth tool call of a coding agent.

Tip: Try it in a minute: curl -fsSL https://vllm-sr.ai/install.sh | bash, finish setup in the Dashboard, then vllm-sr connect claude-code.

In the labyrinth, Ariadne's thread is what lets you find the way back. A routed request needs the same thread: which question the Router asked, which model answered, what it cost, and whether another route would have been better. Since v0.4, 1,339 commits from 137 contributors went into four moves toward it.

Figure 1: Ariadne in four moves.
Figure 1: Ariadne in four moves.

Important: Ariadne is a breaking release. See Upgrade from v0.4.

1. One Decision Model for Every Judgment

You write a question. One decision model returns probabilities. Rules route on them. No classifier to train, no example bank to collect: the same model answers the routing signals, the guards and the judges.

Figure 2: Write a question, get probabilities, route on them.
Figure 2: Write a question, get probabilities, route on them.
  • Typed questions: choice, yes/no, score, set and span, plus box and track for images and video. A configuration fails to load when a question goes to a model that cannot answer it.
  • A ladder of models: the default vela3-fast runs on a CPU; Vela 3.0 and 3.1, Decision 3.0, Vela 2.0 and Decision 2.0 add scores, images and video. System One Auto lets a small model answer first and a larger one take the hard cases.
  • One configuration at schema v0.5: flat recipes, model facts on providers.models[], and every algorithm a selector or an executor. escalate replaces the old confidence and cascade algorithms.

See the System One overview for every question type and model.

2. One Gateway for Coding Agents

A coding agent sends hundreds of model calls in one task: the main loop, subagents, compactions, titles and approval reviews. vllm-sr connect wires Claude Code, Codex or Pi to the Router in one command: it writes the gateway, key, subagent aliases and context window, previews every change with --dry-run, and takes it back with --undo. --check runs the harness once through the gateway and reports each step.

Figure 3: One command per harness, checked end to end.
Figure 3: One command per harness, checked end to end.
  • Your login or your key. Claude Code on a Claude login and Codex on a ChatGPT login can route through the gateway and share a pool with keyed and local models.
  • Agents that hand off. --delegate lets Claude Code hand a task to Codex and back, each in its own client, and no credential passes between them.
  • More harnesses. The Codex app, Codex approval reviews and memories connect too, and OpenCode and a VS Code extension use the same gateway.

The Router then knows who sent each call: the agent signal names the harness and, for Claude Code, Codex, OpenCode and OpenClaw, the request class such as main, subagent, compaction or auxiliary. A recipe can send compactions and session titles to a small model, hold each subagent on its own model, and escalate when tool calls keep failing.

Figure 4: One agent run, one tree.
Figure 4: One agent run, one tree.

The vSR plugin also runs the decision model inside Claude Code and Codex CLI to guard risky commands and redact secrets, and a listener can now hand vSR its own rules. See the agent harness guide for every option.

3. A Smaller Stack

The Router now serves the API itself, and one built-in runtime serves its models. Envoy is optional (--gateway extproc), and Helm and the Operator default to standalone too.

Figure 5: One container less, one runtime for the models.
Figure 5: One container less, one runtime for the models.
  • Listeners are a real API surface: TLS with certificate reload, client keys checked before any work, per-listener model allowlists, API path prefixes and graceful drain.
  • One runtime, vllm-srun, ships in every Router image and serves the models the Router runs itself, replacing the Candle, ONNX Runtime and OpenVINO bindings. It runs on CPUs, AMD Instinct and NVIDIA GPUs with FP8, INT4 and NVFP4 packages; Ascend NPUs work but are not yet validated.
  • Engine mode serves a decision model on its own (vllm-sr serve vllm-sr/vela3.1-fast --engine --platform cpu), so another Router or application can use it remotely.

See gateway modes.

4. Plugins Only Act

A signal answers; a plugin acts. Fifteen plugin types become eleven, and masking is new: personal data becomes a placeholder before a provider reads it.

Figure 6: Fifteen plugin types become eleven.
Figure 6: Fifteen plugin types become eleven.
  • context owns retrieval, memory and compression to one token budget, judged by the same decision model.
  • response_guard checks the answer on the signals it names, and reads all of a streamed answer before it releases it.
  • tools can let the decision model pick the tools a request needs, keeping their order so the prompt cache holds.
  • masking blocks the request when its detector is missing, instead of sending personal data unmasked.

5. Cost You Can Explain

Every record carries the cost, a stated baseline and the saving. Insights totals are net of the Router's own calls, nothing unpriced counts as free, and spend budgets apply per run and per user.

Figure 7: Cost, baseline and saving. Prices are illustrative.
Figure 7: Cost, baseline and saving. Prices are illustrative.

The baseline is stated in every record (by default the most expensive model in the recipe's pool), prompt-cache reads and writes are priced as the provider bills them, and vllm-sr usage prints what the Router served and saved, straight from the terminal.

6. Evidence for Every Route

The live answer never changes. A routing record is kept by default, Shadow Dispatch tries other candidates, and recipe-lab measures a recipe change before a person promotes it.

Figure 8: From a request to a measured recipe change.
Figure 8: From a request to a measured recipe change.
  • The record keeps routing data and no prompt text unless you choose a capture mode; with a persistent store it survives restarts.
  • Shadow Dispatch shares a deadline, a spend limit and a token bound across its candidates.
  • recipe-lab attributes misroutes, proposes a change, and verifies it on sr-bench. A timed-out trial is inconclusive, never a pass.

7. A Dashboard Built Around Runs

The Dashboard was rebuilt: a sidebar, a ⌘K command menu, light and dark themes, and Requests as a session tree with a Timeline of every agent run.

Figure 9: One Claude Code run on the new Timeline: the main agent, three subagents, a compaction and five model switches.
Figure 9: One Claude Code run on the new Timeline: the main agent, three subagents, a compaction and five model switches.

Also new in Ariadne:

  • Privacy: PII rules can read tool results, guard verdicts can be shared across Router replicas, and jailbreak and pii rules fail closed by default.
  • APIs: Images and Speech route like text, encrypted Responses reasoning goes back only to an OpenAI-hosted model, and a request that would lose a field across protocols is refused unless you allow it.
  • Recipes: a use-case-first recipe page lists each maintained recipe with the commands that validate and serve it.

Upgrade from v0.4

Run vllm-sr config migrate once, then check six things.

Figure 10: One migrate, then six things to check.
Figure 10: One migrate, then six things to check.
pip install vllm-sr==0.5.0
docker pull ghcr.io/vllm-project/semantic-router/vllm-sr:v0.5.0   # migrate asks this Router
vllm-sr config migrate --config config.yaml   # writes config.migrated.yaml
vllm-sr serve --config config.migrated.yaml

A configuration that reads the client's identity runs in extproc mode (VLLM_SR_GATEWAY=extproc for migrate, validate and serve), and a few forms with no rewrite, such as the image_gen plugin, make migrate refuse the file with a note on what to write instead. The migration guide lists every removed form and its rewrite.

Thank You

1,339 commits from 137 contributors, 89 of them first-time. Welcome to our new Maintainers Wilson Wu, Park Soobin, Theo Hsiung and Ádám Kovács, and thank you to everyone who wrote code, reviewed changes, trained models and tested the release.

Next, the thread makes routing cheaper and proves it: KV-cache reuse measured in real agent sessions, per-replica cache state for load balancing and model selection, faster decisions on more hardware, the next Vela, and offline replay of recipe changes. Join a Workgroup.

Semantic Router Labs

The team behind vLLM Semantic Router launched Semantic Router Labs on November 26, 2026: an open research lab with one mission, every thought, to the right mind, launched with AMD leading the way and founding members from CPIL, KR Labs, SyDIL, MBZUAI, Stanford, McGill, Mila and UTS College.

The lab starts from what the project built in its first year: more than 6,500 GitHub stars, 300 contributors, 2 million downloads, 125 open models and 20 research papers. Read the launch posts on X and LinkedIn.

Follow us: semantic-router.org · X @SemanticRouter · LinkedIn Semantic Router Labs · GitHub semantic-router · read the mission

Welcome to Ariadne: follow every route.

来源:vLLM 官方博客 · vllm.ai