---
title: "LiteLLM alternatives: libraries, gateways and hosted APIs (2026) | Straitly"
description: "LiteLLM alternatives compared: any-llm, Bifrost, MLflow AI Gateway, Portkey, OpenRouter, Vercel, Cloudflare and Straitly. Licence, hosting and fees."
url: https://straitly.ai/compare/litellm-alternatives
updated: 2026-11-23
publisher: Straitly (https://straitly.ai)
---

# LiteLLM alternatives

Pick by the part of LiteLLM you use. For the Python library, any-llm. For the self-hosted proxy, Bifrost, MLflow AI Gateway or Portkey's gateway. For nothing to host, OpenRouter, Vercel, Cloudflare or Straitly [\[2\]](#src-2) [\[3\]](#src-3) [\[5\]](#src-5) [\[7\]](#src-7).

Updated 23 November 2026

[Compare all eight](#compared) [Try Straitly ](https://straitly.ai/signup)

If you use LiteLLM as a...

Python library

any-llm

Proxy you run

Bifrost, MLflow AI Gateway, Portkey

Nothing to host

OpenRouter, Vercel, Cloudflare, Straitly

## What are the best LiteLLM alternatives?

LiteLLM itself is MIT-licensed, free to self-host and adds no markup [\[1\]](#src-1). The alternatives differ on where they run and how you pay.

### Side by side

All eight Library You host it Hosted

| Alternative                                              | What it is                       | Runs                                         | Licence                | You pay                                      | Own keys                                                         |
| -------------------------------------------------------- | -------------------------------- | -------------------------------------------- | ---------------------- | -------------------------------------------- | ---------------------------------------------------------------- |
| any-llm Mozilla.ai [\[2\]](#src-2)                       | Python library, one interface    | Inside your own code                         | Apache 2.0             | Free. Each provider bills you its own price  | Yes, your keys only                                              |
| Bifrost Maxim AI [\[3\]](#src-3) [\[4\]](#src-4)         | Gateway written in Go            | Your servers: Docker, Kubernetes or a binary | Apache 2.0             | Free open source. Enterprise: custom pricing | Yes, your keys only                                              |
| MLflow AI Gateway MLflow [\[5\]](#src-5) [\[6\]](#src-6) | Gateway built into MLflow        | Your MLflow server                           | Apache 2.0             | Free. Each provider bills you its own price  | Yes, stored in the gateway                                       |
| Portkey gateway Palo Alto Networks [\[7-9\]](#src-7)     | Open-source gateway on Node.js   | Your servers. Hosted version: Prisma AIRS    | MIT                    | Free to self-host. Hosted: no public price   | Yes, your keys only                                              |
| OpenRouter [\[10\]](#src-10) [\[11\]](#src-11)           | Hosted router, one bill          | OpenRouter's cloud                           | Closed, hosted service | Provider's price plus 5.5% on credit buys    | Yes. Free to $25,000 a month, then 5%                            |
| Vercel AI Gateway [\[12\]](#src-12)                      | Hosted gateway, one bill         | Vercel's cloud, called from any app          | Closed, hosted service | Provider's list price, no platform fee       | Yes, paid tier. No token markup; add-ons extra                   |
| Cloudflare AI Gateway [\[13\]](#src-13)                  | Gateway on Cloudflare's network  | Cloudflare's network                         | Closed, hosted service | Core free. 5% on Unified Billing credits     | Yes, in beta                                                     |
| Straitly [\[14\]](#src-14) [\[15\]](#src-15)             | Hosted API, one key and one bill | Straitly's cloud. Nothing to run             | Closed, hosted service | Most models 40% under list price. No fee     | Coming soon. Today, one Straitly key and balance for every model |

For reference, LiteLLM is a Python SDK plus a gateway you run. MIT. Enterprise needs a licence key. Free with no markup; each provider bills you [\[1\]](#src-1). Every cell is from that product's own pages, read on 23 November 2026\. Coming soon means planned, with no date yet.

## Which LiteLLM alternative should you pick?

Start from the job LiteLLM does for you today.

- You call LiteLLM from Python code
### any-llm
Same one-function idea. Your keys and environment variables carry over.
- You run the LiteLLM proxy for teams
### Bifrost or MLflow AI Gateway
Self-hosted, Apache 2.0, with budgets and fallbacks.
- You already run MLflow
### MLflow AI Gateway
The gateway is part of the MLflow server you have.
- You want nothing to host
### OpenRouter, Vercel or Cloudflare
One hosted endpoint and one bill. Fees differ, see the table.
- You want a lower token bill
### Straitly
Hosted, and most models are 40% under list price.

## OpenRouter vs LiteLLM: which one?

LiteLLM is software you run on your own keys. OpenRouter is a hosted service that bills you [\[1\]](#src-1) [\[11\]](#src-11).

One on one: [Straitly vs LiteLLM](https://straitly.ai/compare/litellm). More hosted options: [OpenRouter alternatives](https://straitly.ai/compare/openrouter-alternatives).

| Compared on                                                     | LiteLLM                   | OpenRouter                  | Straitly                   |
| --------------------------------------------------------------- | ------------------------- | --------------------------- | -------------------------- |
| What it is [\[1\]](#src-1) [\[11\]](#src-11) [\[15\]](#src-15)  | Software you run          | Hosted router               | Hosted API                 |
| Who runs the servers [\[1\]](#src-1) [\[11\]](#src-11)          | You                       | OpenRouter                  | Straitly                   |
| Token price [\[1\]](#src-1) [\[11\]](#src-11) [\[14\]](#src-14) | Each provider's own price | Provider's price, no markup | Most models 40% under list |
| Fee on top [\[1\]](#src-1) [\[11\]](#src-11) [\[14\]](#src-14)  | None                      | 5.5% on credit buys         | None                       |
| Your own provider keys [\[1\]](#src-1) [\[11\]](#src-11)        | Always                    | Yes, fee over $25,000       | Coming soon                |

From each product's own pages, read on 23 November 2026.

## How do I move off a LiteLLM proxy?

Your app already speaks the OpenAI format to LiteLLM, so change the base URL and the key [\[15\]](#src-15). Most models are 40% under list price, and zero data retention is the default [\[14\]](#src-14) [\[16\]](#src-16).

[Read the quickstart ](https://straitly.ai/docs/quickstart)

Copy

```
from openai import OpenAI

client = OpenAI(
    base_url="https://api.straitly.ai/v1",  # was localhost:4000
    api_key="YOUR_STRAITLY_API_KEY",
)

reply = client.chat.completions.create(
    model="claude-sonnet-5-5",
    messages=[{"role": "user", "content": "Hello"}],
)
```

## What else do people ask about LiteLLM alternatives?

[Ask a question](https://straitly.ai/contact)

- ### Why do teams look for a LiteLLM alternative?
The proxy is software you run and upgrade yourself.
- ### What is the best open-source LiteLLM alternative?
For the self-hosted proxy: Bifrost (Apache 2.0, Go), MLflow AI Gateway (Apache 2.0, part of MLflow) or Portkey's open-source gateway (MIT). For the Python library: Mozilla.ai's any-llm (Apache 2.0). All four run on your own provider keys.
- ### Is there a hosted version of LiteLLM?
Yes. LiteLLM says its hosted version, "with nothing to operate", is sold through sales. Hosted gateways with public pricing include OpenRouter, Vercel AI Gateway, Cloudflare AI Gateway and Straitly.
- ### Can I keep LiteLLM and add Straitly?
Yes. LiteLLM routes to any OpenAI-compatible API, so Straitly can sit behind it as one more provider: use an openai/ model prefix, api\_base https://api.straitly.ai/v1 and your Straitly key. You keep LiteLLM's keys and budgets and pay Straitly's rate on the models it serves. [\[15\]](#src-15) [\[20\]](#src-20)
- ### Has LiteLLM had security incidents?
LiteLLM published two security incidents in 2026\. 24 March: PyPI 1.82.7 and 1.82.8, live about 40 minutes; "Customers running the official LiteLLM Proxy Docker image were not impacted." 21 October: v1.107.0, live about 2 hours on PyPI; "Enterprise Customers running the private enterprise release of LiteLLM were not impacted." Releases are now signed with keyless cosign. [\[17-19\]](#src-17)

## Sources

Quoted from each product's own site, docs or repository on 23 November 2026\. Spot something out of date? Tell us at [straitly.ai/contact](https://straitly.ai/contact).

1. \[1\] [LiteLLM docs index (llms.txt)](https://docs.litellm.ai/llms.txt) docs.litellm.ai, 23 November 2026
2. \[2\] [mozilla-ai/any-llm on GitHub](https://github.com/mozilla-ai/any-llm) github.com/mozilla-ai, 23 November 2026
3. \[3\] [maximhq/bifrost on GitHub](https://github.com/maximhq/bifrost) github.com/maximhq, 23 November 2026
4. \[4\] [Bifrost pricing](https://www.getmaxim.ai/pricing) getmaxim.ai, 23 November 2026
5. \[5\] [MLflow AI Gateway docs](https://mlflow.org/docs/latest/genai/governance/ai-gateway/) mlflow.org, 23 November 2026
6. \[6\] [mlflow/mlflow on GitHub](https://github.com/mlflow/mlflow) github.com/mlflow, 23 November 2026

**All 20 sources**

1. \[7\] [Portkey-AI/gateway on GitHub](https://github.com/Portkey-AI/gateway) github.com/Portkey-AI, 23 November 2026
2. \[8\] [Portkey home page](https://portkey.ai/) portkey.ai, 23 November 2026
3. \[9\] [Palo Alto Networks: Prisma AIRS AI Gateway is generally available](https://www.paloaltonetworks.com/blog/2026/07/announcing-general-availability-of-prisma-airs-ai-gateway/) paloaltonetworks.com/blog, 23 November 2026
4. \[10\] [OpenRouter pricing](https://openrouter.ai/pricing) openrouter.ai, 23 November 2026
5. \[11\] [OpenRouter FAQ](https://openrouter.ai/docs/faq) openrouter.ai/docs, 23 November 2026
6. \[12\] [Vercel AI Gateway pricing](https://vercel.com/docs/ai-gateway/pricing) vercel.com/docs, 23 November 2026
7. \[13\] [Cloudflare AI Gateway pricing](https://developers.cloudflare.com/ai-gateway/reference/pricing/) developers.cloudflare.com, 23 November 2026
8. \[14\] [Straitly pricing](https://straitly.ai/pricing) straitly.ai/pricing, 23 November 2026
9. \[15\] [Straitly quickstart](https://straitly.ai/docs/quickstart) straitly.ai/docs, 23 November 2026
10. \[16\] [Straitly data retention](https://straitly.ai/docs/data-retention) straitly.ai/docs, 23 November 2026
11. \[17\] [LiteLLM: Security update, March 2026](https://docs.litellm.ai/blog/security-update-march-2026) docs.litellm.ai/blog, 23 November 2026
12. \[18\] [LiteLLM: Release v1.107.0 compromised, October 2026](https://docs.litellm.ai/blog/security-incident-oct-21-2026) docs.litellm.ai/blog, 23 November 2026
13. \[19\] [LiteLLM: The attack chain behind the v1.107.0 release](https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain) docs.litellm.ai/blog, 23 November 2026
14. \[20\] [LiteLLM docs: OpenAI-compatible endpoints](https://docs.litellm.ai/docs/providers/openai%5Fcompatible) docs.litellm.ai/docs, 23 November 2026

**What each source says**

LiteLLM docs index (llms.txt)

"LiteLLM is an open-source (MIT) Python SDK and AI Gateway." "Open source under MIT with no markup on model spend. Enterprise adds SSO, audit logs, admin roles, and support SLAs." "Hosted by LiteLLM, with nothing to operate: talk to sales." The gateway runs on http://localhost:4000\. Read 23 November 2026.

mozilla-ai/any-llm on GitHub

"Communicate with any LLM provider using a single, unified interface." Apache-2.0 license. "Coming from LiteLLM? Your API keys and environment variables carry over unchanged." Read 23 November 2026.

maximhq/bifrost on GitHub

"Open-source, high-performance AI gateway." Apache-2.0 license, written in Go. "One OpenAI-compatible API" with failover, load balancing, semantic caching, virtual keys and budgets. Starts with npx or Docker. Read 23 November 2026.

Bifrost pricing

OSS is "Free Forever", "Self-hosted: Docker | K8s | Go binary". Enterprise is "Custom Pricing" and adds guardrails, cluster mode, SSO, audit logs and role-based access control. Read 23 November 2026.

MLflow AI Gateway docs

"A unified interface for deploying and managing multiple LLM providers within your organization." Stores provider API keys "in one secure location", with traffic splitting, fallbacks, usage tracking, budget limits and guardrails. Read 23 November 2026.

mlflow/mlflow on GitHub

Apache-2.0 license. Read 23 November 2026.

Portkey-AI/gateway on GitHub

MIT license. Runs with "npx @portkey-ai/gateway" (needs Node.js). "Portkey's core enterprise gateway is merging into open-source with our 2.0 release", in pre-release. Read 23 November 2026.

Portkey home page

"Portkey is now PRISMA AIRS AI Gateway, generally available for all enterprises." portkey.ai/pricing now opens a Palo Alto Networks contact form. Read 23 November 2026.

Palo Alto Networks: Prisma AIRS AI Gateway is generally available

"We are bringing AI innovations from the Portkey acquisition to Prisma AIRS just six weeks after closing." Read 23 November 2026.

OpenRouter pricing

Platform fees: Free N/A, Standard 5.5%, Business 8%, Enterprise through sales. Read 23 November 2026.

OpenRouter FAQ

"OpenRouter charges a 5.5% ($0.80 minimum) fee when you purchase credits." "We pass through the pricing of the underlying providers; there is no markup." Bring your own key: "Pay-as-you-go includes $25,000 per month with no BYOK fee"; above that, 5%. Read 23 November 2026.

Vercel AI Gateway pricing

"AI Gateway charges no markup and no platform fee on tokens. You pay the provider's list price on a pay-as-you-go basis." Free tier: "$5/month included". "BYOK is available on the paid tier." "With BYOK, AI Gateway adds no markup to inference." "Every add-on surcharge you have turned on still applies to BYOK requests." Read 23 November 2026.

Cloudflare AI Gateway pricing

"AI Gateway's core features available today are offered for free": analytics, caching and rate limiting. "A 5% fee is applied to all credits purchased through Unified Billing", with provider pricing "passed through with no markup". Storing your own keys (BYOK) is in beta. Read 23 November 2026.

Straitly pricing

"Requests are billed per token at the Straitly rate, 40% under the provider's published list price on most models, paid from prepaid credits." Nothing added on top, no subscription and no minimum. Read 23 November 2026.

Straitly quickstart

One OpenAI-compatible API for 117 models: keep your SDK, change the base URL to https://api.straitly.ai/v1 and the key. The Anthropic Messages format works on the same base URL. Read 23 November 2026.

Straitly data retention

"Zero data retention (ZDR) is the default on every Straitly account." "Requests and responses pass through the gateway in memory and are discarded once the last token is delivered." Kept: "Only the metadata needed for billing and the Activity page". Read 23 November 2026.

LiteLLM: Security update, March 2026

"The compromised PyPI packages were litellm==1.82.7 and litellm==1.82.8", live on 24 March 2026 for about 40 minutes. "Customers running the official LiteLLM Proxy Docker image were not impacted." A clean v1.83.0 followed. Read 23 November 2026.

LiteLLM: Release v1.107.0 compromised, October 2026

v1.107.0 was live on PyPI "for approximately 2 hours (11:39 UTC to 13:23 UTC)" on 21 October 2026, and on Docker until 14:20 UTC. "The official v1.107.0 source tag in GitHub does not contain the malicious files." "Enterprise Customers running the private enterprise release of LiteLLM were not impacted." Releases are now signed with keyless cosign. Read 23 November 2026.

LiteLLM: The attack chain behind the v1.107.0 release

LiteLLM's full account of the October incident, published 23 October 2026: "This post is the canonical source of truth." It replaces earlier status updates that LiteLLM says were "inaccurate or incomplete". Read 23 November 2026.

LiteLLM docs: OpenAI-compatible endpoints

"Put openai/ in front of your model name, so litellm knows you're trying to call an openai /chat/completions endpoint", and set api\_base to the endpoint. Read 23 November 2026.

Read next: [Straitly vs LiteLLM](https://straitly.ai/compare/litellm) , [OpenRouter alternatives compared](https://straitly.ai/compare/openrouter-alternatives) , [What is an AI gateway?](https://straitly.ai/ai-gateway).

## Start with one request.

Prepaid, no subscription, no minimum, no fee. [See pricing](https://straitly.ai/pricing).

[Console](https://straitly.ai/app) [Talk to sales ](https://straitly.ai/contact)

---
Markdown version of https://straitly.ai/compare/litellm-alternatives.
