Portkey vs LiteLLM: which AI gateway in 2026?
Portkey is now Palo Alto's Prisma AIRS AI Gateway, with an MIT gateway on GitHub. LiteLLM is the most used open-source gateway. Compared.
Portkey and LiteLLM are both AI gateways with open-source cores. The big difference in 2026 is ownership. Portkey now belongs to Palo Alto Networks and its commercial product is sold as Prisma AIRS AI Gateway, with a security focus. LiteLLM is developed by BerriAI, with the larger open-source community and a paid Enterprise licence for SSO, audit logs and support.
Facts checked between 27 November and 2 December 2026.
At a glance
| Portkey | LiteLLM | |
|---|---|---|
| Owner | Palo Alto Networks (since 29 May 2026) | BerriAI |
| Commercial product | Prisma AIRS AI Gateway | LiteLLM Enterprise licence |
| Open-source gateway | MIT, TypeScript, about 13,500 stars | MIT plus commercial enterprise/ directory, Python, about 64,000 stars |
| Run it | npx @portkey-ai/gateway | Proxy with Postgres, Redis at scale |
| Providers (vendor claims) | 1,600+ models | 100+ providers |
| Guardrails | Core focus; 50+ claimed | Framework and Presidio free; several integrations need Enterprise |
| Keys, budgets, spend tracking | In the platform | In the open-source proxy |
| Pricing | Through Palo Alto Networks | Free open source; Enterprise quote-based |
Ownership and direction
This matters more than any feature row.
Portkey became the AI gateway of Palo Alto's Prisma AIRS security platform. Palo Alto described the gateway as a control plane to monitor, orchestrate and govern AI agents (press release). Expect the commercial roadmap to follow enterprise security buyers. Timeline in Palo Alto Networks acquires Portkey.
LiteLLM is built by BerriAI as an open-source gateway with a paid Enterprise layer. It's moving its request path to Rust, starting with /v1/messages traffic, to cut latency (LiteLLM blog).
Guardrails and security
Portkey was built with guardrails at the centre, and its README claims 50+ guardrails in the open-source gateway. Under Palo Alto, security is the product.
LiteLLM's open-source proxy includes a guardrails framework, custom guardrails and Presidio PII masking. Named integrations such as Lakera and Aporia prompt-injection checks, LlamaGuard and OpenAI moderation need an Enterprise licence (LiteLLM Enterprise).
On supply-chain security, LiteLLM had two malicious PyPI releases in 2026 and has since changed its release process, including keyless image signing. See the LiteLLM supply chain attack, explained.
Teams, keys and budgets
LiteLLM's free proxy includes virtual keys, budgets and rate limits per key, user and team, spend tracking and an admin UI. Enterprise adds SSO beyond 5 users, SCIM, audit logs, team admins and secret managers. Details in LiteLLM Enterprise pricing.
Portkey's governance features are part of its platform, now sold through Palo Alto Networks.
Running it yourself
Portkey's gateway is a TypeScript service you can start with one npx command, with a console at localhost:8787. LiteLLM's proxy is Python and needs Postgres, plus Redis once you run several instances. LiteLLM recommends four workers on a 4 vCPU host.
Which one should you pick?
- Pick Portkey (Prisma AIRS) if guardrails and AI security are the main goal and you buy from Palo Alto Networks.
- Pick Portkey's MIT gateway if you want a lightweight self-hosted router with guardrails and don't need the commercial platform.
- Pick LiteLLM if you want a widely used open-source gateway with keys and budgets in the free version.
A third option for teams with their own GPUs
If your question is how to share your own vLLM or Ollama servers and vendor APIs across many people, AI Gateway by LayerX is built for it. It sends requests to your GPUs first, moves to vendors when needed, and gives each person their own keys, token budgets and allowed models. Prompts are never stored. It has no guardrails or caching and supports OpenAI-compatible providers only, so it's not a fit if security filtering is your priority. Compare in AI Gateway vs LiteLLM, or see all options in Portkey alternatives.
Questions
Is Portkey better than LiteLLM?
For guardrails and AI security inside the Palo Alto ecosystem, Portkey (now Prisma AIRS). For an open-source gateway with keys and budgets in the free version, LiteLLM.
Are Portkey and LiteLLM open source?
Both have MIT-licensed gateways on GitHub. LiteLLM keeps some features in a commercially licensed enterprise/ directory, and Portkey's commercial platform is sold by Palo Alto Networks.
Who owns Portkey now?
Palo Alto Networks, since 29 May 2026.
Can I switch from Portkey to LiteLLM?
Yes. Both expose OpenAI-compatible APIs, so apps usually need a new base URL and key. Routing rules, keys and budgets need to be recreated.