Leanroute vs Cloudflare AI Gateway

Managed gateway with MCP, guardrails, and cost controls.

Cloudflare AI Gateway is a free edge-network proxy — it caches, logs, and forwards your LLM traffic through Cloudflare's 300+ PoPs. Genuine strength in network reach and DDoS shielding. It does not, however, ship MCP passthrough, BYOK encryption per tenant, a guardrails library, or spend caps — the things you pay $15/mo to get out of the box with Leanroute.

Snapshot date: August 2026. Feature claims re-validated quarterly — check developers.cloudflare.com/ai-gateway before depending on a specific number.

TL;DR

Pick Cloudflare if you want free routing + edge caching + DDoS protection and don't need MCP, guardrails, per-tenant isolation, or spend caps. Cloudflare is genuinely the cheapest option for pure proxy-through-a-CDN. Pick Leanroute if you need any of: (a) native MCP passthrough with allowlist, (b) a curated guardrails library, (c) BYOK encryption per org, (d) hard spend caps or per-key rate limits, or (e) APAC + India provider depth with Singapore residency.

Where we differ

DimensionLeanrouteCloudflare AI Gateway
Base price$15/mo BYOK subscription (or 5% top-up fee credits)Free (with Workers plan usage)
Token markupZero — provider list priceZero — you bring your own provider keys
Native MCP passthroughYes — `mcp_servers` on any /v1/chat/completions requestNot supported
Per-org MCP allowlistYes — 403 on unlisted URLsN/A (no MCP support)
Guardrails library7 curated rules (PII, secrets, prompt-injection, moderation, etc.)Basic keyword filters via Workers
BYOK encryptionKeys encrypted at rest with master held in runtime memoryStore in Workers Secrets (env-level, no per-org isolation)
Per-org cache isolationYes — Redis keys namespaced by org idGlobal cache; no org concept
Spend caps + rate limitsPer-org daily/monthly caps, per-key RPM/TPM, hard 402/429None (Workers rate-limits at IP/route level only)
Billing / dashboardPrepaid credits + BYOK sub, per-request cost log, admin consoleNot applicable — no billing layer
APAC + India providers first-classQwen, GLM, Doubao, Kimi, Sarvam, KrutrimSome via Workers AI (WhisperV3, LLaMA); no APAC direct
Data residencySingaporeGlobal edge — pick a Data Region on paid plans
Network / edge presenceFly.io sin region300+ PoPs worldwide, DDoS protection included

Rust-tinted cell: Leanroute leads. Muted cell: Cloudflare leads. No tint: tie.

Where Cloudflare still wins

  • Free. If your workload is small, exclusively routing, and doesn't need the feature layer, Cloudflare's free tier is unbeatable.
  • Network reach + DDoS. 300+ PoPs plus Cloudflare's standard DDoS shielding come free with your gateway traffic. We run a single Fly region.
  • Bundled with Workers. If your app is already deployed on Cloudflare Workers, the AI Gateway is one binding away.
  • Workers AI catalog. Small models hosted directly by Cloudflare (LLaMA, Whisper, embeddings) with no upstream provider needed.

See also: vs Vercel AI · vs OpenRouter · vs Portkey · MCP passthrough docs