11 providers, one OpenAI-compatible endpoint

LLM routing that keeps your bill honest.

Open-source LLM gateway on Cloudflare's edge. Bring your own keys for zero markup, or top up credits and we cover the providers. Smart routing, MCP server, full observability — no vendor lock-in.

First 1,000 BYOK requests free every month. No credit card to try.

Drop-in replacement

curl https://api.edgerouteai.com/v1/chat/completions \
  -H "Authorization: Bearer $EDGEROUTE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "auto",
    "messages": [{"role":"user","content":"Hello"}]
  }'

Same OpenAI SDK calls. Pass model: "auto" and we route to the best provider for the prompt — or pick any of the 11 below explicitly.

Works with the providers you already use

OpenAIAnthropicGoogleMistralxAIGroqTogether AICloudflare Workers AICohereOllamaAzure OpenAI

Smart routing

Auto-pick the cheapest model that meets your latency, context, and quality bar. Pin or exclude providers per API key.

BYOK or platform keys

Use your own provider keys for zero markup, or top up credits and we'll cover the keys at a flat 2.5% fee.

OpenAI-compatible

Drop-in replacement for the OpenAI SDK. Switch base URL, keep your code.

MCP server

Native Streamable-HTTP and stdio shim for Claude Desktop, Cursor, Cline, and any MCP-aware client.

Observability

Per-request trace IDs, cost / latency / token analytics, webhooks, exports — without giving up your data.

Guardrails

PII regex and keyword blocklists scoped to each API key. Tighten the perimeter without changing app code.

Simple, predictable pricing.

Pay providers directly, or top up credits.

BYOK

Free first 1K req/mo

Then $1 per 1,000 requests

  • →Use your own provider keys
  • →Zero markup on tokens
  • →Smart router included
  • →MCP + observability included
Add a key

Platform keys

Most popular

2.5% markup

No own keys needed — pay from credits

  • →Top up $5 / $20 / $50 / $100
  • →No expiry on credits
  • →We handle provider quotas + retries
  • →Same router, same observability
Top up credits

Self-host

Free, FSL → Apache 2.0

Run the open gateway on your Cloudflare account

  • →Source available now (FSL-1.1)
  • →Converts to Apache 2.0 in 2 yrs
  • →No usage caps
  • →Bring your own D1 + KV
Read on GitHub

Why EdgeRouteAI vs. the alternatives

FeatureEdgeRouteAIOpenRouterDirect provider
BYOK supportedYes — zero markup on your keysLimitedN/A
Smart auto-routerCost + context + health-awareBasicNo
MCP serverHTTP + stdio shimNoVaries
Self-host (FSL → Apache 2.0)Yes — gateway is openNoN/A
Per-key pin / exclude / cost capYesNoNo
Edge runtimeCloudflare WorkersOrigin serversVaries

Ship in five minutes.

Sign up, paste an API key, and switch your base URL. The first 1,000 requests this month are on us.