Skip to content
All comparisons
vs

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.

developers.cloudflare.com
The home page of Cloudflare AI Gateway's own site.

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.

  1. Runs inside your own infrastructure and compliance boundary

  2. No dependency on a single vendor's edge network

  3. 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.

What is comparedEverstackCloudflare AI Gateway
The facts
Deployment modelSelf-hosted on your infrastructure with Docker or Kubernetes, or Everstack Cloud if you prefer managed.Cloudflare-hosted only. The documentation presents it exclusively as a platform service and mentions no self-hosting capability.
Where requests and logs travelWherever you deploy it.Through Cloudflare's network.
Cost of entryStarter $0, Build $20/month, Scale $100/month, Enterprise custom (August 2026).Available on all Cloudflare plans, including free. If you are already a Cloudflare customer this is close to free capability.
CachingSemantic and exact-match caching, self-hosted.Serves requests directly from Cloudflare's cache instead of the original model provider, which is a genuine latency and cost win at their edge.
Rate limiting, retries and fallbackYes, with per-tenant policy.Yes, including model fallback on error.
Provider coverageMulti-provider.Multi-provider, including Workers AI, Anthropic, OpenAI and Google Gemini.
Agent runtime, sandboxes and evaluationsSame control plane, sharing one trace.Out of scope.
Operational burdenReal. Self-hosting means you deploy, patch, monitor and scale it.None. This is the strongest argument for Cloudflare and it is a good one.
Gateway
Multi-provider routingEverstack: yesCloudflare AI Gateway: yes
CachingEverstack: yesCloudflare AI Gateway: yes
Rate limitingEverstack: yesCloudflare AI Gateway: yes
Retries and model fallbackEverstack: yesCloudflare AI Gateway: yes
Analytics and loggingEverstack: yesCloudflare AI Gateway: yes
Deployment
Self-hostingEverstack: yesCloudflare AI Gateway: no
Runs without vendor infrastructure in the pathEverstack: yesCloudflare AI Gateway: no
Runtime
Stateful agent sessionsEverstack: yesCloudflare AI Gateway: no
Isolated code executionEverstack: yesCloudflare AI Gateway: no
Vector memoryEverstack: yesCloudflare AI Gateway: no
Quality
Datasets and evaluation runsEverstack: yesCloudflare AI Gateway: no
Human annotation queuesEverstack: yesCloudflare AI Gateway: no

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.

Everstack
call.py
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 Gateway
call.py
from 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.

  1. 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.

  2. Swap the endpoint

    Replace the gateway.ai.cloudflare.com base URL with your Everstack deployment. Application code otherwise stays as it is.

  3. Re-create caching and rate limit policy

    Cloudflare gateway settings map to Everstack routing and cache configuration, including per-tenant limits.

  4. 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.