# GateLLM vs Cloudflare AI Gateway - Self-Hosted Alternative

> GateLLM vs Cloudflare AI Gateway: self-hosted BYOK gateway vs managed edge proxy. Deployment, protocol entrypoints, and the 5% fee model compared.

Canonical: https://www.gatellm.io/compare/cloudflare/

## GateLLM vs Cloudflare AI Gateway
A source-verified comparison. Cloudflare AI Gateway is a managed edge proxy fronting 20+ providers; GateLLM is a self-hosted BYOK gateway. The differences are deployment, protocol entrypoints, and the fee model.
## Migrating from Cloudflare AI Gateway
Point your SDK base_url at GateLLM — no other code changes. Your model keys and routing policies carry over; enable plan-mode switching only as needed.
- Point your OpenAI SDK base_url at GateLLM (with /v1) — one line, no other code changes.
- Enter your model-provider keys into the console (BYOK) — they live in gateway memory, never persisted.
- Recreate your routing / fallback policies in the console — they carry over 1:1.

## BYOK self-hosted vs managed edge proxy
GateLLM is licensed per instance / memory with never a token markup, and your prompts never transit a third-party edge. Cloudflare AI Gateway charges a 5% fee on unified-billing credits and keeps traffic on Cloudflare's edge.
## Cost structure
- GateLLM: flat per-instance license (Pro 2GB $400/mo) — no token markup.
- Cloudflare AI Gateway: free core features; paid plans add limits; 5% fee on credits purchased through unified billing.
- At high volume the flat license decouples cost from usage; the 5% credit fee scales with spend.

## When to choose which
### Choose Cloudflare if…
You want a zero-setup edge proxy and accept a 5% unified-billing fee plus data transiting Cloudflare's network.
### Choose GateLLM if…
Data must stay in your VPC, you need native multi-protocol entrypoints and plan-mode switching, and you want a flat license with no percentage fee.
### Both can coexist
Use Cloudflare AI Gateway for edge experiments, then route production through your own GateLLM gateway once you have BYOK keys and a compliance requirement.
## FAQ
### Is Cloudflare AI Gateway self-hostable?
No. It is a managed edge service — traffic transits Cloudflare's network. If you need the gateway inside your VPC, GateLLM is the self-hosted option.
### Does Cloudflare AI Gateway charge a fee?
The core features are free; unified billing adds a 5% fee on purchased credits, and paid plans add usage limits. GateLLM is a flat license with no percentage fee.
### How hard is the migration from Cloudflare AI Gateway?
Minimal. Both speak OpenAI; point your SDK base_url at GateLLM and re-enter your keys. No client-code changes.
### Which is cheaper at scale?
The 5% credit fee scales with spend; GateLLM's flat license does not. Above a volume threshold the flat fee wins.
Verified 2026-09-06 against developers.cloudflare.com and docs.gatellm.io. Features and pricing drift — check the sources before procurement.
### How the differentiators work
Each GateLLM differentiator is a mechanism, not a marketing line. Here is what it does under the hood, and what Cloudflare AI Gateway does instead.
#### Native multi-protocol entrypoints
- **GateLLM**: Four native ingresses (OpenAI / Anthropic / Gemini / DashScope) translate any-to-any — one gateway serves every SDK natively.
- **Where rivals fall short**: A single OpenAI-compatible endpoint across 20+ providers.

#### Self-hosted data path
- **GateLLM**: Runs inside your VPC / on-prem. Prompts never enter our systems; request logs off by default.
- **Where rivals fall short**: Managed edge — traffic transits Cloudflare's network.

#### Plan-mode model switching
- **GateLLM**: Declarative switch-route rules + built-in Claude Code plan-mode detection + useModel scripts — planning on top-tier models, execution on open SOTA, zero client change.
- **Where rivals fall short**: Retry / fallback routing without a per-request rewrite layer.

