vLLM Semantic Router
A self-hosted LLM router directs requests to local or cloud models using privacy rules, task complexity, and quality, latency, and cost priorities.

vLLM Semantic Router chooses which model handles each request for apps, agents, and coding tools that use multiple LLMs. It's for teams that want shared routing policies across their own hardware and external providers.
- Model selection: Route requests by domain, complexity, language, context, or keywords, with priorities for quality, latency, and cost.
- Privacy rules: Apply privacy, locality, and access restrictions before choosing a model, so internal knowledge can stay with on-prem models while eligible requests go to cloud providers.
- Safety and request handling: Check for jailbreaks and personal information, and apply plugins for prompts, memory, caching, and safety.
The router works with vLLM, SGLang, and other OpenAI-compatible backends, and accepts requests from OpenAI and Anthropic SDKs. Your agent framework retains control of its tools, task state, and agent loop.
The project is open source under Apache 2.0 and supports Docker and Kubernetes deployments. Routing uses configured inference backends across local, private, edge, and cloud systems. Requests routed to external providers leave your infrastructure; keeping requests on your own hardware depends on your backend choices and routing policies.