← All posts

LiteLLM or Envoy? Choosing an LLM gateway for Azure, OpenRouter, Vertex AI and Bedrock

You call models from several Azure accounts, OpenRouter, Google Cloud Vertex AI and AWS Bedrock, and you want one endpoint in front of all of them. Here is what the two main open-source gateways do, how they differ, and which one fits.

September 2026

Short answer: if you deploy with Docker Compose or on a single VM, use LiteLLM. Run its signed Docker image, pinned by digest, on an internal network. If you already run Kubernetes and need high throughput, look at Agent Router, the Envoy-based gateway formerly called Envoy AI Gateway.

First, the names

So "Envoy" in this comparison means Agent Router, not plain Envoy Gateway.

Provider coverage

ProviderLiteLLMAgent Router
Azure (several accounts)Built in. List the same model name once per account, each with its own endpoint and key. The router load-balances across them and fails over between them.Built in, with an API key or Azure credentials. One backend per account, with weights or a priority order.
OpenRouterBuilt in.Not in the provider list. It should work as a generic OpenAI-compatible backend, but that path is not documented.
Vertex AIBuilt in, with service account credentials.Gemini, and Claude on Vertex. Supports default credentials, service account keys and workload identity federation.
BedrockBuilt in, with IAM credentials and load balancing across regions.Built in, translating OpenAI-style requests to Bedrock.

How they differ

LiteLLMAgent Router
Runs asOne container, plus PostgreSQL for keys and spend, plus Redis.Kubernetes, installed with Helm on top of Envoy Gateway. The standalone aigw run mode is documented for local testing and development.
Client authIssues its own API keys, with teams, per-key and per-team budgets, and an admin UI.Envoy Gateway security policies: API key, basic auth, JWT, OIDC or an external authorization service.
LimitsRequest and token rate limits, plus dollar budgets, per key, team and model.Token-based rate limits and total token quotas, both stored in Redis. A streamed response is counted when it finishes, so one long stream can go over the limit.
FallbackRetries, fallbacks, and taking a deployment out of rotation while it returns 429 errors.Backends in priority order, with retry policies.
PerformancePython service; adds more latency at high request rates.Envoy proxy with Go components; fast and efficient.
ConfigurationA YAML file or the admin UI.Kubernetes custom resources, which suits GitOps.

LiteLLM does more than route LLM calls

LiteLLM also routes three other kinds of traffic. All of them share the same keys, teams, logging and spend tracking as your model calls.

MCP gateway

Agent gateway (A2A protocol)

Pass-through API routing

Connecting your application

Security: the March 2026 LiteLLM incident

On March 24, 2026, attackers used stolen publishing credentials to push malicious litellm versions 1.82.7 and 1.82.8 to PyPI. They were live for about 40 minutes. The payload stole credentials, tried to spread across Kubernetes clusters, and installed a persistent backdoor. LiteLLM says its official Docker image was not affected, because the image pins its dependencies. Since v1.83.0, releases go through a rebuilt CI/CD pipeline and Docker images are signed with cosign.

If you adopt LiteLLM:

How to choose

What this is based on

This comparison comes from each project's documentation and security write-ups, read in September 2026. Neither gateway was load-tested here, and OpenRouter behind Agent Router was not tried.