vllm-router
High-performance Rust-based load balancer for VLLM with multiple routing algorithms and prefill-decode disaggregation support
Decision gist · record as of 2026-08-14
Yes, if you are running vLLM at scale and need intelligent request routing with session affinity or prefill-decode separation. The Apache-2.0 license is permissive, maintenance is active, and there are no known vulnerabilities. Install friction is moderate due to compiled Rust components, but prebuilt wheels are available. Not necessary for single-worker or simple round-robin deployments.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Rust and Cargo installed to build from source; prebuilt wheels available for Python 3.8+ on Linux x86_64 and aarch64.
- Medium install friction due to compiled Rust components (wheels provided for x86_64 and aarch64 Linux).
- Active maintenance with recent releases.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for enterprise deployments.
last release 2026-07-13 (32 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 74,317 downloads/mo, #14,851 on PyPI
Alternatives
Verify before relying
pip install vllm-router
# Launch router with consistent hashing load balancing
vllm-router \
--worker-urls http://worker1:8000 http://worker2:8000 \
--policy consistent_hash \
--intra-node-data-parallel-size 8- Performance characteristics (latency, throughput) compared to alternatives under typical vLLM deployment scales.
- Compatibility with specific vLLM versions and connector types (NCCL, Mooncake, NIXL).
- Operational overhead of Kubernetes service discovery in large clusters.
What it is and what it does
vllm-router is a Rust-based request forwarding system designed to distribute inference workloads across multiple vLLM worker instances in large-scale deployments. It sits between clients and a pool of vLLM servers, accepting requests and routing them according to configurable load-balancing policies—round-robin, random, consistent hashing, power-of-two, or cache-aware selection. The router is particularly useful when you need session affinity (routing the same user to the same worker to reuse KV cache) or when you want to optimize for cache hits on repeated prompts.
Beyond basic routing, vllm-router handles prefill-decode disaggregation, where inference is split into two phases: prefill (processing the prompt) and decode (generating tokens). It can route these phases to separate worker pools, allowing independent scaling of each. It includes enterprise-grade features like circuit breakers (to protect workers from cascading failures), automatic retries with exponential backoff, Kubernetes-native worker discovery, bearer-token authentication, and Prometheus metrics collection. The package ships as a compiled binary (built from Rust) with a Python CLI wrapper, so installation requires prebuilt wheels or a Rust toolchain.
Use it for
- Multi-turn chat applications where you want to route the same user to the same worker to preserve KV cache across turns.
- Deployments with repeated prompts or few-shot examples where cache-aware routing maximizes prefix cache reuse.
- Large-scale vLLM clusters running on Kubernetes where automatic worker discovery and health monitoring reduce operational overhead.
- Prefill-decode disaggregated inference where you scale prefill and decode workers independently based on workload demand.
- Production systems requiring circuit breakers and retry logic to gracefully handle worker failures and transient errors.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are running vLLM at scale and need intelligent request routing with session affinity or prefill-decode separation.
The Apache-2.0 license is permissive, maintenance is active, and there are no known vulnerabilities. Install friction is moderate due to compiled Rust components, but prebuilt wheels are available. Not necessary for single-worker or simple round-robin deployments.
Install
vllm-router on PyPI
Before you install
Medium install friction due to compiled Rust components (wheels provided for x86_64 and aarch64 Linux). Active maintenance with recent releases. Six runtime dependencies (fastapi, uvicorn, aiohttp, requests, orjson, setproctitle) are all stable, widely-used libraries.
Requires Rust and Cargo installed to build from source; prebuilt wheels available for Python 3.8+ on Linux x86_64 and aarch64.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for enterprise deployments.
Quickstart
pip install vllm-router
# Launch router with consistent hashing load balancing
vllm-router \
--worker-urls http://worker1:8000 http://worker2:8000 \
--policy consistent_hash \
--intra-node-data-parallel-size 8
Verify before relying
- Performance characteristics (latency, throughput) compared to alternatives under typical vLLM deployment scales.
- Compatibility with specific vLLM versions and connector types (NCCL, Mooncake, NIXL).
- Operational overhead of Kubernetes service discovery in large clusters.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | 6 packagessetproctitleaiohttporjsonuvicornfastapirequests |
| Maintenance | Actively maintained 32 days since the last release |
| First released | |
| Downloads | 74,317 / month, #14,851 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Rust |
Evidence: vllm_router-0.1.15-cp38-abi3-manylinux_2_28_aarch64.whl; vllm_router-0.1.15-cp38-abi3-manylinux_2_28_x86_64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “vllm load balancer”
- vllm-routerRoutes and load-balances requests across vLLM worker instances with…
- aws-cdk.aws-elasticloadbalancingv2Provides AWS CDK constructs for defining and configuring Application…
- aws-cdk.aws-elasticloadbalancingProvides AWS CDK constructs for configuring and managing classic…
Give your agent the search over MCP, or paste the wish link into any chat.
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework that enables you to define and call remote procedures across network boundaries using protocol buffers for serialization.
Install it if you need RPC communication in a distributed system or are integrating with existing gRPC services.
execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.
However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…
Cloudpickle extends Python's standard pickle module to serialize lambda functions, interactively-defined functions and classes, and other constructs that the default pickle cannot handle, making it suitable for cluster computing and remote code execution.
Install it if you need to serialize lambda functions, interactively-defined code, or non-standard Python constructs for cluster computing or distributed execution.
Provides a unified, open()-compatible Python API for streaming large files from remote storage (S3, GCS, Azure, HDFS, SFTP, HTTP) and local filesystems, with transparent compression support.
Install it if you work with large files on cloud storage or remote systems and want to avoid writing boilerplate around multiple SDKs.
Portalocker provides cross-platform file locking with support for exclusive and shared locks, plus Redis-based distributed locks and process-aware PID file locking.
Install it if you need file or process coordination; the optional extras (pywin32, redis) are only required for specific lock types.
Ray is a distributed computing framework that scales Python applications from a single machine to multi-node clusters, providing abstractions for parallel tasks, stateful actors, and shared objects.
See also sglang-router · vllm-sr · vllm · mooncake-transfer-engine · mooncake-transfer-engine-cuda13 · vllm-tpu · roundrobin · lmcache · smg-grpc-servicer · semantic-router