
The Cloudflare AI Gateway alternative
Everstack vs Cloudflare AI Gateway
Model routing, agents, tools, memory, sandboxes and tracing in one open-source platform. Run it on our cloud or on infrastructure you own.
- Self-hosted, inside your own boundary
- No vendor edge in the request path
- Runtime, sandboxes and evals included
- Portable across Docker, Kubernetes or cloud
Every fact here has its source at the foot of the page. Last reviewed August 31, 2026.

In front, the Everstack console, drawn with sample data. Behind it, Cloudflare AI Gateway's own site, captured on 16 November 2026.
Why teams choose Everstack over Cloudflare AI Gateway
Cloudflare AI Gateway is a platform service providing visibility and control over AI applications: analytics and logging on request metrics, token usage and cost, caching served from Cloudflare's edge rather than the model provider, rate limiting, and request retry with model fallback. It supports Workers AI, Anthropic, OpenAI, Google Gemini and others, and is available on all Cloudflare plans.
Runs inside your own infrastructure and compliance boundary
No dependency on a single vendor's edge network
The gateway comes with an agent runtime, sandboxes and evaluations
Everstack and Cloudflare AI Gateway, side by side
The facts a choice turns on, then the features, row by row.
Capabilities and deployment model read from developers.cloudflare.com/ai-gateway on 31 August 2026. Cloudflare plan inclusion is per their own documentation.
See it on your own traffic
Point one application at Everstack beside Cloudflare AI Gateway and compare the two for yourself.
Where Everstack pulls ahead
What each does about it, and what that means for you.
Where the gateway runs
- Everstack
- On your infrastructure, inside your own compliance boundary, portable across Docker, Kubernetes or any cloud.
Cloudflare AI Gateway- On Cloudflare. The documentation presents it exclusively as a platform service with no self-hosting option.
If a deployment or data residency constraint is why you are shopping for a gateway, this decides it immediately and nothing else on the page matters.
Scope past the request
- Everstack
- Agent sessions, isolated sandboxes, memory, workflows and evaluations on the same control plane, sharing a trace.
Cloudflare AI Gateway- Analytics, logging, caching, rate limiting, retries and fallback. The request boundary is the boundary.
Only matters if you have those problems. If you do not, the narrower service is the better engineering decision.
Where Cloudflare AI Gateway holds you back
What you run into with Cloudflare AI Gateway, and do not with Everstack.
It is a Cloudflare platform service. There is no self-hosting option, so requests and their logs traverse Cloudflare infrastructure.
That makes it a poor fit where a deployment or data residency constraint is the reason you are shopping for a gateway at all.
Scope stops at the request: analytics, logging, caching, rate limiting, retries and fallback.
Agent execution, isolated sandboxes, memory, evaluations and human review are not part of it.
The same task in both
Route a chat completion through the gateway
Both are a base URL change. Cloudflare's includes your account and gateway identifiers in the path; Everstack's points at wherever you deployed it.
from openai import OpenAI
import os
client = OpenAI(
base_url="https://{instance}.{region}.everstack.ai/openai/v1",
api_key=os.environ["EVERSTACK_API_KEY"],
)
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Summarise this report"}],
)
Cloudflare AI Gatewayfrom openai import OpenAI
import os
client = OpenAI(
base_url=(
"https://gateway.ai.cloudflare.com/v1/"
f"{os.environ['CF_ACCOUNT_ID']}/{os.environ['CF_GATEWAY_ID']}/openai"
),
api_key=os.environ["OPENAI_API_KEY"],
)
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Summarise this report"}],
)Switch from Cloudflare AI Gateway in 4 steps
Both are OpenAI-compatible, so the endpoint change is trivial. The substantial part is that you are moving from a managed edge service to infrastructure you operate, which is a real trade you should make deliberately.
Size the infrastructure you are taking on
Cloudflare handles scaling, patching and global distribution. Self-hosting means you do. Work out expected request volume and availability requirements before anything else.
Swap the endpoint
Replace the gateway.ai.cloudflare.com base URL with your Everstack deployment. Application code otherwise stays as it is.
Re-create caching and rate limit policy
Cloudflare gateway settings map to Everstack routing and cache configuration, including per-tenant limits.
Keep both while you compare
Run a share of traffic through each and compare latency and cache hit rate honestly. Cloudflare's edge is hard to beat on latency, and you should know the size of that gap before you commit.
Good to know before you switch
What needs rewriting
- Cloudflare-specific request headers and gateway configuration have no direct equivalent.
- Workers AI as a provider is Cloudflare-specific and does not carry over.
- Anything integrated with Cloudflare Analytics or their logging pipeline stays there.
What does not come across
- Historical request logs held in Cloudflare Analytics.
- Cached responses, which start cold.
- Cloudflare account-level configuration and bindings.
Common questions
Can Cloudflare AI Gateway be self-hosted?
No. Cloudflare's documentation presents it exclusively as a platform service accessed through their infrastructure, and mentions no self-hosting capability. If a data residency or deployment constraint is why you are evaluating gateways, that fact decides this comparison on its own.
How much does Cloudflare AI Gateway cost?
Cloudflare describes it as available on all plans, including the free tier. For an existing Cloudflare customer it is effectively free capability, which is a strong argument that has nothing to do with features.
What does Cloudflare AI Gateway actually do?
Analytics and logging over request metrics, token usage and cost; caching served from Cloudflare's cache instead of the model provider; rate limiting; and request retry with model fallback on error. It supports multiple providers including Workers AI, Anthropic, OpenAI and Google Gemini.
Is Everstack faster than Cloudflare?
At the edge, almost certainly not. Cloudflare's network footprint is not something a self-hosted deployment matches, and we are not going to claim otherwise. What self-hosting changes is where your data goes, not how close the gateway is to your users.
Sources
Where the facts on this page come from. They were last checked on August 31, 2026; products change, so follow the source before you rely on one.
Put Everstack in front of your next request
Run it yourself in a few minutes, or start on Everstack Cloud with your own provider keys.
Star on GitHubOpen source under Apache 2.0. A star helps others find it.
