11 tools
The best BYOK LLM gateways & routers
Proxies that put one API in front of every provider key, with routing, fallbacks and spend controls.
Top rated: Portkey AI Gateway, Bifrost, Claude Code Router
LLM gateways and routers sit between your apps and model providers. You add provider keys once, then every app talks to one OpenAI-compatible endpoint with routing, fallbacks, caching, budgets and usage logs.
- Tools listed
- 11
- Open source
- 82%
- 9 of 11
- Support local models
- 73%
- 8 of 11
- Key stays on device
- 9%
- Avg Key Safety 69/100
Our top picks
Chosen from listing data: editor score, Key Safety Score, pricing, platforms and provider support.
Best overall
Portkey AI Gateway
Highest editor score in the group (4.6/5). Drop-in for existing OpenAI SDK code
Best free option
Bifrost
Open source: Free & open source. You only pay your provider for usage.
Most private
Claude Code Router
Key Safety Score 93/100, and your key never leaves your device.
Best for local models
LiteLLM
Connects to Ollama or LM Studio, so private work needs no API key or per-token cost.
Widest provider support
New API
Works with 12 providers, including OpenAI, Anthropic and Google Gemini.
Best to self-host
Higress
Runs on your own server, so keys and data stay inside your infrastructure.
Compare the top 10
| Tool | Editor score | Key Safety | Pricing | Providers | Open source | Local models | Key stays local |
|---|---|---|---|---|---|---|---|
| Portkey AI Gateway | 4.6 | 78 | Freemium | 15 | – | ||
| Bifrost | 4.5 | 78 | Open source | 13 | – | ||
| Claude Code Router | 4.5 | 93 | Open source | 8 | |||
| LiteLLM | 4.5 | 78 | Open source | 15 | – | ||
| New API | 4.5 | 78 | Open source | 12 | – | ||
| Cloudflare AI Gateway | 4.4 | 28 | Freemium | 12 | – | – | – |
| Higress | 4.3 | 78 | Open source | 9 | – | ||
| One API | 4.3 | 78 | Open source | 7 | – | ||
| Vercel AI Gateway | 4.3 | 28 | Freemium | 11 | – | – | – |
| LLM Gateway | 4.1 | 68 | Freemium | 12 | – | – |
What to look for in BYOK LLM gateways & routers
- 1
Self-hosted or managed
Self-hosted gateways keep provider keys inside your infrastructure. Managed gateways remove ops work but hold your keys.
- 2
Virtual keys and budgets
Issuing per-app or per-user keys with spend limits is the main reason teams adopt a gateway.
- 3
Latency overhead
Every request passes through the gateway. Check published overhead and where it can run, such as at the edge or in your region.
- 4
API compatibility
Make sure it speaks the formats your tools use: OpenAI, Anthropic Messages, Gemini or all three.
All 11 LLM gateways & routers
11 tools
Portkey AI Gateway
LLM Gateways & Routers
Open-source gateway that routes one API to hundreds of models, with guardrails built in.
Bifrost
LLM Gateways & Routers
High-performance open-source LLM, MCP and agent gateway written in Go.
Claude Code Router
LLM Gateways & Routers
Run Claude Code and other agents on any model by routing requests through your own keys.
LiteLLM
LLM Gateways & Routers
Open-source gateway that calls 100+ LLMs with one OpenAI-style API.
New API
LLM Gateways & Routers
Self-hosted LLM gateway with routing, access control and cost accounting.
Cloudflare AI Gateway
LLM Gateways & Routers
Edge proxy that adds caching, rate limits and logs to your provider keys.
Higress
LLM Gateways & Routers
AI-native API gateway with LLM routing, token rate limits and MCP hosting.
One API
LLM Gateways & Routers
Single-binary key manager and API distributor for dozens of model providers.
Vercel AI Gateway
LLM Gateways & Routers
One endpoint for hundreds of models, with bring-your-own-key support and no markup.
LLM Gateway
LLM Gateways & Routers
Route, manage and analyse LLM requests across providers through one API.
Plano
LLM Gateways & Routers
AI-native proxy and data plane for agentic apps (formerly Arch Gateway).
FAQ
- What are the best BYOK LLM gateways & routers?
- By editor score, the top-rated BYOK LLM gateways & routers are Portkey AI Gateway, Bifrost and Claude Code Router. The right pick depends on your platform, preferred provider and how you want your key stored.
- Are there free BYOK LLM gateways & routers?
- Yes. 7 of the 11 listed are free or open source, including Bifrost, Claude Code Router and LiteLLM. You still pay your model provider for API usage.
- Which BYOK LLM gateways & routers work with local models?
- 8 support local models through Ollama, LM Studio or similar, including Portkey AI Gateway, Bifrost and Claude Code Router. With a local model you need no API key and pay no per-token cost.
- Which BYOK LLM gateways & routers support Claude?
- 11 work with an Anthropic API key, including Portkey AI Gateway, Bifrost and Claude Code Router.
- Which AI providers are most widely supported?
- Among BYOK LLM gateways & routers, the most supported providers are OpenAI (11), Anthropic (11), Google Gemini (11) and DeepSeek (11).
- Is it cheaper to bring your own API key?
- For most people, yes. Light to regular use of a BYOK app typically costs a few dollars a month in API fees, compared with $20 or more for a subscription. Heavy agentic use can cost more, so set a spending limit with your provider.