## Comparison table
A source-verified comparison. Cloudflare AI Gateway is a managed edge proxy fronting 20+ providers through one OpenAI-compatible endpoint; GateLLM is a self-hosted BYOK gateway. The differences are deployment, protocol entrypoints, and the fee model.
### Only GateLLM does this
Mechanisms the managed edge gateway does not offer — the one-line "how it works" sits under each capability.
| Capability | GateLLM | Cloudflare AI Gateway |
| --- | --- | --- |
| Native multi-protocol entrypoints | ✓ | ✗ |
| Self-hosted, data stays in your network | ✓ | ✗ |
| Conditional model switching (built-in plan-mode detection) | ✓ | ✗ |

- **Native multi-protocol entrypoints**: Four native ingresses (OpenAI / Anthropic / Gemini / DashScope) translate any-to-any. Cloudflare AI Gateway fronts providers through a single OpenAI-compatible endpoint.
- **Self-hosted, data stays in your network**: Runs fully in your VPC / on-prem. Cloudflare AI Gateway is a managed edge service — traffic transits Cloudflare's network.
- **Conditional model switching (built-in plan-mode detection)**: Declarative switch-route rules + built-in Claude Code plan-mode detection + useModel scripts. Cloudflare offers retry / fallback routing but no per-request rewrite layer.

### Both do these well
A settled baseline — either gateway covers this layer. The decision lives in the layers above and below.
| Capability | GateLLM | Cloudflare AI Gateway |
| --- | --- | --- |
| Multi-model routing & fallback | ✓ | ✓ |
| Load balancing across providers | ✓ | ✓ |
| Token usage & cost metering | ✓ | ✓ |
| Rate limiting & quotas | ✓ | ✓ |
| Multiple API key management | ✓ | ✓ |
| MCP tool integration | ✓ | ✓ |
| Visual console | ✓ | ✓ |
| Audit logging | ✓ | ✓ |

### Different in kind
Not better or worse — different deployment, pricing, and configuration models you should weigh directly.
| Capability | GateLLM | Cloudflare AI Gateway |
| --- | --- | --- |
| Runtime | Single Rust binary · no GC pauses | Managed edge (Workers / proxy) |
| Pricing | Flat per-instance license, no token markup | Free core + paid plans; 5% fee on unified-billing credits |
| Configuration | Fully in console — no YAML, atomic commits | Dashboard + API |
| Ecosystem lock-in | Cloud-neutral — any model vendor | Tight Cloudflare edge + Workers integration |
| Ops model | You run the gateway | Managed edge service |

Verified against official docs as of 2026-09-06 (developers.cloudflare.com / docs.gatellm.io). Features and pricing drift — check the sources before procurement.

