Skip to content
THE OPEN ALTERNATIVE
Esc
navigateopen⌘Jpreview

6 Best Open Source Cloudflare AI Gateway Alternatives

A curated collection of the 6 best open source and self-hosted alternatives to Cloudflare AI Gateway in 2026.

Looking for a free, privacy-friendly, or self-hosted replacement for Cloudflare AI Gateway in 2026? The top open-source alternative is LiteLLM — Acts as a unified proxy across 100+ LLMs, normalizing them to the OpenAI format while handling virtual keys, budgets, rate limits, fallbacks, and cost tracking..

Other highly rated open-source Cloudflare AI Gateway alternatives include Portkey AI Gateway, Bifrost and Envoy AI Gateway.

57,381

Acts as a unified proxy across 100+ LLMs, normalizing them to the OpenAI format while handling virtual keys, budgets, rate limits, fallbacks, and cost tracking.

LiteLLM preview

Acts as a unified proxy across 100+ LLMs, normalizing them to the OpenAI format while handling virtual keys, budgets, rate limits, fallbacks, and cost tracking.

Comprehensive AI platform with gateway, observability, guardrails, and prompt management. Access 1,600+ LLMs via unified API with enterprise-grade security.

Portkey AI Gateway preview

Comprehensive AI platform with gateway, observability, guardrails, and prompt management. Access 1,600+ LLMs via unified API with enterprise-grade security.

7,598

Open-source AI gateway delivering 50x faster performance than alternatives. Access 1000+ models from 8+ providers with built-in governance, fallback, and observability.

Bifrost preview

Open-source AI gateway delivering 50x faster performance than alternatives. Access 1000+ models from 8+ providers with built-in governance, fallback, and observability.

Open source gateway built on Envoy for routing application traffic to GenAI services. Supports 16+ LLM providers including OpenAI, Anthropic, AWS Bedrock.

Envoy AI Gateway preview

Open source gateway built on Envoy for routing application traffic to GenAI services. Supports 16+ LLM providers including OpenAI, Anthropic, AWS Bedrock.

1,577

Route, manage, and analyze LLM requests across multiple providers with one API. Compatible with OpenAI format, includes usage analytics and performance monitoring.

LLM Gateway preview

Route, manage, and analyze LLM requests across multiple providers with one API. Compatible with OpenAI format, includes usage analytics and performance monitoring.

An AI gateway that sits on the request path to handle PII redaction, prompt injection blocking, tracing, evals, and cost tracking for OpenAI, Anthropic, and Gemini.

Grepture preview

An AI gateway that sits on the request path to handle PII redaction, prompt injection blocking, tracing, evals, and cost tracking for OpenAI, Anthropic, and Gemini.

About Cloudflare AI Gateway

Route, monitor, and control API requests to multiple AI models through a unified gateway with built-in caching, rate limiting, and detailed analytics for cost optimization.