Alternatives

LiteLLM alternatives in 2026: 6 AI gateways compared

Looking for a LiteLLM alternative? We compare Bifrost, Portkey, OpenRouter, Kong, MLflow and AI Gateway on hosting, controls, privacy and who each one fits.

LiteLLM is still the most widely used open-source AI gateway, with 64,000 GitHub stars and adapters for more than 100 providers. If you need the widest provider coverage, it remains hard to beat.

Teams look elsewhere for three reasons: two supply-chain incidents in 2026, the work of running a Python gateway with Postgres and Redis behind it, and features they don't need. Here are six alternatives and who each one fits.

Facts checked on 2 December 2026. Sources are linked throughout.

The short answer

GatewayRuns whereLicenceBest for
BifrostYour serversApache 2.0Teams that want LiteLLM's features with lower overhead
PortkeyYour servers or hostedMIT (open-source gateway)Teams that need guardrails and security tooling
OpenRouterHosted by OpenRouterProprietary serviceTeams that want zero infrastructure
Kong AI GatewayYour serversOpen-source core + enterpriseTeams already running Kong for their APIs
MLflow AI GatewayYour serversOpen source, Linux FoundationTeams already on MLflow for tracing and evaluation
AI Gateway by LayerXYour servers or managed by LayerXCommercial licenceCompanies running their own GPUs alongside vendor APIs

Why teams are looking for a LiteLLM alternative

On 24 March 2026, LiteLLM versions 1.82.7 and 1.82.8 were published to PyPI with a credential stealer inside. The attacker got LiteLLM's publishing token through a compromised Trivy security scanner in its CI pipeline, according to Snyk. PyPI's incident report counted more than 119,000 downloads of the bad versions.

On 21 October 2026 it happened again. Version 1.107.0 was live on PyPI from 11:39 to 13:23 UTC, and Docker tags including latest pointed to the compromised image until 14:20 UTC. LiteLLM's own write-up tells anyone who installed or ran it in that window to assume compromise.

LiteLLM's team responded quickly both times, and any popular open-source package can be targeted this way. But a gateway holds every provider key your company has, so two incidents in seven months made a lot of teams review the choice.

The other reasons are less dramatic:

  • Operations. The proxy needs a Postgres database and, at scale, Redis (LiteLLM docs). Someone has to size, patch and upgrade all of it.
  • Paid features. SSO for the admin UI is free for up to 5 users; beyond that it needs an Enterprise licence (LiteLLM Enterprise).
  • Scope. LiteLLM covers a very large feature set, and you may only need a small part of it.

What to check before you switch

Five questions sort the options quickly:

  1. Where does it run? On your servers, on theirs, or both. This decides where your prompts and keys live.
  2. Who owns it now? Portkey was acquired by Palo Alto Networks in May 2026. Stripe agreed to buy OpenRouter in August and closed the deal on 10 November. Ownership changes roadmaps and pricing.
  3. Does it control people, not just apps? Look for per-user keys, budgets and model access, not only per-key rate limits.
  4. Does it handle your own models? If you run vLLM or Ollama, check health checks and load balancing across your own machines.
  5. What does it store? Check whether prompts and responses are kept, and where.

The six alternatives

1. Bifrost

Bifrost is an open-source gateway from Maxim AI, written in Go and released under Apache 2.0. It covers the core gateway features LiteLLM offers: virtual keys, budgets, rate limits, failover, semantic caching and an MCP gateway (GitHub).

Maxim's own benchmarks report overhead measured in microseconds at 5,000 requests per second. Treat those as vendor numbers until you test your own traffic. Bifrost also ships a migration tool that reads entities from a running LiteLLM proxy.

Best for: teams that like LiteLLM's model but want a lighter runtime and an easy move.
Watch out for: LiteLLM is moving its request path to Rust, starting with /v1/messages traffic (LiteLLM), so the speed gap may narrow. Bifrost's guardrails and clustering are part of its enterprise deployments, not the open-source build. We compare the two in detail in Bifrost vs LiteLLM.

2. Portkey

Portkey's open-source gateway is MIT-licensed and focuses on guardrails alongside routing (GitHub). After the Palo Alto Networks acquisition, Portkey's commercial product is now sold as Prisma AIRS AI Gateway (portkey.ai).

Best for: security-led teams that want guardrails and are comfortable buying from Palo Alto Networks.
Watch out for: the hosted product's roadmap now follows a large security vendor's priorities.

3. OpenRouter

OpenRouter is a hosted API in front of hundreds of models. There is nothing to install. It charges a 5.5% fee on credit purchases (minimum $0.80), and bringing your own provider keys is free up to $25,000 of usage a month, then 5%. Prompts are not logged unless you opt in (OpenRouter FAQ).

