LIVE · Thursday 3 December

LiteLLM Alternatives 2026: Bifrost vs Portkey vs Kong vs Vercel vs Cloudflare AI Gateway, by Situation

A buyer's guide to replacing LiteLLM after its 2026 PyPI compromises, with licences, prices as listed on November 17, 2026, and what each gateway would cost a team spending $20,000 a month on tokens.

By Thomas9 min read

There is no single best LiteLLM alternative; the right LLM gateway depends on what you need it to fix. With no infrastructure to run, Vercel AI Gateway (no token markup) or Cloudflare AI Gateway (free core, 5% on billed credits) are the simplest. For self-hosting, Bifrost (Apache 2.0, Go) and Portkey's MIT-licensed gateway are the main open-source picks, and Kong AI Gateway or Agent Router fit teams already on Kong or Kubernetes. On a $20,000 monthly token bill, the gateways' own fees range from $0 to about $1,000, so if cost is why you are leaving, the gateway is not where the savings are.

First, decide why you are leaving

Three pressures push teams to reconsider LiteLLM, and each points somewhere different.

Security is the newest. LiteLLM had two malicious PyPI releases this year: 1.82.7 and 1.82.8 on March 24, 2026, and 1.107.0 on October 21, which also poisoned the latest and main-stable Docker tags. Snyk names 1.82.6 and earlier as safe from the March releases, and Datadog Security Labs names 1.106.2 as the latest safe version before the October one. Alongside those incidents, LiteLLM's GitHub advisory list carries 19 advisories published in 2026, five rated critical, including an unauthenticated file read that leaked the master key on the Enterprise proxy (October 27). If security is your reason, note that switching moves your supply-chain exposure to another package rather than removing it; only the managed options take the package out of your environment entirely.

Operations is the second: LiteLLM is free under MIT outside its enterprise/ directory, but you run, patch and scale it. Performance is the third, and the evidence there is thin, as the section on speed below explains.

The options side by side

Option Hosting and licence Pricing, Nov. 17, 2026 Best fit
Bifrost Self-hosted; Apache 2.0, Go Free; paid enterprise tier Self-hosting with low proxy overhead
Portkey gateway Self-hosted or Portkey Cloud; MIT Free code; Portkey Cloud and an Enterprise version also offered Guardrails and routing rules
LLM Gateway Self-hosted or hosted; AGPLv3 core Free core; enterprise features need a licence A LiteLLM-like gateway with a hosted option
Kong AI Gateway Self-managed or Konnect; Apache-2.0 core Konnect Plus from $25/month plus usage Teams already running Kong
Vercel AI Gateway Managed Provider list price, no markup; paid add-ons Apps deployed on Vercel
Cloudflare AI Gateway Managed Core features free; 5% on Unified Billing credits Caching, rate limits and analytics on Cloudflare

Licences and hosting are as stated in each project's GitHub repository; prices are from Kong's, Vercel's and Cloudflare's own pricing pages as of November 17, 2026.

If you want no infrastructure

Vercel AI Gateway is the most straightforward on price. Its pricing page, last updated September 8, 2026, says it charges "no markup and no platform fee on tokens," including when you bring your own provider keys. The costs come from add-ons: team-wide zero data retention and a team-wide provider allowlist each cost $0.10 per 1,000 requests, regional hosting in the EU or US (in beta) adds 5% of inference cost, and turning off fallback to Vercel's keys costs $0.20 per 1,000 bring-your-own-key requests. Payment processing fees are yours. The main drawback is that the gateway is tied to a Vercel team account.

Cloudflare AI Gateway's page, updated November 2, makes dashboard analytics, caching and rate limiting free on every plan. If you buy model credits through its Unified Billing, it adds a 5% fee (a $100 purchase costs $105) and passes provider prices through unchanged. Log storage has changed for new accounts: those whose first gateway was created on or after September 24, 2026 pay under Workers Logs pricing.

OpenRouter is the third managed choice. Its GitHub organisation describes one OpenAI-compatible API to more than 400 models from 90+ providers with automatic fallbacks, paid as you go. Unlike the self-hosted options below, it is a service you call rather than software you run.

If you want to self-host

Bifrost is an Apache 2.0 gateway written in Go. It runs from npx -y @maximhq/bifrost or one Docker command, ships Helm charts and Terraform, and includes virtual keys, budgets, failover and semantic caching. Clustering, adaptive load balancing, guardrails and private deployments are in its paid enterprise tier, so a team expecting a full governance suite for free should check the line before migrating.

Portkey's gateway is MIT-licensed and runs on Node.js, Docker or Cloudflare Workers, with retries, conditional routing, caching and more than 40 guardrails. The drawback is ownership uncertainty rather than code: Palo Alto Networks closed its purchase of Portkey on May 29, 2026 and says Portkey will be "the foundational AI Gateway" for its Prisma AIRS platform. The press release does not mention the open-source gateway or pricing. Get roadmap and price terms in writing before a long contract.

LLM Gateway pairs an AGPLv3 core with a hosted service, so you can start self-hosted and move later, or the reverse. Team and organisation management and full payload retention need its enterprise licence. Teams planning a fork should read the AGPLv3 terms first.

If you already run Kong or Kubernetes

