semantic-router

vllm-projectApache-2.0活跃维护

面向 LLM 推理的可编程语义路由层,按请求语义把流量分发到不同模型和算力,并内置护栏与 K8s 集成。

An open, programmable decision layer for models and compute.

v0.4.0发布于 2026-09-27 06:59 UTC6,444star +28 / 7 天1,114fork同步于 2026-11-10 17:35 UTC

怎么上手

由 README 提炼,执行前请确认
curl -fsSL https://vllm-sr.ai/install.sh | bash -s -- --channel stable
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

给 agent harness 一个统一 API,按策略为每次调用选择或组合多个模型

面向 LLM 推理的可编程语义路由层,按请求语义把流量分发到不同模型和算力,并内置护栏与 K8s 集成。

核心能力

  • 用统一推理端点接入多个模型后端
  • 按策略为每次调用选择或组合模型
  • 在本地、私有与云端算力间路由
  • 按质量、延迟、成本偏好设定策略
  • 支持公开模型 ID vllm-sr/auto 调用

容易踩的坑

需把 agent harness 指向 Router 的推理端点,并使用 vllm-sr/auto 这类公开模型 ID;pip、uv 或 agent 驱动的安装方式需另查安装指南;README 未说明默认端口与后端依赖

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

4 个版本v0.4.0
  1. v0.4.0Release v0.4.0最新正式版2026-09-27 · 2026-09-27 06:59 UTC

    Announcement

    982 commits · 130 contributors · 107 first-time contributors since Themis. This is a milestone built by a growing community across models, runtime, evaluation, and the experience of putting it all to work.

    Read the full release blog 🎉

    Python

    pip install vllm-sr==0.4.0
    

    New Contributors

  2. v0.3.0Release v0.3.02026-06-05 · 2026-06-05 12:08 UTC
    查看更新说明

    Release v0.3.0

    Container Images (GHCR)

    Always pin to a version tag in production — it is immutable.

    docker pull ghcr.io/vllm-project/semantic-router/extproc:v0.3.0
    docker pull ghcr.io/vllm-project/semantic-router/vllm-sr:v0.3.0
    docker pull ghcr.io/vllm-project/semantic-router/anthropic-shim:v0.3.0
    docker pull ghcr.io/vllm-project/semantic-router/dashboard:v0.3.0
    docker pull ghcr.io/vllm-project/semantic-router/operator:v0.3.0
    docker pull ghcr.io/vllm-project/semantic-router/operator-bundle:v0.3.0
    
    ImageTags pushed
    extprocv0.3.0 · latest
    vllm-srv0.3.0 · latest
    anthropic-shimv0.3.0 · latest
    extproc-rocmv0.3.0 · latest
    vllm-sr-rocmv0.3.0 · latest
    llm-katanv0.3.0 · latest
    dashboardv0.3.0 · latest
    operatorv0.3.0 · latest
    operator-bundlev0.3.0 · latest

    Helm Chart

    # Install a specific version
    helm install semantic-router \
      oci://ghcr.io/vllm-project/charts/semantic-router \
      --version 0.3.0 \
      --namespace vllm-semantic-router-system --create-namespace
    
    # Upgrade to this version
    helm upgrade semantic-router \
      oci://ghcr.io/vllm-project/charts/semantic-router \
      --version 0.3.0 \
      --namespace vllm-semantic-router-system
    

    Python Package (PyPI)

    pip install vllm-sr==0.3.0
    

    Rust Crate (crates.io)

    [dependencies]
    candle-semantic-router = "0.3.0"
    

    vllm-sr-sim ships on its own vllm-sr-sim-v* tag and is currently at 0.1.0.

    See the upgrade and rollback runbook for step-by-step upgrade and rollback instructions.

    What's Changed

  3. v0.2.0Release v0.2.02026-03-10 · 2026-03-10 09:09 UTC
    查看更新说明

    Installation

    curl -fsSL https://vllm-semantic-router.com/install.sh | bash
    

    What's Changed

    See the full changelog below.

    What's Changed

  4. v0.1.0Release v0.1.02026-01-05 · 2026-01-05 05:59 UTC
    查看更新说明

    Release Blog: https://blog.vllm.ai/2026/01/05/vllm-sr-iris.html

    What's Changed

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Main GitHub Release Go Ask DeepWiki


    About

    Intelligence beyond any one model.

    Give your agent harness one API for many models. vLLM Semantic Router selects or combines models for each call, guided by your policy.

    Your harness keeps the agent loop, tools, and task state. The Router chooses among configured backends across local, private, and cloud compute.

    DimensionFragmented todayWith vLLM SR
    ModelsDifferent models excel at different tasks.Select or combine models.
    ComputeHardware varies in speed and capacity.Choose among configured backends.
    LocationEdge, private, and cloud.Keep calls within approved locations.
    PreferencePriorities change by task.Set quality, latency, and cost priorities.

    Explore how it works →

    Getting Started

    Install

    curl -fsSL https://vllm-sr.ai/install.sh | bash -s -- --channel stable
    

    For pip, uv, or agent-driven installation, see the Installation Guide.

    Connect your agent harness

    Point your harness at the Router's inference endpoint. Use a public model ID such as vllm-sr/auto.

    Follow Connect an agent harness for setup and compatibility.

    Online playground

    Try the online playground at https://app.vllm-sr.ai/playground.

    Credentials:

    Latest News

    More announcements are available on the Blog and Publications pages.

    Community

    For questions, feedback, or to contribute, please join the #semantic-router channel in vLLM Slack. Track contributors, workgroups, and weekly activity at community.vllm-sr.ai.

    Community Meetings

    We host two monthly community meetings across APAC and the Americas:

    • APAC-friendly meeting — second Wednesday of the month: 9:00-10:00 AM Singapore time (UTC+8; the same local time in Beijing)
    • Americas-friendly meeting — fourth Wednesday of the month: 8:00-9:00 PM Eastern Time (America/New_York) / 5:00-6:00 PM Pacific Time

    Contributing

    If you want to contribute, start with CONTRIBUTING.md.

    For repository-native development workflow and validation commands, use AGENTS.md as the entrypoint and tools/agent/docs/README.md as the canonical index.

    Citation

    If you find Semantic Router helpful in your research or projects, please consider citing it:

    @misc{semanticrouter2025,
      title={vLLM Semantic Router},
      author={vLLM Semantic Router Team},
      year={2025},
      howpublished={\url{https://github.com/vllm-project/semantic-router}},
    }
    

    Ecosystem & partnerships

    An open ecosystem spanning research, infrastructure, and enterprise adoption.