Portkey vs LiteLLM: Choosing an AI Gateway After Palo Alto

Portkey vs LiteLLM used to be a simple choice between a managed gateway with guardrails and an open-source proxy you run yourself. In 2026, the bigger question is which kind of risk you'd rather manage: an ownership change or a supply-chain record. Portkey is now part of Palo Alto Networks and sold as Prisma AIRS AI Gateway. LiteLLM is still independent and open source, and it shipped malicious releases twice this year.
The short version, as of November 2026:
- Pick Portkey (Prisma AIRS AI Gateway) if you're an enterprise that wants a gateway, guardrails, an MCP gateway and governance from a large security vendor, and you'll buy through sales.
- Pick LiteLLM if you want an MIT-licensed gateway you run in your own infrastructure, with virtual keys, budgets and routing in the open-source core, and you're willing to pin versions and patch on a schedule.
- Treat Portkey's open-source gateway as its own decision. The repo is still MIT and not archived, but on November 20, 2026 its
mainbranch had no commits since May 25, 2026.
Everything below comes from each vendor's own site, docs, GitHub repo or official blog, checked on November 20, 2026.
Quick Comparison
| Portkey | LiteLLM | |
|---|---|---|
| Owner | Palo Alto Networks (acquisition completed May 29, 2026) | BerriAI, independent |
| Product name today | Prisma AIRS AI Gateway | LiteLLM AI Gateway (Proxy Server) and Python SDK |
| Licence | Open-source gateway repo is MIT. Platform is commercial | MIT, except the enterprise/ directory, which has its own licence |
| How you buy it | Contact sales. portkey.ai/pricing redirects to a Palo Alto Networks contact form | Run the open-source version, or buy an Enterprise licence key quoted on usage |
| Where it runs | Portkey's cloud, or a hybrid setup with the gateway in your VPC | Your own infrastructure, from the Docker image or pip package |
| Model coverage (vendor's own figure) | 1,600+ LLMs | 100+ LLM providers |
| Guardrails | Core feature, including PII redaction | Open-source framework, with some integrations licence-only |
| MCP | MCP Gateway | MCP tools through the gateway, plus A2A agents |
| Open-source activity | Repo main quiet since May 2026, latest release v1.15.2 (January 2026) | Several releases a week |
| Main 2026 risk | Ownership change and a quiet open-source repo | Malicious releases in March and October |
Ownership and Product Direction
Portkey is now a Palo Alto Networks product. On May 29, 2026, Palo Alto Networks completed its acquisition of Portkey and described it as the "foundational AI Gateway for Prisma AIRS", its AI security platform. On July 16, 2026, Palo Alto announced general availability of Prisma AIRS AI Gateway, a gateway for LLM, MCP and A2A traffic that brings in technology from the Portkey acquisition. Portkey's homepage now carries the banner "Portkey is now PRISMA AIRS AI Gateway, generally available for all enterprises."
That changes how you buy it. Portkey's pricing URL now redirects to a Palo Alto Networks contact form, so there's no self-serve plan page to point to. Portkey's docs still describe a managed version with plan tiers, but the sales path runs through Palo Alto. If you were picking Portkey as a startup-friendly gateway with a card-on-file plan, check what your account looks like today.
LiteLLM has had no ownership change. It's built by BerriAI, a Y Combinator W23 company, and the LiteLLM repo describes it as an "Open Source AI Gateway for 100+ LLMs. Self-hosted. Enterprise-ready." It ships constantly: the repo published several tagged releases, including dev builds and release candidates, on November 19 and 20, 2026 alone.
Licence and the Open-Source Question
Both projects have an MIT-licensed core. What's happened to each core since is very different.
LiteLLM's licence is MIT for everything outside the litellm/enterprise/ directory, which carries its own licence. LiteLLM's Enterprise docs say "Enterprise is a license key on the same Gateway image you may already run." You don't switch builds to upgrade. You add a key.
Portkey's open-source gateway lives at github.com/Portkey-AI/gateway. What we observed on November 20, 2026:
- MIT licence, not archived
- Last commit on
main: May 25, 2026 - Latest tagged release and latest npm version: v1.15.2, from January 2026
- The README still announces a "Gateway 2.0" pre-release that merges Portkey's enterprise gateway into open source. The
2.0.0branch's last commit was March 14, 2026.
Neither the Palo Alto press release nor the GA announcement mentions the open-source gateway. We aren't calling it abandoned, because no one has said so. But if you plan to self-host Portkey's open-source gateway, you'd be running a release that's ten months old, with no public sign yet of what comes next. Run npx @portkey-ai/gateway today and that's the version you get.
Hosting and Deployment
LiteLLM is self-hosted by design. You run the proxy from the Docker image or the pip package on your own infrastructure. The Enterprise docs describe the same thing: "Self-hosted in your VPC." Your prompts and provider keys never leave your network unless you send logs elsewhere. You also operate it: a database for keys and spend, upgrades, and scaling.
Portkey offers its cloud or a hybrid split. Portkey's hybrid deployment architecture puts the data plane in your VPC: the AI Gateway runs as containers in your infrastructure, with a local cache and a log store. Portkey hosts the control plane, which holds the dashboard, routing configs and "non-sensitive metadata and aggregated metrics." The gateway pulls config changes on a one-minute heartbeat and keeps running on cached configs between syncs. It deploys with Helm on Kubernetes, and the docs reference AWS, Azure and Google Cloud storage. This is a Portkey Enterprise setup, arranged through the solutions team.
| Requirement | Portkey | LiteLLM |
|---|---|---|
| Nothing leaves our network | Hybrid keeps traffic in your VPC, but the control plane is Portkey's | Yes, fully self-hosted |
| We don't want to run a gateway | Managed cloud | Not the default. You run it |
| Kubernetes with Helm | Yes, for hybrid | Yes, or plain Docker |
| Air-gapped | Not described in the docs we read | Possible, since you host everything |
Routing, Keys and Budgets
This is the core gateway job, and both do it.
LiteLLM puts its main controls in the open-source proxy. The proxy docs describe virtual keys for each user, team or project, where "Each key has its models, budgets, and rate limits." Load balancing, fallbacks and retries "move traffic between deployments when a provider has a problem." The README lists /chat/completions, /responses, /embeddings, /images, /audio, /batches, /rerank, /messages and /a2a among supported endpoints. There's also an Auto Router that picks a model for each request.
The Enterprise licence adds the organization layer: SSO and SCIM, role-based access control, multi-tenant organizations and projects, tag-based and model-specific budgets, spend reports and per-team logging controls.
Portkey pitches the same jobs from the top down. Its homepage lists a unified API to 1,600+ LLMs with caching, routing and batching, real-time cost monitoring with budget limits, and AI governance with RBAC, SSO and org-wide audit logs. In the open-source gateway, routing, retries and fallbacks are set through Configs, JSON rules that also attach guardrails.
The difference is packaging. With LiteLLM, keys, budgets and routing are open source and governance costs extra. With Portkey, the full governance layer is the product, and it's sold to enterprises.
Guardrails, MCP and Observability
Guardrails. Portkey built its name here. Its homepage highlights automatic PII redaction before a request reaches the model, and the gateway README describes guardrails on inputs and outputs, plus bring-your-own and partner guardrails. Under Prisma AIRS, the gateway's runtime inspection is powered by Palo Alto's AI Runtime Security. That's the main reason a security team would pick it.
LiteLLM's open-source guardrails framework covers custom guardrails and Presidio PII masking. Its Enterprise docs say some built-in integrations, such as lakera_prompt_injection and hide_secrets, need a licence.
MCP. Portkey runs an MCP Gateway with central auth, access control and observability for MCP servers. LiteLLM gives agents "access to MCP tools through one endpoint" and can also front A2A agents.
Observability. Portkey includes its own dashboard and request logs. LiteLLM's proxy sends logs and metrics "to Langfuse, Datadog, OpenTelemetry, Prometheus, and other tools." If you already run an observability tool, LiteLLM slots into it. If you want one bundled, Portkey ships it. For picking that separate tracing tool, see our LangSmith vs Braintrust comparison.
Supply-Chain Risk vs Vendor Risk
LiteLLM's 2026 security record matters if you're running it yourself, and LiteLLM has documented it in detail.
- March 24, 2026. LiteLLM reported that PyPI releases 1.82.7 and 1.82.8 contained malicious code that harvested and exfiltrated credentials such as environment variables, SSH keys and cloud tokens. LiteLLM said users of the official proxy Docker image "were not impacted". The team said it believes the cause was a compromised scanner in its CI pipeline, then shipped v1.83.0 from a rebuilt pipeline.
- October 21, 2026. Release v1.107.0 was compromised on PyPI, Docker Hub and GHCR. LiteLLM's root cause write-up says the artifacts were live "about two hours". It traces the attack to an internal admin key committed to a public repo in May and never revoked. The incident notice says the package carried malware that exfiltrated credentials and loaded remote-code tools, and tells affected users to pin to an earlier version and rotate everything the host could reach. LiteLLM followed up on October 30 with a list of changes, from single-device release approval to an external verifier for every published artifact.
What to do about it if you choose LiteLLM:
- Pin exact versions and don't auto-upgrade to a release on the day it ships. Both incidents hit people pulling the newest version.
- Build from a pinned image you control, and rebuild rather than reinstall in place.
- Scope the host. A gateway holds every provider key you own, so limit what its machine and IAM role can reach.
The incident history, and how it compares with a hosted API's risk, is covered in more depth in OpenRouter vs LiteLLM.
Portkey's risk is a different shape. Your main exposure is to vendor direction: product naming, plans and the open-source roadmap now follow Palo Alto Networks' priorities. For some teams that's reassuring. For others it's the reason to leave, and our Portkey alternatives and LiteLLM alternatives guides cover where people go.
Portkey vs LiteLLM: Which Should You Pick
Choose Portkey (Prisma AIRS AI Gateway) if:
- You're an enterprise already buying from Palo Alto Networks, or your security team wants AI runtime inspection from a security vendor.
- You want guardrails, an MCP gateway, governance and a dashboard in one managed product.
- A hybrid setup, with the gateway in your VPC and a vendor-hosted control plane, satisfies your data rules.
Choose LiteLLM if:
- You want an MIT-licensed gateway you fully host and control.
- Virtual keys, budgets, rate limits and fallbacks in the open-source core cover what you need.
- You already run Langfuse, Datadog or an OpenTelemetry stack and want the gateway to feed it.
- Your team can own patching, version pinning and host hardening.
Think twice about either if you're a small team that wants a managed gateway with a self-serve plan. Portkey now sells through enterprise sales, and LiteLLM expects you to run it. A managed option may fit better.
Where Taku Fits
Portkey and LiteLLM sit deep in the stack, between your code and the model providers. If you'd rather use AI tools that already work than run your own gateway, that's where Taku comes in. Taku Apps and Sites, built by the best AI minds. Find one, run it, and keep it in your Mac Dock. Taku is in Beta, and the Mac app is available now.
Key Points
- Palo Alto Networks completed its acquisition of Portkey on May 29, 2026. Portkey is now sold as Prisma AIRS AI Gateway, and its pricing page redirects to a Palo Alto contact form.
- Portkey's open-source gateway repo is still MIT and not archived, but
mainhas been quiet since May 25, 2026 and the latest release is v1.15.2 from January 2026. - LiteLLM is independent, MIT outside its
enterprise/directory, self-hosted, and releases several times a week. - LiteLLM puts keys, budgets and routing in open source and sells governance as a licence key. Portkey sells the whole governance layer to enterprises.
- LiteLLM had malicious releases in March (1.82.7, 1.82.8) and October (v1.107.0) 2026. Pin versions and scope the host if you run it.
- The real trade-off: supply-chain risk you manage yourself, or vendor direction you don't control.
FAQ
Is Portkey still open source?
The gateway repo is still MIT-licensed and not archived. When we checked on November 20, 2026, its main branch had no commits since May 25, 2026, and the latest release was v1.15.2 from January 2026. The full platform, now Prisma AIRS AI Gateway, is a commercial product.
Who owns Portkey now?
Palo Alto Networks. It completed the acquisition on May 29, 2026, and made Portkey the core AI gateway of Prisma AIRS.
Is LiteLLM safe to use after the 2026 incidents?
That's your call, but LiteLLM has published detailed write-ups and a list of fixes. If you use it, pin exact versions, avoid installing a release the day it ships, and limit what the gateway host can reach. LiteLLM said its official Docker image was not affected in March. In October, Docker Hub and GHCR images were affected too.
What licence is LiteLLM under?
MIT, except for content in the litellm/enterprise/ directory, which has its own licence. Enterprise features unlock with a licence key on the same image.
Which is better for guardrails, Portkey or LiteLLM?
Portkey, if guardrails are your main reason for a gateway. It treats them as a core feature, and under Prisma AIRS it adds Palo Alto's runtime security. LiteLLM supports custom guardrails and PII masking in open source, with some integrations behind its Enterprise licence.
Can I self-host Portkey?
You can run the open-source gateway yourself. The full platform runs as a hybrid Enterprise deployment, with the gateway in your VPC and the control plane hosted by Portkey.