LIVE · Thursday 3 December

Portkey vs LiteLLM (November 2026): Licenses, Pricing, Self-Hosting Costs and What Changed This Year

Both AI gateways are MIT-licensed at the core, but in 2026 Portkey became a Palo Alto Networks product and LiteLLM shipped two poisoned releases. What each costs to run, what's open source, and how to choose.

By Surya12 min read

Portkey vs LiteLLM, as of November 17, 2026: LiteLLM is the open-source AI gateway to pick if you want to self-host it and keep developing on the open code. Its proxy is MIT-licensed outside a commercial enterprise/ folder, it's free to run, and SSO is free for up to 5 users. Portkey is now Palo Alto Networks' "Prisma AIRS AI Gateway". Its MIT open-source gateway has had no release since January, so its value now sits in the paid, managed and hybrid enterprise product. On AWS list prices, a highly available self-hosted LiteLLM stack costs about $300 a month at 1 million or 10 million requests, and about $1,200 at 100 million on LiteLLM's own recommended instance sizes. Neither vendor publishes an enterprise price.

Two gateways that do the same job

An AI gateway sits between your application and the model providers. Your code calls one OpenAI-style endpoint. The gateway translates the call for whichever provider you choose, retries or falls back when a provider fails, enforces keys, budgets and rate limits, and records what each request cost. Both projects do all of this. The differences lie in what is free, who runs the parts that hold your data, and who is behind each project in 2026.

LiteLLM's README describes it as an "Open Source AI Gateway for 100+ LLMs. Self-hosted. Enterprise-ready." You can use it in two ways: as a Python SDK inside your app, or as a proxy server for a whole team. The free gateway ships with "virtual keys, spend tracking, guardrails, load balancing, and an admin dashboard out of the box." The repository now describes its core as Rust with a Python SDK.

Portkey's open-source gateway is a small Node.js service. It starts with npx @portkey-ai/gateway, and its README claims "<1ms latency" and a 122 KB footprint. Routing, retries, fallbacks, load balancing, simple caching and guardrails run in the open gateway. The README marks semantic caching, prompt management, logging and observability as available only in the hosted and enterprise versions. That split matters more than any feature list. With Portkey, much of what people mean by "Portkey" is the hosted control plane, not the code on GitHub.

What the licenses actually say

The model and license claims that circulate about these two projects disagree. The LICENSE files settle the license question.

LiteLLM Portkey
License MIT, except litellm/enterprise/ (commercial) MIT (whole gateway repo)
GitHub stars, Nov 17, 2026 63,450 13,399
Provider and model claims "100+ LLM providers"; 117 rows in its README provider table "1,600+ LLMs" in the repo description; "250+ LLMs" and "45+ providers" in the README
Free tier Self-hosted gateway; SSO free for up to 5 users Self-hosted open gateway; managed free plan with 10k requests a month
Paid tiers Enterprise, quote only Production (100k logs a month); Enterprise, quote only
Latest open-source release v1.110.0, Nov 18, 2026 UTC v1.15.2, Jan 12, 2026

LiteLLM's root LICENSE says everything outside the litellm/enterprise/ directory is MIT. Code inside that directory falls under a separate BerriAI Enterprise licence. Under it, the code "may only be used in production" with a subscription "for the correct number of user seats". You may still copy and modify it for development and testing. Because of this split, GitHub's licence detector shows "NOASSERTION" for the repo rather than MIT. Portkey's gateway repository is plain MIT, "Copyright (c) 2024 Portkey, Inc", and GitHub detects it as such. The Apache 2.0 label sometimes attached to Portkey does not match its LICENSE file.

The model counts differ because each figure counts something different. Portkey's own repository gives 1,600+, 250+ and 200+ in different places. Palo Alto Networks' acquisition announcement said "over 3,000 LLMs and MCP tools". Both gateways cover the major providers and can call any OpenAI-compatible server, so model count rarely decides the choice.

Portkey belongs to Palo Alto Networks now

Palo Alto Networks announced on April 30, 2026 that it would acquire Portkey, describing it as "already processing trillions of tokens per month". On May 29 it said it "has closed the acquisition of Portkey", and it named Portkey "the core AI Gateway for Prisma AIRS", its AI security platform. Neither release gives a price. Neither mentions the open-source gateway or self-serve pricing. The April release promised that Palo Alto Networks "will continue to support existing and new Portkey customers".

Portkey's documentation shows where things went next. Its pages now say "Portkey is now PRISMA AIRS AI Gateway" and send sales enquiries to Palo Alto Networks. The hybrid architecture page, updated October 1, describes a management plane that runs "behind Palo Alto Networks Strata Cloud Manager". The closed enterprise gateway ships often: its changelog lists v2.33.1 on November 6.

