Alternatives / Vercel AI Gateway

5 open-source alternatives

5 Best Open Source Vercel AI Gateway Alternatives in 2026

Looking for an open source Vercel AI Gateway alternative? We compared 5 open source LLM gateways by license, routing, guardrails, observability, and maintenance. LiteLLM is the most widely used, while Portkey, Bifrost, Agent Router, and LLM Gateway take different approaches.

Maxime DERAME's profile

Written by Maxime DERAME

Last updated:

Best Vercel AI Gateway alternatives at a glance

AlternativeBest forLicense
LiteLLMProxy for 100+ models with budgetsMIT + enterprise directory
Portkey AI GatewayGateway with guardrails and 1,600+ modelsMIT
BifrostHigh-performance Go gatewayApache-2.0
Envoy AI Gateway (Agent Router)Envoy-based gateway for agent trafficApache-2.0
LLM GatewayOpenAI-compatible gateway with analyticsAGPL-3.0 + EE

How we chose these Vercel AI Gateway alternatives

We looked for open-source gateways that route requests to many model providers through one API like Vercel AI Gateway. We verified each project's license, recent activity, stars, and self-hosting in its repository. We left out one gateway whose core repository we could not verify. See our methodology for the full criteria.

Closest to Vercel AI Gateway

LiteLLM is a proxy for 100+ LLMs in the OpenAI format with virtual keys, budgets, rate limits, fallbacks, and cost tracking, self-hostable with Docker. Portkey's gateway routes to 1,600+ LLMs with guardrails and fallbacks.

Performance and infrastructure

Bifrost is an Apache-2.0 gateway with 1,000+ models, governance, fallback, and OpenTelemetry support, with its latency figures self-reported. Agent Router, formerly Envoy AI Gateway, is built on Envoy and is aimed at teams already running Envoy.

Hosted-style option

LLM Gateway routes and analyzes requests across providers through an OpenAI-compatible API, with free self-hosting. Its hosted free plan adds a 5% gateway fee.

Important: enterprise tiers

LiteLLM's SSO, JWT auth, audit logs, and custom SLAs need its enterprise tier. LLM Gateway has enterprise-licensed parts, and Portkey's governance features are in its hosted platform. Bifrost's enterprise features such as SSO require a trial or license.

License details

LiteLLM is MIT with an enterprise directory. Portkey is MIT. Bifrost and Agent Router are Apache-2.0. LLM Gateway is AGPL-3.0 with enterprise parts.

Maintenance status

LiteLLM, Bifrost, Agent Router, and LLM Gateway had commits within days of this update. Portkey's last commit was in May 2026.

Why look for a Vercel AI Gateway alternative?

Vercel AI Gateway is a proprietary hosted routing service, so your prompts pass through Vercel and billing follows its rates. Open-source gateways can run in your own infrastructure, so you keep provider keys, apply your own budgets and guardrails, and avoid platform markups.

docs.litellm.ai
1

LiteLLM

Open-source AI gateway for 100+ LLMs in OpenAI format.

LiteLLM is an AI gateway and Python SDK that calls 100+ LLM APIs in the OpenAI format, with a proxy server that adds virtual keys, spend tracking and budgets per team or user, rate limiting, load balancing, automatic fallbacks, guardrails, and observability integrations such as Langfuse and OpenTelemetry. The repository is MIT outside its enterprise directory, which adds SSO, audit logs, and other features under a separate license.

61.4K12.4KMIT + enterprise directorySelf-hosted

Pricing: Free open-source proxy; paid enterprise tier and hosted proxy.

  • Supports 100+ providers with budgets, fallbacks, and guardrails
  • Large community and integrations
  • MIT-licensed core
  • Enterprise features such as SSO and audit logs are paid
  • Operating the proxy at scale takes effort
portkey.ai
2

Portkey AI Gateway

Fast AI gateway with integrated guardrails.

Portkey AI Gateway is an MIT gateway that routes requests to 1,600+ LLMs through one API with guardrails, fallbacks, and caching. The open-source gateway is one part of the Portkey platform, whose observability and governance features are hosted. The last commit was in May 2026.

13.2K1.4KMITSelf-hosted

Pricing: Free open-source gateway; platform features are paid.

  • Very large model catalog
  • Guardrails and fallbacks
  • Fast gateway
  • Governance features are in the hosted platform
  • Slower recent commits
getmaxim.ai
3

Bifrost

High-performance AI gateway with governance and observability.

Bifrost is a high-performance AI gateway that gives fast access to a large catalog of models from many providers, with an adaptive load balancer, virtual keys with independent budgets, real-time guardrails, an MCP gateway for tool management, SSO, and OpenTelemetry support. Its maintainers claim it is much faster than LiteLLM.

8.9K1.4KApache-2.0Self-hosted

Pricing: Free and open source; enterprise features available with a free trial.

  • Very low latency and adaptive load balancing
  • Virtual keys, guardrails, and an MCP gateway
  • Apache-2.0 license
  • Younger project with a smaller community than LiteLLM
  • Some enterprise features such as SSO are paid
theagentrouter.ai
4

Envoy AI Gateway (Agent Router)

Envoy-based gateway for AI and agent traffic.

Envoy AI Gateway, now renamed Agent Router, is an Apache-2.0 community project built on Envoy Gateway that routes AI and agent traffic to many providers through an OpenAI-compatible API. It targets platform teams already running Envoy and does not offer a built-in cost dashboard.

2.2K419Apache-2.0Self-hosted

Pricing: Free and open source.

  • Built on Envoy
  • Active community and releases
  • Credential and routing control
  • Needs Envoy and Kubernetes knowledge
  • No built-in cost tracking UI
llmgateway.io
5

LLM Gateway

Route, manage, and analyze LLM requests across providers.

LLM Gateway routes LLM requests across multiple providers through one OpenAI-compatible API, with usage analytics, performance monitoring, and secure key management, and SDKs for languages such as Python, TypeScript, Java, Rust, and Go. The core is AGPL-3.0, enterprise features in the ee directory are under a commercial license, and a hosted service is available.

1.7K197AGPL-3.0 + EESelf-hosted

Pricing: Free to self-host; hosted free plan with a 5% gateway fee, Pro at $50 per month, and custom enterprise plans.

  • Usage analytics and key management
  • Self-hosted or hosted plans
  • OpenAI-compatible API
  • Open core with commercial enterprise directories
  • Smaller community than LiteLLM

Compare Vercel AI Gateway alternatives

AlternativeTypeLicenseSelf-hostedBest for
LiteLLMLLM gatewayMIT + enterprise directoryYesClosest replacement
Portkey AI GatewayLLM gatewayMITYesGuardrails and fallbacks
BifrostLLM gatewayApache-2.0YesLow-latency routing
Envoy AI Gateway (Agent Router)LLM gatewayApache-2.0YesEnvoy and Kubernetes teams
LLM GatewayLLM gatewayAGPL-3.0 + EEYesUsage analytics

Which one should you choose?

Want the most widely used gateway

LiteLLM supports 100+ models with virtual keys, budgets, and observability integrations.

LiteLLM

Want guardrails built in

Portkey's gateway includes guardrails and routes to 1,600+ models.

Portkey AI Gateway

Want very low overhead

Bifrost is Go-based with Apache-2.0 licensing and OpenTelemetry support.

Bifrost

Run Envoy on Kubernetes

Agent Router builds on Envoy Gateway and routes AI and agent traffic.

Envoy AI Gateway (Agent Router)