EdgeRouteAI docs

Open-source LLM gateway on Cloudflare's edge. One OpenAI-compatible endpoint for 11 providers, with smart routing, MCP server, observability, and guardrails.

Five-minute path

If you've used the OpenAI SDK before, you're already 90% of the way there. The quickstart below shows the full happy path.

curl
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"}]
  }'

What's in here

  • Quickstart — sign up, add a key, make a request.
  • Authentication — how API keys work, sessions, retry / timeout knobs.
  • BYOK setup — per-provider key formats, verification, label conventions.
  • MCP server — Streamable HTTP at mcp.edgerouteai.com, plus the stdio shim.
  • Client integrations — Claude Desktop, Cursor, Cline, Continue, OpenAI SDKs, LangChain.
  • Observability — trace IDs, analytics, webhooks, exports.
  • Guardrails — PII regex and keyword blocklists per API key.
  • API reference — endpoint catalog and response headers.
  • Self-hosting — run the open gateway on your own Cloudflare account.