The public repository has gone quiet. The last commit to its main branch was on May 25, four days before the deal closed, and the latest release is still v1.15.2 from January 12. The README still advertises "Gateway 2.0 (Pre-Release)" with the line "Portkey's core enterprise gateway is merging into open-source with our 2.0 release". The 2.0.0 branch it points to was last committed on March 14. Nothing published by Portkey or Palo Alto Networks says whether that merge will still happen. Treat Gateway 2.0 as unreleased, and treat the open-source gateway as maintained only if new commits appear.

One more change affects regulated buyers. Portkey's documentation now says "Air-gapped deployment is no longer offered" for new customers. The enterprise options are a dedicated SaaS cluster or a hybrid setup. In the hybrid setup the gateway, cache and log store run in your network, while the dashboard, configuration and analytics run in the vendor's management plane.

LiteLLM's 2026 security record, and how to pin it

LiteLLM's openness has cost it twice this year. On March 24, attackers published litellm 1.82.7 and 1.82.8 to PyPI with a credential stealer. LiteLLM's incident post says they were live "for about 40 minutes before being quarantined by PyPI". A maintainer traced the cause to an unpinned Trivy scanner in CI, which leaked the PyPI publishing token. Users of the official proxy Docker image were not affected, and a clean v1.83.0 shipped on March 30.

The second compromise was worse. On October 21, LiteLLM's own release pipeline built, signed and published a malicious 1.107.0. LiteLLM's incident post lists all seven PyPI wheels, live from 11:39 to 13:23 UTC. It also lists the Docker tags v1.107.0, latest, main-latest and main-stable, which pointed at the bad image from 11:46 to 14:20 UTC. The attack-chain post, published October 23, traces the breach to an admin key committed to a public repository in May and never revoked. The attacker used that key to take a GitHub organization owner's token, then released from a lookalike fork. A community analysis of the payload found that, when a database URL was set, it dumped the proxy's stored provider credentials. Customers on LiteLLM's private enterprise registry were not affected.

The fix list on GitHub also matters. LiteLLM published 19 security advisories in 2026, five of them rated critical. They include an unauthenticated file read that leaks the master key on Enterprise proxies, fixed in 1.106.5 and the matching patches on other lines. The emergency advice in October was to pin 1.106.2, but that version predates the fix. A safer rule today:

  1. Never deploy latest or main-stable. Pin an exact version and pull the image by digest.
  2. Use the LTS line LiteLLM started piloting in November (1.108; 1.108.11 shipped on November 17), or a current release, and check it against the advisory list.
  3. Verify the image signature, but do not rely on it alone. LiteLLM replaced its image-signing key on October 23 because the old one was likely exposed, and releases from v1.111.0-dev.3 on are signed with keyless cosign.
  4. If any environment ever ran 1.82.7, 1.82.8 or 1.107.0, treat it as compromised. For 1.107.0, LiteLLM's incident post says to delete cook.pth, cook.py and sitecustomize.py, reinstall a pinned version, and rotate every provider key stored in the proxy's database, plus the master and virtual keys and the database password.

Portkey's repository has one published advisory, an SSRF fixed in 1.14.0. A shorter list is not proof of safer code. It does mean the burden differs. With self-hosted LiteLLM, keeping up with patches is your job. With Portkey's managed or hybrid product, that work sits with a vendor whose priorities are now set by Palo Alto Networks.

Governance: what is free and what is paid

Most of the enterprise controls teams ask for are paid on both sides.

LiteLLM's free gateway already includes virtual keys, spend tracking, budgets and rate limits, and guardrails, including custom guardrails and Presidio PII masking. Its Enterprise licence adds SSO beyond five users, SCIM, audit logs with retention policies, role-based access control across organizations and teams, JWT auth, IP allowlists, secret-manager integrations, tag and per-model budgets, and a set of named moderation guardrails. LiteLLM says it is "SOC 2 Type II audited". Its documentation does not mention ISO 27001 or HIPAA. Because the gateway is self-hosted, you can run it in a VPC or with no internet access at all, and its docs say no data or telemetry reaches LiteLLM's servers.

Portkey's documentation lists audit logs, access control management and SSO (OIDC and SAML 2.0) as Enterprise features. Budget and rate limits on keys are "Available on Enterprise plan and select Pro customers." Guardrails are on all plans, with the full catalogue and custom guardrails reserved for Enterprise. Portkey's documentation calls the company "ISO:27001 and SOC 2 certified, and GDPR & HIPAA compliant". That is the stronger certification list if your buyers need a vendor's audit reports. Data residency comes from the hybrid deployment, and fully air-gapped deployment is closed to new customers.

