⇄
LiteLLM and Portkey Gateway are the two most widely used general-purpose LLM gateways in the 2026 OSS landscape. Both route traffic across mainstream LLM providers via an OpenAI-compatible API, issue virtual keys with budget and rate limits, capture cost data, and expose MCP-aware endpoints for agent traffic. They differ in runtime stack, operational model, and the scope of features gated behind each project's commercial tier.
LiteLLM is a Python SDK and proxy from BerriAI built on FastAPI and Postgres. Portkey is a Node.js and Go gateway from Portkey AI that can run stateless or Postgres-backed. The two projects also take different approaches to their commercial tiers: LiteLLM Enterprise covers SSO, JWT-to-virtual-key mapping, and audit log retention; Portkey Cloud is primarily a hosted offering with the gateway itself available as an MIT open-source codebase.
| Capability | LiteLLM | Portkey Gateway |
|---|---|---|
| Runtime | Python | Node.js / Go |
| Provider integrations | 100+ native | 1,600+ endpoint variants |
| Virtual keys with hard budgets | OSS | OSS |
| Admin UI SSO | Enterprise | OSS |
| JWT-to-vkey mapping | Enterprise | OSS |
| Audit log retention | Enterprise | OSS |
| MCP gateway | OSS (v1.78+) | OSS (Gateway 2.0) |
| Guardrails framework | Basic in OSS | 50+ built-in in OSS |
| Database | Postgres required | Postgres optional |
| Admin UI | Included | Included |
LiteLLM has the wider native provider catalog and a Python ecosystem that integrates cleanly with Python-first ML codebases. Portkey has a richer guardrails framework in OSS and a lighter state requirement for stateless deployments. Teams standardized on Python operational patterns, or that plan to use LiteLLM Enterprise for SSO, tend toward LiteLLM; teams on Node.js infrastructure, or that need OSS SSO without paying for an enterprise tier, tend toward Portkey.
Most teams standardize on one gateway. Running both complicates cost accounting since each tool tracks spend independently, and virtual keys do not portably cross between them.