Kong Gateway is Apache-2.0, and Kong's AI Gateway docs list model routing, semantic caching, prompt guards and PII redaction, deployable self-managed with Docker Compose or Kubernetes, or through the Konnect control plane. Konnect's Plus plan prices the AI gateway per control plane ($25 a month serverless, $200 hybrid, $500 dedicated cloud), includes one million requests a month and charges $200 for each further million, and adds $100 a month per unique model. SSO, RBAC and audit logs are Enterprise-only, and Kong's enterprise AI plugins are a paid add-on on Plus. It is heavy if you do not already run Kong.

For Kubernetes teams without Kong, Envoy AI Gateway, renamed Agent Router as an Agentic AI Foundation project, is Apache-2.0. It runs standalone with aigw run or on Kubernetes through Envoy Gateway, and handles credentials, quotas, failover and usage attribution as Kubernetes resources.

If you are staying on LiteLLM

Staying is a reasonable choice if the incidents were your only concern, but first make sure you are not already affected. If you installed 1.107.0 or pulled latest on October 21, Datadog's steps are to delete the payload files cook.pth, cook.py and sitecustomize.py by hand (uninstalling LiteLLM does not remove them), revert to 1.106.2, rotate every credential from a clean machine and audit logs for their use. The researcher who reported the compromise adds: do not run pip in an affected environment first, and rebuild from scratch. For the March releases, Snyk's advice applies: "Do not just upgrade; the payload may have already run."

After that, hardening comes down to five steps:

  1. Pin an exact, known-good version everywhere, including developer laptops and CI runners; never a range or latest.
  2. Pin Docker images by digest rather than tag, as the October reporter advised, and verify them with cosign. LiteLLM replaced its image-signing key after October 21 and moved to Sigstore keyless signing from v1.111.0-dev.3, so cosign verify --key no longer works for newer releases.
  3. Follow the LTS line (1.108.x in mid-November) rather than latest.
  4. Pin your own CI tools and GitHub Actions; the March compromise came through an unpinned security scanner, according to Snyk.
  5. Keep provider keys out of the proxy host's environment where you can; both payloads harvested credentials from the host, and the October one also read the keys the proxy stores in its database.

LiteLLM had not published PyPI build attestations as of the October report, so a wheel's provenance cannot be checked from PyPI alone.

If what you were missing was visibility rather than a new proxy, add an observability layer instead. Helicone (Apache 2.0) and Langfuse (MIT outside its ee folders, part of ClickHouse since January 2026) both log and cost requests, and Langfuse lists LiteLLM as an integration.

What about speed?

Every overhead figure is the vendor's own. LiteLLM's README claims 8 ms P95 at 1,000 requests per second; Bifrost's claims 11 microseconds added at 5,000 requests per second on an AWS t3.xlarge and 59 microseconds on a t3.medium; Portkey's claims under 1 ms. They were measured on different hardware and loads and cannot be compared directly. An independent p50 and p99 benchmark of self-hostable gateways on the same hardware has not been published. Bifrost's team publishes its harness, bifrost-benchmarking, under Apache 2.0; it uses Vegeta against a mock provider and reports "9.5x throughput and 54x lower P99 than LiteLLM," a result the repo page gives without hardware or date. A team for which overhead decides the matter should re-run it on its own instance type.

What it costs: a worked example

Take a team spending $20,000 a month on tokens across three models, at 2 million requests a month. That averages under one request per second (2 million over 30 days), far below the 5,000 requests per second Bifrost's own tests use. Prices are list prices as published on November 17, 2026.

Gateway Assumption Gateway's own cost per month
Vercel AI Gateway Bring your own keys, fallback on, no add-ons $0
Vercel AI Gateway Plus team-wide zero data retention (2,000 × $0.10) $200
Cloudflare AI Gateway $20,000 of credits via Unified Billing (5%) $1,000
Kong Konnect Plus Serverless control plane $25, 1M extra requests $200, 3 models × $100 $525
Self-hosted Bifrost, Portkey or LiteLLM Open-source licence $0 plus your server

The Kong figure excludes enterprise AI plugins, which are priced separately, and the Vercel figures exclude payment processing fees. The self-hosted rows exclude the server, because what instance each gateway needs at this load has not been measured. Vercel's regional hosting would add 5% of inference, about $1,000.

The spread between the cheapest and the dearest option is about 5% of the token bill. Whichever gateway you pick, the other 95% is the models.

When the gateway is not the lever

If cost drove the search, the bigger decision is which model answers each request. Gateways route by rules you set. Parsec, a small language model lab, routes per turn to models post-trained on the customer's traffic; its comparison page claims 60% savings against 15% for typical routers, both Parsec's own figures with no workload or baseline defined. It publishes no price for this service and its pages do not mention VPC hosting for it, so it fits teams willing to run traffic through a shared cloud, not those leaving LiteLLM to keep data in-house. Whatever the route, measure on your own traffic before committing.

Bottom line

For no infrastructure, pick Vercel AI Gateway if you deploy on Vercel and Cloudflare AI Gateway if you are on Cloudflare. To self-host with low overhead, choose Bifrost; for guardrails and routing rules, Portkey's gateway, with Palo Alto's plans in writing. If you run Kong, use Kong AI Gateway; if you run Kubernetes without it, Agent Router. If the PyPI incidents were your only concern, stay on a pinned LiteLLM LTS release with digest-pinned, signature-checked images. And if the bill is the problem, the gateway's fee is the smallest part of it.

Sources

More in Products

All Products →