Skip to content
Cloudflare Docs

Cloudflare for Platforms

Build your own multitenant platform using Cloudflare as infrastructure

Cloudflare for Platforms lets you run untrusted code written by your customers, or by AI, in a secure, hosted sandbox, and give each customer their own subdomain or custom domain.

Figure 1: Cloudflare for Platforms Architecture Diagram

You can think of Cloudflare for Platforms as the exact same products and functionality that Cloudflare offers its own customers, structured so that you can offer it to your own customers, embedded within your own product. This includes:

  • Isolation and multitenancy — each of your customers runs code in their own Worker — a secure and isolated sandbox
  • Programmable routing, ingress, egress and limits — you write code that dispatches requests to your customers' code, and can control ingress, egress and set per-customer limits
  • Databases and storage — you can provide databases, object storage and more to your customers as APIs they can call directly, without API tokens, keys, or external dependencies
  • Custom Domains and Subdomains — you call an API to create custom subdomains or configure custom domains for each of your customers

Cloudflare for Platforms is used by leading platforms big and small to:

  • Build application development platforms tailored to specific domains, like ecommerce storefronts or mobile apps
  • Power AI coding platforms that let anyone build and deploy software
  • Customize product behavior by allowing any user to write a short code snippet
  • Offer every customer their own isolated database
  • Provide each customer with their own subdomain

Products

Workers for Platforms

Let your customers build and deploy their own applications to your platform, using Cloudflare's developer platform.

Cloudflare for SaaS

Give your customers their own subdomain or custom domain, protected and accelerated by Cloudflare.