Blank white background with no objects or features visible.

We’re sharing complimentary access to the full Gartner Hype Cycle for AI Governance 2026. Get your copy →

agentgateway vs Vercel AI Gateway: self-hosted agent gateway or managed model router?

By Gaurang Rokad

Updated: November 5, 2026

Published: November 5, 2026

TL;DR
  • agentgateway vs Vercel AI Gateway comes down to two questions: who runs the gateway, and how much of your traffic is agents rather than apps. agentgateway (Solo.io, now a Linux Foundation project) is open-source Rust software you self-host — binary, container or Kubernetes — and it governs LLM calls, MCP tool calls and agent-to-agent traffic under one policy model. Vercel AI Gateway is a managed service: 400+ models behind one endpoint, 0% token markup, nothing for you to operate, and no self-hosted, VPC or air-gapped option.
  • agentgateway’s real wins: runs anywhere including air-gapped so prompts never leave your network, per-tool MCP authorization with per-caller tool lists, built-in PII masking and JWT identity checks for free, and routing to your own self-hosted models.
  • Vercel’s real wins: nothing to run or upgrade, public pricing with zero token markup, limits and budgets that hold across the whole service, 400+ models with provider/speed/cost sorting and fallbacks, and it doesn’t keep your prompts.
  • Choose Vercel if you want someone else to run the gateway, most of your traffic is model calls from apps, and a hosted service with SOC 2 Type 2 and ISO 27001 meets your data rules.
  • Choose agentgateway if the gateway has to live in your own network, your agents call MCP tools and other agents and need per-tool access control, or you route to self-hosted models — and you have a platform team to operate it.
  • The catch on each side: Vercel is hosted-only and its governance features (allowlists, zero data retention, SAML) are billed per request or per plan on top of the free routing; agentgateway is free to run but fleet-wide rate limits, shared budgets and a single cost view need the paid Solo Enterprise edition, and its free limits are per-instance until you do.

On paper, agentgateway and Vercel AI Gateway do the same job. Both put one OpenAI-compatible endpoint in front of a long list of model providers. In practice they're built for different buyers. Vercel AI Gateway is a hosted service: you send requests to Vercel, and Vercel runs everything behind the endpoint. agentgateway, which Solo.io started and the Linux Foundation now hosts, is open-source software you install and run yourself, and it also governs MCP tool calls and agent-to-agent traffic. So before comparing features, decide whether you want to run a gateway at all, and how much of your traffic will come from agents rather than apps.

We've used both. Our team tested the open-source agentgateway build hands-on (v1.5.0, with the main findings re-checked on v1.6.0), and we ran our own requests through Vercel's hosted gateway. We then checked every claim here against each vendor's docs in November 2026, by which point agentgateway was on v1.7.0.

agentgateway (Solo.io)Vercel AI Gateway
What it isOpen-source gateway for LLM, MCP and agent-to-agent traffic, written in RustManaged router for model requests across providers
DeploymentSelf-hosted only: binary, container or KubernetesVercel-hosted service only
License and pricingApache 2.0, free. Paid Solo Enterprise edition, priced through salesCommercial service. 0% token markup, usage-based feature fees, Vercel plan for team features
Best forPlatform teams that run their own infrastructure and govern agents and MCP toolsApplication teams that want managed model routing with no gateway to operate

Vercel AI Gateway: overview

Vercel AI Gateway sits between your app and the model providers. It holds your credentials, tracks usage and enforces spending limits, all behind one endpoint. It became generally available in August 2025 and grew out of Vercel's web platform and AI SDK. You can call it with OpenAI- or Anthropic-compatible APIs, the AI SDK or plain HTTP, and your app doesn't have to be hosted on Vercel. The catalog lists 400+ models from OpenAI, Anthropic, Google, Amazon Bedrock and others.

You don't deploy anything. Vercel describes the gateway as a Node.js app on its own Fluid compute, with Redis in each region keeping track of quotas, and none of that is your problem. It held up in our tests. Requests went through OpenAI, Google Vertex AI and Amazon Bedrock, tool calls and strict structured output came back valid, and when the primary model had no available provider, the gateway fell back to the backup model we'd set.

The pricing is what most people notice first. Vercel charges a 0% markup on tokens, even when you bring your own provider keys, and every team gets a monthly free credit for a subset of models. Governance features cost extra per request, and team features like SAML single sign-on come with a Vercel plan. The catch is where it runs: Vercel doesn't document any way to run the gateway in your own VPC, on-premises or air-gapped. If you're new to the category, our explainer on what an LLM gateway is covers the basics.

agentgateway: overview

