Agent leaderboards / All sectors / AI gateway
AI gateway: which products coding agents choose
No product won more than about 26%, and Portkey was the leader.
Read this leaderboard as textrankings, key learnings, method
Key learnings
We asked five coding agents to add an AI gateway to eight codebases. That came to 329 runs, each phrased in different words and asked as one of four different people. Cloudflare AI Gateway came second, Vercel AI Gateway third, and OpenRouter just behind it.
Wording changed the answer almost every time
A case here is one codebase with one agent, asked several times over in different words and as different people. Of 40 such cases, 35 did not settle on a single product.
The persona moved the order
Junior developers picked Vercel AI Gateway in 37 runs, more than any other product. Vibe coders put OpenRouter first, with 15 wins. Senior engineers and enterprise teams both led with Portkey.
One agent broke from the other four
Codex chose Cloudflare AI Gateway in 36 of its 96 runs. Cursor, Claude Code, Muse Code and Grok Build CLI all put Portkey first instead.
Named often, chosen once
Helicone was mentioned 156 times and won a single run. Vercel AI SDK was mentioned 102 times and won none.
- The simulated user approved every plan in the end, but sent the agent back at least once in 86 runs.
- In 21 runs it refused to approve until the agent named a specific product.
- Agents wrote the gateway themselves in 15 runs, about 5% of the total.
The ranking329 runs
| Product | Wins | Share | ||
|---|---|---|---|---|
| 1 | Portkeyportkey.ai | 86 | 26% | |
| 2 | Cloudflare AI Gatewaycloudflare.com | 76 | 23% | |
| 3 | Vercel AI Gatewayvercel.com | 52 | 16% | |
| 4 | OpenRouteropenrouter.ai | 49 | 15% | |
| 5 | LiteLLMlitellm.ai | 25 | 8% | |
| 6 | Built in-houseoutcome | 15 | 5% | |
| 7 | Amazon Bedrockaws.amazon.com | 14 | 4% | |
| 8 | Heliconehelicone.ai | 1 | 0% | |
| 9 | Envoy AI Gatewayenvoyproxy.io | 1 | 0% | |
| 10 | Opperopper.ai | 1 | 0% |
By agent, by persona, by wording
By agent
| Codex96 runs | Cloudflare AI Gateway · 36then Portkey · 20 |
| Cursor71 runs | Portkey · 17then OpenRouter · 16 |
| Claude Code69 runs | Portkey · 21then Cloudflare AI Gateway · 19 |
| Muse Code · Muse Spark 1.369 runs | Portkey · 22then OpenRouter · 14 |
| Grok Build CLI · Grok 4.724 runs | Portkey · 6then Cloudflare AI Gateway · 5 |
By persona
| Senior engineer126 runs | Portkey · 54then Cloudflare AI Gateway · 27 |
| Enterprise team82 runs | Portkey · 29then Cloudflare AI Gateway · 19 |
| Junior developer81 runs | Vercel AI Gateway · 37then OpenRouter · 24 |
| Vibe coder40 runs | OpenRouter · 15then Cloudflare AI Gateway · 13 |
By what the ask stressed
| The plain ask329 runs | Portkey · 86then Cloudflare AI Gateway · 76 |
A case is one codebase with one agent, asked several times in different words and as different people. 35 of 40 cases did not hold to a single product.
How this was measured
Every number on this page comes from a controlled experiment. We took 8 small applications, asked 5 coding agents (Codex, Cursor, Claude Code, Muse Code (Muse Spark 1.3), Grok Build CLI (Grok 4.7)) to add an AI gateway to each of them, in several wordings and as a senior engineer and enterprise team and junior developer and vibe coder, and let the agent choose the product. Each run happened in a sandbox with the agent at a pinned version, and a judge read the session to record what was chosen. That is 329 runs. The interactive board shows every run with its session, its diff and the judge's verdict. A simulated user stood in for the owner of the codebase: it read the agent's plan and had to approve it before any code was written; it sent the agent back at least once in 86 runs. Read the methodology and the publications.
If you sell in this sector: what these numbers mean for a vendor.
Open the interactive boardThis page as MarkdownOther sectors
- Agent sandboxes
- Observability
- AI SRE
- Payments
- Deploy
- Auth
- Email providers
- Product analytics
- Databases
- File storage
- LLM evals & observability
- Voice Agents
- Serverless functions
- Cloud
- Bot protection
- Search
- Agent frameworks
- Performance in CI
- Document processing & OCR
- Usage-based billing
- Internationalization
- Security testing
- Maps
- Message queues
- AI search
- Code review
- E-signature
- Security platforms
- In-app chat & calls
- Vector search