# vLLM Semantic Router

> A signal-driven router that picks the right model for each request across cloud, data center, and edge

- Category: Evaluation & Production Ops / Gateways & Routing
- Repository: https://github.com/vllm-project/semantic-router
- Website: https://vllm-semantic-router.com/
- Canonical page: https://ai-tldr.dev/tools/vllm-semantic-router/

## In short

vLLM Semantic Router is an intelligent router for a mixture-of-models setup. Instead of sending every prompt to a single model, it inspects each request and forwards it to the model that fits best in terms of capability, cost, and privacy. It sits in the Gateways & Routing category of the Evaluation & Production Ops tools.

## Overview

vLLM Semantic Router is an intelligent router for a mixture-of-models setup. Instead of sending every prompt to a single model, it inspects each request and forwards it to the model that fits best in terms of capability, cost, and privacy. The project describes itself as a signal-driven, system-level router that works across cloud, data center, and edge environments.

It is aimed at teams that run several models at once and need to coordinate them. As the number of available models grows, choosing and connecting the right one for each request becomes a system problem. The router handles that decision so applications can rely on one entry point rather than wiring routing logic by hand.

As an LLM gateway, it sits in front of your models and adds three things the project highlights: token economics (reducing wasted tokens), safety checks (detecting jailbreaks, sensitive data leakage, and hallucinations), and full-mesh coordination between local, private, and frontier models.

## What it does

- Signal-driven routing that sends each request to the most suitable model in a mixture-of-models setup
- Works across cloud, data center, and edge deployments
- Safety checks that detect jailbreaks, sensitive data leakage, and hallucinations
- Token-economics focus to reduce wasted tokens and increase effective output
- Coordinates local, private, and frontier models across cost, privacy, and capability boundaries
- One-line install script plus a hosted playground to try routing before deploying

## Getting started

Install the router with the provided script, then follow the official installation guide for platform-specific setup. You can also try it first in the hosted playground.

1. Install the router

   Run the official install script. See the Installation Guide for platform notes, detailed setup options, and troubleshooting.

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

2. Try the hosted playground

   Before deploying, explore routing behavior in the online playground at play.vllm-semantic-router.com using the default demo credentials (username love@vllm-sr.ai, password vllm-sr).

3. Read the docs for configuration

   The README does not include a code-level quickstart. For configuring models and routing, follow the documentation at vllm-semantic-router.com/docs/installation/.

## When to use it

- Running several models at once and needing one entry point that routes each request to the best-fit model by cost, capability, or privacy
- Reducing token spend by avoiding sending simple requests to expensive frontier models
- Adding safety checks for jailbreaks, sensitive data leakage, and hallucinations in front of production LLMs
- Coordinating local or private models at the edge with frontier models in the cloud