agentgateway isn't an update of Solo's older Gloo AI Gateway. Solo wrote a new proxy in Rust, licensed it Apache 2.0 and handed it to the Agentic AI Foundation under the Linux Foundation. Solo still sells the paid edition, Solo Enterprise for agentgateway. You can run it as one binary that reads one YAML file, as a container, or on Kubernetes with a separate control plane and data plane, where it implements the Gateway API. It's small and quick. Our team had it serving traffic in under 11 seconds from a cold start, it used about 18 MB of memory at idle, and on a network with no internet route it made no calls home.

It handles three kinds of traffic with one policy model: LLM calls, Model Context Protocol (MCP) traffic between agents and tools, and agent-to-agent (A2A) calls. MCP authorization is the part we liked most. You write rules for which tools each caller can use, and the gateway filters the tool list as well, so an agent never sees a tool it isn't allowed to call. The free edition also validates JWTs against your identity provider, limits which models each key can use, enforces spending budgets per key and masks sensitive data like email addresses and card numbers before the prompt leaves your network.

Solo charges for anything that has to be shared across instances. Fleet-wide rate limits, a shared budget resource and a single cost view are all enterprise features. Our agentgateway review goes into much more detail.

Head-to-head comparison

The agentgateway column comes from our tests of the open-source build (v1.5.0, re-checked on v1.6.0) and Solo's docs for v1.7.0. The Vercel column comes from Vercel's public docs and our tests on a free-tier account. We checked both in November 2026.

Capabilityagentgateway (open source)Vercel AI Gateway
DeploymentSelf-hosted: binary, container, VM or Kubernetes. No hosted serviceHosted by Vercel. No self-hosted, VPC or air-gapped option documented
Who operates itYouVercel
Traffic governedLLM, MCP, A2A and general HTTPModel requests. Tool execution stays in your application
Model access23 named providers in the current docs, plus any OpenAI-compatible endpoint, including self-hosted models400+ catalog models. Routing to your own self-hosted endpoints is not documented
Caller identityAPI keys, or JWTs validated against your identity providerTeam API keys, or OIDC tokens for Vercel projects
MCP tool access controlPer-tool authorization with per-caller tool listsNot documented as a gateway feature
RoutingWeighted, priority failover, conditional routing, retries, outlier evictionProvider ordering and filtering, sort by speed or cost, model fallbacks, virtual models, health-aware defaults. No documented weighted split
BudgetsPer key in the standalone build, enforced after the crossing request. Per instancePer team, project, API key or user, enforced after the crossing request. Spend on your own provider keys is excluded
Rate limitsLocal to each instance. Fleet-wide limits are enterpriseFree tier is limited per model. Vercel says paid requests aren't rate limited by the gateway; provider limits still apply
Response cachingNo built-in response cache. Needs an external component such as vLLM Semantic RouterProvider prompt caching only. No gateway response cache
PII redaction before the providerBuilt in, freeNot documented
Prompt and response loggingOff by default; can be enabled per team, cost or ruleBodies not captured; logs and traces hold metadata only
Data residencyWherever you deploy itProvider inference pinned to the US, EU, Australia or Japan where supported. The gateway itself can process requests in any Vercel region
ObservabilityPrometheus metrics, OpenTelemetry, request log in SQLite or PostgresBuilt-in dashboard and logs (36-day lookback), OpenTelemetry trace drains over HTTP
SSO for administratorsOIDC sign-in for the standalone UI (v1.6.0 and later)SAML on Pro as a paid add-on, or on Enterprise; SCIM on Enterprise
ComplianceSelf-run, so yours to certify. Solo lists SOC 2 Type IIVercel lists SOC 2 Type 2 and ISO 27001:2022; HIPAA BAA on eligible Pro and Enterprise plans

Where Vercel AI Gateway is stronger

You don't run anything. There's no cluster to size and no upgrades to plan around. That matters more than it sounds: agentgateway ships a minor release roughly every month, and v1.6.0 alone had five breaking changes.

Vercel's prices are public. The token markup (zero), the per-feature fees and the plan prices are all on its website. Solo has no public price list for its enterprise edition, and you can't start a trial without talking to sales.

Limits apply across the whole service. Vercel runs one gateway for everyone, so budgets and quotas hold wherever your traffic comes from. With agentgateway, budgets and rate limits that span several instances need the enterprise edition.

You get 400+ models behind one key. Requests can be ordered or sorted by provider, speed or cost, and can fall back to other providers or models when one fails.

It doesn't keep your prompts. Vercel's gateway doesn't capture prompt or completion text, and you can turn on team-wide zero data retention or block providers that train on prompts.

Where agentgateway is stronger

You choose where it runs: your VPC, your own data center or an air-gapped network. Prompts never pass through someone else's gateway. Vercel's gateway is hosted only.

