LiteLLM alternatives: 7 open-source and managed options
What LiteLLM does well, why teams look elsewhere, and how Portkey, Bifrost, Agent Router, Kong, OpenRouter, Vercel and Cloudflare compare, from each vendor’s own docs.
Last updated October 22, 2026
What are the best LiteLLM alternatives?
The main LiteLLM alternatives are Portkey, Bifrost and Agent Router (formerly Envoy AI Gateway) if you want to self-host, Kong AI Gateway if you already run Kong, and OpenRouter, Vercel AI Gateway or Cloudflare AI Gateway if you would rather not run a gateway at all. LiteLLM remains a strong default for self-hosted, open-source routing.
Get started with the LLM Gateway
Sign up and our team will walk you through Perimattic LLM Gateway for your models, providers and budgets.
Sign upWhat is LiteLLM and what does it do well?
LiteLLM, from BerriAI, describes itself on its GitHub README as an “Open Source AI Gateway for 100+ LLMs”. It comes in two forms: a Python SDK you call from your code, and a proxy server (the LiteLLM AI Gateway) that a whole team or company shares.
According to the proxy documentation, the gateway gives you:
- One OpenAI-compatible endpoint for 100+ providers, so existing OpenAI clients work by changing the base URL.
- Virtual keys for each user, team or project, each carrying its allowed models, budget and rate limits.
- Load balancing, fallbacks and retries that move traffic between deployments when a provider has a problem.
- Spend tracking by team and project, and logging to tools such as Langfuse, Datadog, OpenTelemetry and Prometheus.
- Caching in memory, Redis, S3 or disk, plus semantic caches on Redis or Qdrant (caching docs).
Licence. The LICENSE file puts everything under the MIT licence except the enterprise/ directory, which is governed by its own licence file. The enterprise page lists the features that need a paid licence key, including audit logs, role-based access control, tag-based budgets and model-specific budgets per key, and says “SSO is free for up to 5 users” before an enterprise licence is needed. Enterprise pricing is quoted on request.
Why do teams look for LiteLLM alternatives?
These reasons come from LiteLLM’s own documentation, not from complaints:
- You have to run it. The production deployment guide calls for a PostgreSQL database for keys, teams and spend logs, Redis once you run more than one instance, two or more proxy replicas behind a load balancer and a migrations job on every upgrade. Teams that do not want to own that stack look at hosted gateways.
- Some governance features are licensed. If you need SSO for more than 5 users, audit logs or tag-based budgets, you either buy LiteLLM Enterprise or compare it with gateways that include those features elsewhere.
- Your platform is already chosen. Teams that run Kong for APIs, or Envoy on Kubernetes, may prefer an AI gateway built on the same proxy they already operate.
- Different runtime or embedding needs. LiteLLM’s SDK is Python. A team writing services in Go, for example, may prefer a gateway it can also embed as a Go library.
If running LiteLLM is the only problem, you do not have to switch products: Perimattic ManageStacks offers managed LiteLLM hosting on a dedicated instance in AWS, Azure or GCP, with PostgreSQL, Redis and the admin UI pre-configured, and upgrades and backups handled.
How do the LiteLLM alternatives compare?
Each cell below comes from the vendor’s own GitHub repository, documentation or pricing page, linked in the first column and in the notes that follow. “Not stated” means we could not find it on those pages, not that the feature is missing.
| Gateway | Hosting | Licence | OpenAI-compatible API | Routing and fallback | Caching | Budgets and rate limits | Pricing model |
|---|---|---|---|---|---|---|---|
| LiteLLM (baseline) | Self-hosted | MIT, except the enterprise/ directory | Yes | Load balancing, fallbacks, retries | Memory, Redis, S3, disk; semantic on Redis or Qdrant | Budgets and rate limits per virtual key; tag and model-specific budgets need Enterprise | Open source; Enterprise licence priced on request |
| Portkey | Self-hosted open-source gateway, or Portkey Cloud | MIT (gateway repo) | Yes | Fallbacks, retries (up to 5), weighted load balancing | Simple and semantic; semantic is in hosted and enterprise versions | Granular budgets and rate limits listed on the Enterprise plan | Developer free (10K logs a month); Production $49 a month; Enterprise custom |
| Bifrost (Maxim) | Self-hosted (npx, Docker); enterprise private deployments | Apache 2.0 | Yes | Automatic fallbacks, load balancing | Semantic caching | Hierarchical budgets across virtual keys, teams and customers; rate limiting | Open source free; Enterprise custom, 14-day trial |
| Agent Router (formerly Envoy AI Gateway) | Self-hosted: Kubernetes with Envoy Gateway, or standalone | Apache 2.0 | Yes | Routing and failover | Not stated | Global rate limiting and quotas | Open source (Agentic AI Foundation project) |
| Kong AI Gateway | Konnect-managed control plane with your data planes, or fully self-hosted | Kong Gateway is Apache 2.0; AI Proxy Advanced, AI Semantic Cache and AI Rate Limiting Advanced are AI Gateway Enterprise only | Yes: AI Proxy accepts OpenAI-format requests and translates them | Load balancing, retries and failover (AI Proxy Advanced) | AI Semantic Cache | AI Rate Limiting Advanced, by tokens or cost | Plus from $25 a month plus usage; Enterprise custom |
| OpenRouter | Managed only | Proprietary service | Yes: works with the OpenAI SDK as a drop-in | Automatic provider fallback; sort by price, throughput or latency | Passes through provider prompt caching; no response cache described | Guardrail budgets per member or key; workspace budgets | Provider list price; 5.5% fee on credit purchases (Standard), 8% (Business) |
| Vercel AI Gateway | Managed only (your app can run anywhere) | Proprietary service | Yes: OpenAI Chat Completions and Responses, and Anthropic Messages | Provider ordering, provider and model fallbacks | Caching listed in its models and providers settings | Budgets per team, project, API key or member (soft cap) | No markup or platform fee on tokens; payment processing fees may apply; paid add-ons |
| Cloudflare AI Gateway | Managed only | Proprietary service | Yes: a compat chat completions endpoint (Cloudflare now recommends its REST API for single-model calls) | Retries and model fallbacks (dynamic routing) | Serves repeat requests from Cloudflare’s cache | Request rate limiting | Core features free; 5% fee on Unified Billing credits |
Sources beyond the first column: LiteLLM proxy, caching and enterprise docs; Portkey pricing; Bifrost pricing; Kong Kong Gateway repo, AI Proxy Advanced, AI Semantic Cache, AI Rate Limiting Advanced and pricing; OpenRouter provider routing, prompt caching and spend controls; Vercel pricing; Cloudflare OpenAI-compatible endpoint and pricing.
Prices checked October 22, 2026; providers change prices often — confirm on the provider’s page.
Which LiteLLM alternative fits which team?
Portkey: the closest like-for-like swap
Portkey’s gateway is MIT-licensed, OpenAI-compatible and covers fallbacks, retries and weighted load balancing, with guardrails built in. The catch: on its pricing page semantic caching and granular budgets and rate limits sit on the Enterprise plan, so check which features your use needs before assuming the free self-hosted build covers them.
Bifrost: self-hosted, with budgets and semantic caching in the open-source build
Maxim’s Bifrost is Apache 2.0 and its README lists virtual keys, hierarchical budgets, rate limiting and semantic caching. It ships as an HTTP gateway via npx or Docker and as a Go SDK. Its Enterprise plan adds SSO, audit logs, RBAC, cluster mode and adaptive load balancing. Its README also publishes latency figures; they are the vendor’s own benchmarks, so test in your setup.
Agent Router (formerly Envoy AI Gateway): for Kubernetes platform teams
The project’s README says Envoy AI Gateway is now Agent Router, with the same code, maintainers and Apache 2.0 licence. It runs on Kubernetes with Envoy Gateway or standalone, and puts credentials, routing, quotas and failover in one place. It suits teams that already operate Envoy; its README does not describe response caching.
Kong AI Gateway: if Kong already fronts your APIs
Kong Gateway itself is Apache 2.0, but the AI plugins that match LiteLLM’s router, semantic cache and token-based rate limits are marked “only available as part of our AI Gateway Enterprise offering” in Kong’s plugin docs. Plan for a commercial licence if you need them.
OpenRouter, Vercel AI Gateway, Cloudflare AI Gateway: if you do not want to run anything
All three are hosted, and all three let you buy model access through them with credits, so you can start without your own provider accounts. Each says tokens are billed at the provider’s price, with the fees shown in the table. Your prompts then flow through the vendor’s infrastructure, so read each one’s data-handling settings. See the OpenRouter alternatives page for a closer look at hosted options.
When should you stay with LiteLLM?
- It already works. If your proxy is stable, the cost of migrating keys, budgets, routing rules and dashboards is rarely worth a marginal feature.
- You want the widest open-source provider coverage. LiteLLM’s README claims 100+ providers behind one MIT-licensed codebase.
- You need budgets, caching and fallbacks without a licence. Per-key budgets, rate limits, Redis and semantic caching and fallbacks are all in the open-source proxy.
- Your team works in Python. The same project gives you a Python SDK for direct calls and the proxy for shared use.
- The only pain is operations. Managed hosting, such as LiteLLM on ManageStacks, removes the server work without a migration.
Which LiteLLM alternative should you choose? A decision checklist
| If this describes you… | Look at | Why |
|---|---|---|
| LiteLLM works, but you do not want to run PostgreSQL, Redis and upgrades | Managed LiteLLM hosting | Same software and config, someone else operates it |
| You want a hosted gateway that also sells model access | OpenRouter or Vercel AI Gateway | No servers, one bill, provider fallback built in |
| You are on Cloudflare and want caching and rate limits in front of providers | Cloudflare AI Gateway | Core features are free on all plans |
| You want self-hosted budgets and semantic caching without an enterprise contract | LiteLLM or Bifrost | Both list these in the open-source build |
| You run Kong for your other APIs | Kong AI Gateway | One gateway, but AI routing and caching plugins need AI Gateway Enterprise |
| You run Envoy on Kubernetes | Agent Router | Apache 2.0 and built on Envoy Gateway |
| You need SSO for many users and audit logs | LiteLLM Enterprise, Bifrost Enterprise, Portkey Enterprise or Kong Enterprise | Each lists these on a paid tier; compare quotes |
| Prompts must never leave your cloud account | A self-hosted option | Hosted gateways sit in the data path |
General guidance from vendor pages checked on October 22, 2026. Confirm features and terms with each vendor.
Where does Perimattic LLM Gateway fit?
Perimattic LLM Gateway is left out of the comparison above, which covers third-party tools. It is built for teams that want LiteLLM-style control with less to operate. Its features:
- One OpenAI-compatible API in front of OpenAI, Anthropic, Google, Mistral, DeepSeek and open models.
- Routing rules by cost, latency or task, with automatic fallback when a provider errors or rate-limits.
- Exact-match and semantic caching of responses.
- Budgets and rate limits per team, API key or customer.
- Cost tracking and attribution by team, feature and customer, with alerts.
- Request logging with PII redaction.
- Runs in your own cloud (VPC) or managed.
Get started: Sign up and our team will get in touch, or read the LLM gateway overview. If you want LiteLLM running today, managed LiteLLM on ManageStacks is available now.
Keep comparing
LiteLLM alternatives, answered
Is LiteLLM free to use?
The LiteLLM code outside the enterprise directory of its GitHub repository is under the MIT licence, so you can run the SDK and proxy without paying BerriAI. Some features, such as single sign-on for more than 5 users, audit logs and tag-based budgets, need an enterprise licence, priced on request. You still pay for the servers, database and Redis it runs on.
What is the difference between LiteLLM and OpenRouter?
LiteLLM is software you run yourself: it sends requests to providers using your own API keys and accounts. OpenRouter is a hosted service: you buy OpenRouter credits and it forwards requests to providers for you. LiteLLM keeps the data path in your infrastructure; OpenRouter saves you from operating anything. See the OpenRouter alternatives page for that side.
Can I use LiteLLM without running it myself?
Yes. You can pay someone to host it for you. Perimattic ManageStacks offers managed LiteLLM hosting on a dedicated instance in AWS, Azure or GCP, with PostgreSQL, Redis and the admin UI set up. Or choose a hosted gateway such as OpenRouter, Vercel AI Gateway or Cloudflare AI Gateway instead.
Want one API for every model, with costs under control?
Sign up to tell us which models and providers you use, and our team will get in touch to set up the LLM Gateway for your stack.
Sign up