Head to head

Bifrost vs Portkey: two open-source gateways compared

Bifrost is a Go gateway built for speed; Portkey's MIT gateway is built around guardrails and now belongs to Palo Alto Networks. Features, licences and fit.

Bifrost and Portkey both offer open-source AI gateways you can run on your own servers. Bifrost, from Maxim AI, is written in Go, licensed Apache 2.0 and built for low overhead, with caching, virtual keys and budgets in the free build; guardrails are in its enterprise deployments. Portkey's gateway is MIT-licensed TypeScript with guardrails at its core, and the company now belongs to Palo Alto Networks. Pick Bifrost for speed and budgets, Portkey for guardrails.

Facts checked between 27 November and 3 December 2026.

At a glance

BifrostPortkey gateway
Made byMaxim AIPortkey, part of Palo Alto Networks since 29 May 2026
Language and licenceGo, Apache 2.0TypeScript, MIT
GitHub starsAbout 10,200About 13,500
Startnpx -y @maximhq/bifrost or Docker; web UI on port 8080npx @portkey-ai/gateway; console on port 8787
Free featuresFailover, load balancing, semantic caching, virtual keys, budgets, MCP, PrometheusRouting, fallbacks, guardrails (50+ claimed)
Paid tierEnterprise deployments: guardrails, clustering, adaptive load balancingPrisma AIRS AI Gateway from Palo Alto Networks
Models (vendor claims)OpenAI, Anthropic, Bedrock, Vertex, Azure, Ollama, vLLM and more1,600+

Sources: Bifrost, Portkey gateway.

Performance

Bifrost's README reports 11 microseconds of added latency per request at 5,000 requests per second on a t3.xlarge. In LiteLLM's November 2026 benchmark at 50 requests per second with production features on, Bifrost added 1.2 ms at the median and Portkey's gateway 2.1 ms (LiteLLM). Both are small next to model response times. Each vendor tests its own best case, so measure with your traffic.

Guardrails vs budgets

The free builds lean in different directions:

  • Portkey puts guardrails in the open-source gateway: checks on prompts and responses before and after the model call.
  • Bifrost puts virtual keys, budgets and semantic caching in the open-source build, and moves guardrails, clustering and adaptive load balancing to its enterprise deployments.

If you need content safety without a commercial contract, Portkey's gateway is the closer fit. If you need spend control per key, Bifrost is.

Ownership and roadmap

Portkey's commercial platform is now Palo Alto Networks' Prisma AIRS AI Gateway. The README says a 2.0 release is merging Portkey's enterprise gateway into the open-source project, in pre-release as of this writing. Watch the repository if you depend on it. See Palo Alto Networks acquires Portkey.

Bifrost is developed by Maxim AI and sold commercially as enterprise deployments.

Which one should you pick?

  • Pick Bifrost for low overhead, budgets and caching in a single binary.
  • Pick Portkey's gateway for guardrails in the free build.
  • Look at LiteLLM if you need both budgets and a guardrails framework free, and the widest provider list. See Bifrost vs LiteLLM and Portkey vs LiteLLM.

For teams sharing their own GPUs

Both treat your vLLM or Ollama servers as one more provider. AI Gateway by LayerX is built around them: requests go to your GPUs first, with health checks, concurrency limits and prefix-cache affinity, then to vendors when needed. Access is per person, with keys, daily and monthly token budgets and a model list each, and prompts are never stored. It's commercial, has no caching or guardrails, and supports OpenAI-compatible providers only. See AI Gateway vs Bifrost and AI Gateway vs Portkey.

Questions

Is Bifrost faster than Portkey?

In LiteLLM's November 2026 test, Bifrost added 1.2 ms at the median and Portkey's gateway 2.1 ms. Both are small compared with model latency.

Are Bifrost and Portkey open source?

Yes. Bifrost is Apache 2.0 and Portkey's gateway is MIT. Both companies also sell commercial versions.

Does Bifrost have guardrails?

Guardrails are part of Bifrost's enterprise deployments, according to its README.

Who owns Portkey?

Palo Alto Networks, since 29 May 2026.

More posts

Keep reading.

See how AI Gateway fits your setup.

Tell us what you run today and how many people need access. We'll get back to you to learn more about your setup.

See how AI Gateway fits your setup.

What do you run today?