It understands agents. Per-tool MCP rules, per-caller tool lists and A2A support all use the same policy model as model calls. Vercel leaves tool execution, and any rules about which tools an agent may call, to your application.

It can strip sensitive data. Built-in PII masking removes things like email addresses and card numbers before a request reaches the provider. We didn't find anything equivalent in Vercel's docs.

It talks to your own models. Any OpenAI-compatible endpoint works as a backend, including vLLM or Ollama running on your own hardware. Vercel lets you bring your own key for the providers it supports, but it doesn't document routing to arbitrary private endpoints.

It's open source under a foundation. The code is Apache 2.0 and lives in a Linux Foundation project, so its future doesn't hang on Solo's plans. Leaving is cheap too, because your apps keep using the standard OpenAI API.

Performance

We can't test these two the same way, so we won't rank them. agentgateway runs on whatever hardware you give it. Vercel's gateway is a shared service, and the only way to measure it is from the outside.

agentgatewayVercel AI Gateway
MethodSelf-hosted, 1 vCPU and 2 GB, local mock provider with a fixed 50 ms responseHosted, one client in San Jose, gateway call vs direct call to the same OpenAI model, paced free tier
Added latency, non-streamingAbout 2 to 5 ms211 ms at p50, 949 ms at p95
ThroughputAt least 3,200 requests per second on one vCPU (our load generator ran out first)Not measurable on the free tier
MemoryAbout 18 MB idleNot applicable, managed service

Read the Vercel number with care. It includes the round trip to Vercel's network, and it jumped around a lot: on 21 of 98 request pairs, going through the gateway was faster than calling OpenAI directly. A model call usually takes hundreds of milliseconds to a few seconds anyway, so neither gateway is likely to be your bottleneck. For streaming, agentgateway added no more than about 12 ms before the first token compared with calling a live provider directly.

Both have a weak spot under load. Vercel's free tier let through about four requests in a row before returning HTTP 429, with no Retry-After header, so we couldn't run an unpaced load test at all. Vercel says buying credits lifts the free-tier limits and that the gateway doesn't rate limit paid requests. We haven't tested that. agentgateway had trouble with large streaming responses: with very long documents, one instance started to degrade at about 30 requests per second. Small streaming requests were fine at every load we tried.

Pricing

agentgateway costs nothing beyond your infrastructure and the people who look after it. One instance with per-key budgets, PII masking and MCP authorization is free. Solo Enterprise for agentgateway adds fleet-wide rate limits, a budget resource, a cost management UI, on-behalf-of identity, FIPS builds and support. You get a price from sales, because there's no public list. Our Solo AI gateway pricing breakdown has what we could find.

Vercel charges no markup on tokens, even ones billed to your own provider keys, and every team gets a monthly free credit for some models. To use your own keys, you have to buy credits first. The governance features are where the bill grows:

Vercel AI Gateway chargePrice
Team-wide model or provider allowlist (one charge if both are on)$0.10 per 1,000 successful requests
Team-wide zero data retention$0.10 per 1,000 successful requests
Custom reporting writes$0.075 per 1,000
Custom reporting queries$5 per 1,000
Trace drains$0.05 per 1,000 traces, plus $0.50 per GB
Vercel Pro plan$20 per month including one seat, $20 per extra seat
SAML SSO on Pro$300 per month
HIPAA BAA on Pro$350 per month

On Vercel, routing costs almost nothing. The fees come from the controls your security team will want switched on, so price those before you commit. On agentgateway the license can be free. What you pay for is engineering time, plus the enterprise edition once you run several instances.

Gotchas worth knowing

Vercel budgets are soft caps. The request that crosses the limit still completes, and spend on your own provider keys doesn't count toward Gateway budgets at all. agentgateway's per-key budgets also let the crossing request finish.

Vercel bills you when your own key fails. If a request made with your provider key fails, Vercel retries it on its own credentials and charges your credit balance. Set spend limits with your provider as well as in the gateway.

Don't load test on Vercel's free tier. Vercel documents free-tier limits per model, but in our tests the limit behaved as if it covered the whole account. Switching models didn't reset it, and having free credit left didn't help. Buy credits before you run a real evaluation.

agentgateway makes one more call than the docs suggest. A retry setting of 1 means two calls to the provider, and the retries go out with no delay unless you configure a backoff.

agentgateway streams can hang. Set responseIdleTimeout on streaming routes. It arrived in v1.6.0, and from v1.7.0 it covers MCP responses too. Without it, a provider that stops partway through a stream keeps the connection open for as long as the client is willing to wait.

agentgateway's free limits are per instance. Budgets and rate limits don't add up across replicas unless you buy the enterprise edition, which is easy to miss until you scale out.

