Open-source LLM gateways and LiteLLM alternatives (2026)
Our pick
Start with LiteLLM if you want one OpenAI-format API in front of many LLM providers. It works as a Python SDK or as a proxy server for a team, with virtual keys, spend tracking, guardrails and load balancing. You install the proxy with uv (uv tool install 'litellm[proxy]') and start it with one litellm command. The table shows each gateway's licence, last commit and latest release, and how the others compare.
Best for
- Start with one command and no Python
Portkey-AI/gatewayRuns with npx @portkey-ai/gateway and needs Node.js. It is MIT licensed and adds retries, fallbacks, load balancing and guardrails.
- A gateway with a built-in web interface
maximhq/bifrostStarts with npx -y @maximhq/bifrost or one docker run, then you set it up in a web UI. It is Apache-2.0 licensed and OpenAI-compatible.
- Usage and cost analytics you host yourself
theopenco/llmgatewayA self-hostable gateway that tracks requests, tokens, response times and cost across providers. It ships as a Docker image.
- You already run an API gateway
Kong/kongAn Apache-2.0 API gateway that also routes LLM and MCP traffic, and runs on Kubernetes through its ingress controller.
- Routing for agents, MCP servers and tools
agentgateway/agentgatewayAn Apache-2.0 proxy for MCP and A2A traffic, with an LLM gateway, guardrails and budget controls.
- A proxy built around agent apps
katanemo/planoAn Apache-2.0 proxy that routes between agents and models, adds guardrail filters and records OpenTelemetry traces. You start it with planoai up config.yaml.
The repos compared
Checked on Nov 28, 2026: the oldest day any repo in the table was last read from GitHub.
| Repo | Stars | Last commit | Latest release | Licence | Needs |
|---|---|---|---|---|---|
| BerriAI / litellm A Python SDK and proxy server that call many LLM providers in the OpenAI format. | 64,283 GitHub (opens in new tab) | Active Dec 2, 2026 | v1.112.0, Dec 1, 2026 | Custom | |
| Portkey-AI / gateway An AI gateway that routes to many models with retries, fallbacks and guardrails. | 13,471 GitHub (opens in new tab) | Inactive May 25, 2026 | v1.15.2, Jan 12, 2026 | MIT | |
| maximhq / bifrost An OpenAI-compatible AI gateway with failover, load balancing and a web UI. | 10,147 GitHub (opens in new tab) | Active Dec 1, 2026 | helm-chart-v2.1.50, Nov 25, 2026 | Apache-2.0 | |
| theopenco / llmgateway A self-hostable API gateway that routes LLM requests and tracks usage and cost. | 1,769 GitHub (opens in new tab) | Active Dec 2, 2026 | v1.27.0, Nov 23, 2026 | Custom | |
| Kong / kong A cloud-native API gateway, extended with plugins, that also routes LLM and MCP traffic. | 44,437 GitHub (opens in new tab) | Active Nov 23, 2026 | 3.9.5, Nov 19, 2026 | Apache-2.0 | |
| agentgateway / agentgateway A proxy for MCP, A2A and LLM traffic with guardrails and budget controls. | 6,577 GitHub (opens in new tab) | Active Dec 1, 2026 | v1.7.0, Oct 27, 2026 | Apache-2.0 | |
| katanemo / plano A proxy and data plane for agent apps, with agent routing, LLM routing and guardrails. | 7,131 GitHub (opens in new tab) | Active Dec 1, 2026 | 0.4.40, Nov 30, 2026 | Apache-2.0 |
Install commands
Copied from each repo. Read its setup steps before you run anything.
Portkey-AI/gateway
# Run the gateway locally (needs Node.js and npm)
npx @portkey-ai/gateway Questions
What is an LLM gateway?
A service that sits between your app and LLM providers and gives you one API for all of them. LiteLLM, Bifrost and LLM Gateway all expose an OpenAI-compatible API, so you can switch provider without rewriting your code.
What are the best open-source LiteLLM alternatives?
Portkey's gateway, Bifrost, LLM Gateway, Kong, agentgateway and Plano are all open-source gateways in the table above. Portkey and Bifrost start with one npx command, and LLM Gateway ships as a Docker image.
Can I self-host an LLM gateway?
Yes. LiteLLM runs as a proxy server you host, Bifrost runs from npx or Docker, and LLM Gateway offers a self-hosted Docker setup next to its hosted version.
Is a gateway the same as a library like LiteLLM's SDK?
No. A library is code you import in one app, while a gateway is a server many apps and teams call. LiteLLM offers both: a Python SDK and a proxy server.
Can an LLM gateway also manage MCP servers?
Some can. Portkey's gateway has an MCP gateway, Kong handles MCP traffic, and agentgateway proxies MCP and A2A. For MCP only, see the guide on MCP gateways and managers.
Which AI gateway is the best?
It depends on what you already run. LiteLLM, the pick on this page, is both a Python SDK and a proxy server that calls many LLM providers in the OpenAI format. Portkey's gateway (MIT) and Bifrost (Apache-2.0) start with one npx command, LLM Gateway tracks usage and cost and can be self-hosted with Docker, and Kong (Apache-2.0) suits teams that already run an API gateway.
