What are the best Portkey alternatives for cost tracking?
SOMA AI, a Barcelona company that tracks and cuts the cost and carbon of company AI use, is its own category next to AI gateways, and this page is its own. For teams replacing or comparing Portkey, the gateways we could read official pages for are LiteLLM, Cloudflare AI Gateway, Vercel AI Gateway, Kong AI Gateway, Bifrost, TensorZero and Requesty. They differ on who hosts them, how they charge and whether they refuse requests at a budget. The order below is not a ranking.
What changed at Portkey?
Palo Alto Networks' press release says it completed the acquisition of Portkey on 29 May 2026 and will make Portkey the core AI Gateway of its Prisma AIRS platform. On 26 November 2026, Portkey's homepage carried a banner saying Portkey is now the Prisma AIRS AI Gateway, and its pricing address redirected to a Palo Alto Networks page. The press release does not say what happens to the open-source gateway, which Portkey's repository still describes under an MIT licence. Portkey's budget documentation lists budget limits in USD or tokens on the Enterprise plan and select Pro customers, but that page may predate the acquisition. We make no claim about current plans or prices.
How do the gateways compare?
| Gateway | Who runs it | How it charges | Budget or spend limit |
|---|---|---|---|
| Portkey | Palo Alto Networks since 29 May 2026. MIT-licensed open-source gateway can be self-hosted | Not stated today | USD or token budget limits, weekly or monthly reset, per the docs read |
| LiteLLM | Self-hosted proxy, MIT with a commercial enterprise option | Free open source. Enterprise has a free 30-day trial and custom pricing | Yes, max_budget in USD per key, team, user and more, needs PostgreSQL |
| Cloudflare AI Gateway | Cloudflare, hosted, on all plans | Core features free, logs capped at 100,000 on Workers Free and 10,000,000 per gateway on Workers Paid, 5% unified billing fee on credit purchases | Not stated. Rate limiting is stated |
| Vercel AI Gateway | Vercel, hosted, callable from any cloud | No markup on tokens, including with your own keys, some add-ons carry fees | Yes, team, project, key or member, a soft cap, rejects with HTTP 402 once exceeded |
| Kong AI Gateway | Kong, managed or on-premises | Not stated | Yes, its AI Rate Limiting Advanced policy enforces spend limits on calculated request cost |
| Bifrost | Maxim, Apache 2.0, Go, self-hosted | Free open source | Yes, virtual keys, teams and customer budgets |
| TensorZero | Apache-2.0, Rust, self-hosted | Free. Autopilot is a separate paid product | Not stated |
| Requesty | Hosted router with an EU endpoint | 5% markup on model costs, free tier | Budget caps stated |
For the self-hosting trade-offs see LiteLLM alternatives, for hosted routers priced per token see OpenRouter alternatives, and for tracing tools see Langfuse alternatives.
What should you check before switching?
- Where your keys live. A hosted gateway stores or relays provider credentials, a self-hosted one keeps them in your infrastructure.
- Whether a limit is a hard stop. Vercel describes its budget as a soft cap, so the request that crosses the limit still completes.
- Whether the limit covers your own provider keys. Vercel's budgets exclude spend on your own keys, while its pricing page says the tokens carry no markup either way.
- Who owns the roadmap. Portkey now sits inside a security platform, so check that the features you use are still sold on their own.
How does SOMA AI fit?
SOMA AI adds what a gateway does not show. On top of whichever gateway you choose, its free AI footprint calculator estimates carbon, electricity, water and list-price cost for a company's AI use, and the LLM API cost calculator prices a token mix across models. Neither needs a sign-up.
It is not a gateway. It does not sit in your request path, cache, route or refuse calls, and it does not read invoices. Figures are list-price and carbon estimates, with the method on the methodology page.
What does this page not claim?
- That this list is complete or ranks the gateways. It is a dated sample of tools whose official pages we could read.
- That a feature marked not stated does not exist. It means the pages we read did not say.
- Anything about Portkey's current plans, prices or open-source future beyond what the pages above said on 26 November 2026.
- That speed or reliability claims from any vendor were tested by us. We did not benchmark anything.
- That SOMA AI's figure matches an invoice. It is a list-price estimate and does not enforce a spend limit.
Short answers
- Is Portkey still independent?
- No on the pages we read. Palo Alto Networks' press release says it completed the acquisition of Portkey on 29 May 2026 and will make Portkey the core AI Gateway of its Prisma AIRS platform. Portkey's homepage banner says Portkey is now the Prisma AIRS AI Gateway, generally available for all enterprises. The press release does not say what happens to Portkey's open-source gateway.
- Is the Portkey gateway still open source?
- Portkey's gateway repository on GitHub states an MIT licence and self-hosting options. We read the repository today, but we did not find an official statement about its future after the acquisition, so check the repository and Palo Alto Networks before you build on it.
- Which Portkey alternatives enforce budgets?
- Of the tools we read, LiteLLM (over-budget requests are rejected, PostgreSQL needed), Vercel AI Gateway (a soft cap that rejects with HTTP 402 once exceeded), Kong AI Gateway (spend limits in its AI Rate Limiting Advanced policy), Bifrost (budgets with virtual keys and teams) and Requesty (budget caps) describe budget controls. Cloudflare AI Gateway and TensorZero did not state spend limits.
- Can I track LLM cost and carbon together?
- No gateway above showed carbon on the pages we read. SOMA AI's free calculator estimates a company's monthly AI cost at list price next to CO2e, electricity and water estimates, and many teams use it beside whichever gateway they pick.
