Portkey AI Gateway logoPortkey AI GatewayOpen sourceCloudflare AI Gateway logoCloudflare AI GatewayProprietary

Portkey AI Gateway vs Cloudflare AI Gateway

Portkey AI Gateway is a free, self-hostable alternative to Cloudflare AI Gateway. Here's how running it yourself compares with paying for the managed product.

Switching from Cloudflare AI Gateway

We haven't checked whether Portkey AI Gateway can import from Cloudflare AI Gateway yet

If you've moved from Cloudflare AI Gateway to Portkey AI Gateway, tell us how it went below.

FeaturePortkey AI GatewayCloudflare AI Gateway
Source codeOpen source (MIT)Proprietary
HostingSelf-hostedManaged by the vendor
CostFree software; you pay for your own serversSee cloudflare.com pricing
Your data livesOn your infrastructureOn the vendor's servers
Bring your Cloudflare AI Gateway dataNot checked yet—
Lock-inLow: fork it or move hosts any timeTied to the vendor
Setup & maintenanceYou install, update and back it upHandled for you
Community13,475 stars · 1,416 forks—
Last code change Maintained—
Written inTypeScript—

Choose Portkey AI Gateway if

  • You want your data on servers you control
  • You'd rather not pay per seat or per usage as you grow
  • You want to read, audit or modify the code

Stick with Cloudflare AI Gateway if

  • You don't want to run or update servers
  • You need vendor support and SLAs out of the box
  • Your team is already deeply integrated with it

Frequently asked questions

Is Portkey AI Gateway a good alternative to Cloudflare AI Gateway?

Portkey AI Gateway is an open-source a blazing fast AI Gateway with integrated guardrails. Route to 1,600+ LLMs, 50+ AI Guardrails with 1 fast & friendly API. It covers the same ground as Cloudflare AI Gateway while letting you host it yourself and keep full control of your data. It has 13,475 stars on GitHub.

Is Portkey AI Gateway free?

Yes. Portkey AI Gateway is open source under the MIT license, so the software is free to use. Running it yourself costs whatever your server or cloud provider charges.

Can I self-host Portkey AI Gateway?

Yes. Portkey AI Gateway can be installed on your own server; see its repository for instructions.

Other open-source alternatives to Cloudflare AI Gateway

See all