Perimattic
Comparison

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.

Facts from vendor docsHonest both waysChecked October 22, 2026

Last updated October 22, 2026

A wooden sign pointing in two different directions
Overview

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 up
The baseline

What 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.

Laptop showing code on a white desk beside a plant and a mug
Why look elsewhere

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.

A MacBook with lines of code on its screen on a busy desk
Side by side

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.

LiteLLM and 7 alternatives. Checked October 22, 2026.
GatewayHostingLicenceOpenAI-compatible APIRouting and fallbackCachingBudgets and rate limitsPricing model
LiteLLM (baseline)Self-hostedMIT, except the enterprise/ directoryYesLoad balancing, fallbacks, retriesMemory, Redis, S3, disk; semantic on Redis or QdrantBudgets and rate limits per virtual key; tag and model-specific budgets need EnterpriseOpen source; Enterprise licence priced on request
PortkeySelf-hosted open-source gateway, or Portkey CloudMIT (gateway repo)YesFallbacks, retries (up to 5), weighted load balancingSimple and semantic; semantic is in hosted and enterprise versionsGranular budgets and rate limits listed on the Enterprise planDeveloper free (10K logs a month); Production $49 a month; Enterprise custom
Bifrost (Maxim)Self-hosted (npx, Docker); enterprise private deploymentsApache 2.0YesAutomatic fallbacks, load balancingSemantic cachingHierarchical budgets across virtual keys, teams and customers; rate limitingOpen source free; Enterprise custom, 14-day trial
Agent Router (formerly Envoy AI Gateway)Self-hosted: Kubernetes with Envoy Gateway, or standaloneApache 2.0YesRouting and failoverNot statedGlobal rate limiting and quotasOpen source (Agentic AI Foundation project)
Kong AI GatewayKonnect-managed control plane with your data planes, or fully self-hostedKong Gateway is Apache 2.0; AI Proxy Advanced, AI Semantic Cache and AI Rate Limiting Advanced are AI Gateway Enterprise onlyYes: AI Proxy accepts OpenAI-format requests and translates themLoad balancing, retries and failover (AI Proxy Advanced)AI Semantic CacheAI Rate Limiting Advanced, by tokens or costPlus from $25 a month plus usage; Enterprise custom
OpenRouterManaged onlyProprietary serviceYes: works with the OpenAI SDK as a drop-inAutomatic provider fallback; sort by price, throughput or latencyPasses through provider prompt caching; no response cache describedGuardrail budgets per member or key; workspace budgetsProvider list price; 5.5% fee on credit purchases (Standard), 8% (Business)
Vercel AI GatewayManaged only (your app can run anywhere)Proprietary serviceYes: OpenAI Chat Completions and Responses, and Anthropic MessagesProvider ordering, provider and model fallbacksCaching listed in its models and providers settingsBudgets 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 GatewayManaged onlyProprietary serviceYes: 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 cacheRequest rate limitingCore 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.

The options

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.

Overhead view of a team working on laptops around a wooden table
Honest both ways

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.
Monitors showing code behind a pair of glasses on a desk
Decide

Which LiteLLM alternative should you choose? A decision checklist

If this describes you…Look atWhy
LiteLLM works, but you do not want to run PostgreSQL, Redis and upgradesManaged LiteLLM hostingSame software and config, someone else operates it
You want a hosted gateway that also sells model accessOpenRouter or Vercel AI GatewayNo servers, one bill, provider fallback built in
You are on Cloudflare and want caching and rate limits in front of providersCloudflare AI GatewayCore features are free on all plans
You want self-hosted budgets and semantic caching without an enterprise contractLiteLLM or BifrostBoth list these in the open-source build
You run Kong for your other APIsKong AI GatewayOne gateway, but AI routing and caching plugins need AI Gateway Enterprise
You run Envoy on KubernetesAgent RouterApache 2.0 and built on Envoy Gateway
You need SSO for many users and audit logsLiteLLM Enterprise, Bifrost Enterprise, Portkey Enterprise or Kong EnterpriseEach lists these on a paid tier; compare quotes
Prompts must never leave your cloud accountA self-hosted optionHosted gateways sit in the data path

General guidance from vendor pages checked on October 22, 2026. Confirm features and terms with each vendor.

Perimattic LLM Gateway

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.

Colleagues talking at their desks in an open-plan office
FAQs

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.

Talk to our team

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