What self-hosting costs

LiteLLM publishes its own sizing guidance. Its production guide says to start each worker at 1 vCPU and 4 GiB, to run Redis as soon as you have more than one instance, and to use Postgres for keys and spend logs. Its sizing pages recommend db.m7g.xlarge and cache.m7g.xlarge with a replica for "up to 1K" requests per second. The worksheet below prices that design on AWS us-east-1 on-demand list prices, at 730 hours a month.

Assumptions: two Fargate tasks of 1 vCPU and 4 GB each for HA at 1M and 10M requests, and four at 100M. Small instances (db.t4g.medium Multi-AZ, two cache.t4g.medium nodes) below 100M. LiteLLM's recommended sizes at 100M. Spend logs at 2 KB per request, kept 30 days, on gp3. One Application Load Balancer, at one capacity unit (LCU) per hour, two at 100M. A month of 100 million requests averages about 39 per second, so even a tenfold peak stays well under LiteLLM's 1K tier.

Monthly item 1M requests 10M requests 100M requests
Gateway compute (Fargate) $85 $85 $170
Postgres (RDS Multi-AZ) $94 $94 $492
Log storage (gp3) $0.46 $4.60 $46
Redis (primary + replica) $95 $95 $460
Load balancer $22 $22 $28
Total $297 $301 $1,196

The total barely moves with volume, because a highly available stack costs the same whether it is busy or idle. The jump at 100M comes from adopting LiteLLM's recommended instance sizes. Keeping the small database and cache at that volume would cost about $433, and whether they would keep up has not been measured. Storing prompts in the spend logs multiplies storage by about ten, according to LiteLLM's sizing page. Indexes, backups and observability tooling are extra.

Engineer time is the cost that list prices hide. Neither project publishes an estimate. Count the hours for upgrades, patching against the advisory list and on-call. At an illustrative 10 hours a month at $100 an hour, you would add $1,000, more than the infrastructure at every volume above.

Portkey's open gateway is cheaper to run but does less. Two 1 vCPU, 2 GB tasks behind a load balancer come to about $94 a month on the same prices. You get no database, and no persistent logs or dashboards unless you build them. Portkey's own cost page for a hybrid enterprise deployment estimates "~$310/mo" of AWS infrastructure at 100M requests a month with 10 KB logs kept for three months. It adds that a "Portkey Enterprise License" is required, with no published price. Its enterprise pricing guide says the licence is built from the deployment pattern, the number of production gateways, request volume and support level.

On published prices, the managed Developer plan holds 10k logs a month with three-day retention. Production holds 100k logs a month with 30-day retention, plus $9 per additional 100k logs. Portkey's documentation does not state the Production plan's base fee. The overage alone adds up: if every request is logged, 1 million requests a month means 9 extra blocks, or $81, and 10 million means 99 blocks, or $891, before the base fee. At those volumes most buyers will be negotiating an Enterprise quote instead. LiteLLM sells Enterprise by quote, "based on usage", with a 30-day trial.

What a gateway won't save you

Both gateways route traffic between models you rent. Routing can cut a bill, but how much depends on the baseline. LiteLLM published one customer's numbers: 51% saved over 272,876 requests, measured against sending every request to the flagship model. Parsec, a small language model lab, puts "typical router savings" at 15% on its comparison page. It does not define the baseline.

Larger cuts come from changing the model behind the gateway: a smaller model specialised on your own traffic, served from an endpoint either gateway can call. LiteLLM supports any OpenAI-compatible endpoint. Portkey routes to private models through custom_host. Parsec sells that route as a service. It claims "60%" savings on real workloads with no workload or baseline given, says customers own and can download their models, and publishes no price. Nobody has published an independent measurement of these figures.

Bottom line

Pick LiteLLM if you want a gateway you control end to end: free, self-hosted inside your own network, under an actively developed MIT licence, at roughly $300 a month of infrastructure plus your team's time. Take that on only if you will pin versions by digest and patch against its advisories. Pick Portkey if you want a vendor to run it: managed SaaS or a hybrid deployment, ISO 27001 and HIPAA paperwork, and integration with Palo Alto Networks' security stack. Get the roadmap and pricing in writing, because the acquisition has settled who owns Portkey but not what happens to its open-source gateway or self-serve plans. If you want an open-source Portkey you can build on, wait until Gateway 2.0 ships.

Sources

More in Products

All Products →