Best for: small teams that want access to many models today with zero infrastructure.
Watch out for: every request leaves your network, and OpenRouter is now part of Stripe, so its roadmap follows Stripe's. More in LiteLLM vs OpenRouter.

4. Kong AI Gateway

Kong turns its API gateway into an AI gateway with plugins, starting with AI Proxy, which translates standard OpenAI-format requests to each provider's format (Kong docs).

Best for: companies that already run Kong and want AI traffic under the same rules as their other APIs.
Watch out for: if you don't run Kong today, you are adopting a full API platform to get an AI gateway.

5. MLflow AI Gateway

MLflow's gateway is open source, governed by the Linux Foundation, and comes with MLflow's tracing and evaluation built in (MLflow).

Best for: data science teams already using MLflow.
Watch out for: MLflow itself says LiteLLM is the better choice if you rely on long-tail providers only LiteLLM supports.

6. AI Gateway by LayerX

We built AI Gateway because we had the problem first: five GPU machines, five URLs, no keys and no limits (the story). It runs on your servers, or we host and manage it for you.

It is narrower than LiteLLM on purpose:

  • Your GPUs first. Requests go to your own vLLM or Ollama servers first and move to vendors like OpenAI, Groq or Together when needed. Health checks, concurrency limits and prefix-cache affinity are built for self-hosted machines.
  • People, not just keys. Each person gets their own keys, daily and monthly token budgets, and a list of models they may use. Each key has a requests-per-minute limit.
  • Prompts never stored. Only usage data (date, model, key, tokens, cost) is recorded.
  • Sign-in without passwords. Users sign in with a 6-digit code sent by email and manage their own keys.

Best for: companies running their own GPUs alongside paid APIs, with many people who need access.
Watch out for: it supports OpenAI-compatible providers only (Anthropic and Gemini go through OpenRouter), handles chat, embeddings and model listing rather than every endpoint, has no caching or guardrails, and runs one organisation per install. It is a commercial product with a LayerX licence key.

LiteLLM vs AI Gateway at a glance

LiteLLMAI Gateway
Main jobOne API for many cloud providersYour own GPUs first, vendors as backup
Providers100+, with native adapters (Anthropic, Bedrock, Gemini)OpenAI-compatible only
EndpointsChat, embeddings, images, audio, batches, files, Responses API and moreChat, embeddings, models, SystemOne
RoutingSeveral strategies (random, least busy, latency, cost)Priority tiers + least loaded + fallback
Own GPU supportGenericHealth checks, concurrency limits, prefix-cache affinity
LimitsUSD budgets, TPM/RPM per key, user and teamRPM per key, token quotas per user
Multi-tenancyOrganisations, teams, usersOne organisation
Prompt storageOff by default, opt-inNever stored
Caching and guardrailsYesNo
ObservabilityMany integrations/metrics and logs in the portal
Sign-inAdmin UI; SSO free up to 5 users, then EnterpriseEmail code, self-service portal
LicenceMIT, with a paid Enterprise tierCommercial LayerX licence

Which one should you pick?

  • You need every provider and every endpoint: stay on LiteLLM, pin versions and verify images before you upgrade.
  • You want LiteLLM's model with less overhead: Bifrost.
  • Security and guardrails come first: Portkey.
  • You don't want to run anything: OpenRouter.
  • You already run Kong or MLflow: use the gateway you already have.
  • You run your own GPUs and need to control who uses them: AI Gateway.

Questions

What is the best LiteLLM alternative?

It depends on where you want the gateway to run. Bifrost is the closest open-source replacement, OpenRouter removes infrastructure entirely, and AI Gateway fits companies serving their own GPUs to many users.

Is LiteLLM still safe to use?

LiteLLM fixed both 2026 incidents within hours (full timeline). If you keep it, pin exact versions, check hashes and avoid pulling latest images automatically. Versions 1.82.7, 1.82.8 and 1.107.0 were the compromised releases.

Does LiteLLM store prompts?

Not by default. Storing request and response content is opt-in through the store_prompts_in_spend_logs setting (LiteLLM docs).

Is there a self-hosted alternative to OpenRouter?

Yes. LiteLLM, Bifrost, Portkey's open-source gateway and AI Gateway all run on your own servers and give your apps one OpenAI-compatible endpoint. See self-hosted OpenRouter alternatives.

Can AI Gateway route to Anthropic or Gemini models?

Yes, through OpenRouter. AI Gateway talks to OpenAI-compatible providers, and OpenRouter exposes Anthropic and Gemini models in that format.

More posts

Keep reading.

See how AI Gateway fits your setup.

Tell us what you run today and how many people need access. We'll get back to you to learn more about your setup.

See how AI Gateway fits your setup.

What do you run today?