When to choose Vercel AI Gateway

  • You want someone else to run the gateway.
  • Most of your traffic is model calls from apps, and your tools run inside those apps.
  • A hosted service with SOC 2 Type 2, ISO 27001 and regional provider inference meets your compliance needs.
  • You already build on Vercel or the AI SDK.

When to choose agentgateway

  • The gateway has to run in your own network, including air-gapped.
  • You run agents that call MCP tools and other agents, and need per-tool access control.
  • You want PII masking and identity checks without paying for them, and you have a platform team to run the gateway.
  • You route to self-hosted models alongside commercial providers.

The TrueFoundry alternative

Vercel will run the gateway for you, but only in its own cloud. agentgateway runs anywhere, but you operate it, and shared state across instances costs extra. The TrueFoundry AI Gateway covers both cases. You can use it as managed SaaS, run the gateway in your VPC with a control plane we host, or self-host it in your VPC, on-premises or air-gapped. Gateway pods get configuration and access rules from the control plane in real time, along with rate-limit and budget counters aggregated centrally, so limits apply across replicas without a paid upgrade.

It gives you 1,000+ LLMs behind one OpenAI-compatible API, routes to self-hosted models from the same control plane, and governs LLM, MCP and agent traffic with tool-level access control. It can also require human approval before destructive tool calls. Budgets can be scoped by team, model or provider account, and SSO, RBAC and audit logging come built in. If you're stuck choosing between a managed router and a self-hosted agent gateway, see how the TrueFoundry AI Gateway handles both, or book a demo.

Related reading

Conclusion

The choice comes down to two questions: who runs the gateway, and what traffic does it need to control? If you want managed model routing with no markup, and a hosted service meets your data rules, Vercel AI Gateway is the easier path. If the gateway has to live in your own network, or your agents need per-tool access control, agentgateway is the better fit. If you need both, book a TrueFoundry demo.

Try now.

One gateway for all your models, MCP servers, and agents.
No credit card needed.

Start free
Table of Contents

One Gateway for Every LLM, Agent and MCP Server

Book a 30-min with our AI expert

Book a Demo

The fastest way to build, govern and scale your AI

Book Demo
Summarize with
ChatGPT logo by OpenAI
Perplexity AI logo
Blurry red snowflake on white background, symmetrical frosty design with soft edges and abstract shape.

Discover More

No items found.
November 5, 2026
|
5 min read

agentgateway vs Vercel AI Gateway: self-hosted agent gateway or managed model router?

No items found.
November 5, 2026
|
5 min read

LiteLLM vs agentgateway: comparing two open-source AI gateways

No items found.
What is AI governance
November 5, 2026
|
5 min read

What Is AI Governance And Why It Matters

No items found.
What is Model Context Protocol (MCP)
November 5, 2026
|
5 min read

What is Model Context Protocol (MCP) and How Does it Work?

No items found.
No items found.

Recent Blogs

Black left pointing arrow symbol on white background, directional indicator.
Black left pointing arrow symbol on white background, directional indicator.

Frequently asked questions

What is the difference between agentgateway and Vercel AI Gateway?

agentgateway is open-source software you deploy and operate yourself, and it governs model calls, MCP tool calls and agent-to-agent traffic. Vercel AI Gateway is a managed service that routes model requests across providers, with no gateway for you to run and no self-hosted option.

Can Vercel AI Gateway be self-hosted?

No self-hosted, VPC or air-gapped deployment is documented. The gateway is reached at Vercel's hosted endpoint. Vercel's bring-your-own-cloud offering covers application code and functions, not the AI Gateway itself.

Is agentgateway open source?

Yes. agentgateway is licensed Apache 2.0 and hosted by the Agentic AI Foundation under the Linux Foundation. Solo.io sells Solo Enterprise for agentgateway, which adds fleet-wide rate limits, cost management and support.

Does Vercel AI Gateway support MCP?

Models routed through the gateway can request tool calls, but your application executes the tools. A tool-authorization layer inside the gateway, like agentgateway's per-tool rules, is not documented.

Which is faster, agentgateway or Vercel AI Gateway?

They can't be compared directly. In our tests, agentgateway added about 2 to 5 ms on a single vCPU against a local mock provider. Vercel AI Gateway added 211 ms at the median when measured from a client in San Jose against direct OpenAI calls on a free-tier account, a figure that includes the network hop to Vercel.

Can I deploy TrueFoundry in my own VPC or on-prem?

Yes. TrueFoundry runs as managed SaaS, as a gateway plane in your cloud, or self-hosted in your VPC, on-premises or air-gapped, so request data can stay inside your environment.

Take a quick product tour
Start Product Tour
Product Tour