## Other comparisons
- [LiteLLM](https://www.gatellm.io/compare/litellm.md)
- [OpenRouter](https://www.gatellm.io/compare/openrouter.md)
- [Alibaba Cloud AI Gateway](https://www.gatellm.io/compare/alibaba-cloud.md)
- [Azure API Management](https://www.gatellm.io/compare/azure-apim.md)
- [Apigee](https://www.gatellm.io/compare/apigee.md)
- [Kong AI Gateway](https://www.gatellm.io/compare/kong.md)
- [Portkey (Prisma AIRS)](https://www.gatellm.io/compare/portkey.md)

## Related
- [Home](https://www.gatellm.io/index.md)
- [Pricing](https://www.gatellm.io/pricing.md)
- [Cost Calculator](https://www.gatellm.io/calculator.md)
- [About](https://www.gatellm.io/about.md)
- [Book a Demo](https://www.gatellm.io/demo.md)
- [FAQ](https://www.gatellm.io/faq.md)
- [Compare AI Gateways](https://www.gatellm.io/compare.md)
- [Compare LiteLLM](https://www.gatellm.io/compare/litellm.md)
- [Compare OpenRouter](https://www.gatellm.io/compare/openrouter.md)
- [Compare Alibaba Cloud AI Gateway](https://www.gatellm.io/compare/alibaba-cloud.md)
- [Compare Azure API Management](https://www.gatellm.io/compare/azure-apim.md)
- [Compare Apigee](https://www.gatellm.io/compare/apigee.md)
- [Compare Kong AI Gateway](https://www.gatellm.io/compare/kong.md)
- [Compare Portkey](https://www.gatellm.io/compare/portkey.md)
- [LiteLLM vs Kong AI Gateway](https://www.gatellm.io/compare/litellm-vs-kong.md)
- [LiteLLM vs OpenRouter](https://www.gatellm.io/compare/litellm-vs-openrouter.md)
- [LiteLLM vs Portkey](https://www.gatellm.io/compare/litellm-vs-portkey.md)
- [Use Cases](https://www.gatellm.io/use-cases.md)
- [Reduce LLM Cost](https://www.gatellm.io/use-cases/reduce-cost.md)
- [High Availability](https://www.gatellm.io/use-cases/high-availability.md)
- [Multi-Tenant Isolation](https://www.gatellm.io/use-cases/multi-tenant.md)
- [Compliance & Audit](https://www.gatellm.io/use-cases/compliance-audit.md)
- [Troubleshooting by Symptom](https://www.gatellm.io/use-cases/troubleshooting.md)
- [Mixed Multi-Vendor Model Stack](https://www.gatellm.io/use-cases/mixed-model-stack.md)
- [Self-Host AI Inside Office](https://www.gatellm.io/use-cases/self-hosted-office-ai.md)
- [Token Usage Visibility & Attribution](https://www.gatellm.io/use-cases/token-ops.md)
- [Token FinOps: AI Cost Allocation & Control](https://www.gatellm.io/use-cases/token-finops.md)
- [MCP Tool Governance](https://www.gatellm.io/use-cases/mcp-tool-governance.md)
- [Web Search for Every Model](https://www.gatellm.io/use-cases/web-search-grounding.md)
- [Multi-Key Rotation & Standby](https://www.gatellm.io/use-cases/multi-key-pooling.md)
- [Admission Control for Connected Clients](https://www.gatellm.io/use-cases/client-admission-control.md)
- [Enforce Which Model Agents Actually Run](https://www.gatellm.io/use-cases/enforce-model-policy.md)
- [No Model Choice on the Client](https://www.gatellm.io/use-cases/automatic-model-tiering.md)
- [One Protocol, Any Model](https://www.gatellm.io/use-cases/one-protocol-any-model.md)
- [Office / Microsoft 365 Add-in](https://www.gatellm.io/office-addin.md)
- [Glossary](https://www.gatellm.io/glossary.md)
- [Model Catalog](https://www.gatellm.io/models.md)
- [SDK & Framework Integrations](https://www.gatellm.io/integrations.md)
- [AI Coding Agents & Harnesses](https://www.gatellm.io/coding-agents.md)
- [Security & Compliance](https://www.gatellm.io/security.md)
- [Privacy Policy](https://www.gatellm.io/privacy-policy.md)
- [Terms of Service](https://www.gatellm.io/terms.md)
- [Cookie Policy](https://www.gatellm.io/cookies.md)
- [Data Processing Agreement (DPA)](https://www.gatellm.io/dpa.md)
- [Sub-processor List](https://www.gatellm.io/subprocessors.md)
- [Security Questionnaire (CAIQ/SIG/VSA)](https://www.gatellm.io/trust.md)
- [Incident Response & Support](https://www.gatellm.io/sla.md)
- [Vulnerability Disclosure Policy](https://www.gatellm.io/vulnerability-disclosure.md)
- [Open Source License Notice](https://www.gatellm.io/open-source-licenses.md)
- [Version Support & Lifecycle (EOL)](https://www.gatellm.io/lifecycle.md)
- [Engineering Blog](https://www.gatellm.io/blog.md)
- [Your Agents Have More Permissions Than Your Employees: Governing MCP Tools at the Gateway](https://www.gatellm.io/blog/mcp-tool-governance.md)
- [The $10k Invoice Problem: Five Ways to Cut LLM Spend Without Dumbing Down Your App](https://www.gatellm.io/blog/reduce-cost.md)
- [Your Vendor's List Price Is Not Your Cost: Applying Real FinOps to Token Spend](https://www.gatellm.io/blog/token-finops.md)
- [llms.txt](https://www.gatellm.io/llms.txt)
