Set up a Cloudflare VPN generator

You’ll need a GitHub account and a Cloudflare account. Both offer free plans.

Download warp-main.zip

GitHub

  1. Download and extract the ZIP.
  2. Create a repository on GitHub. Upload the extracted files and folders into the repository root. You should see wrangler.toml, package.json, and the src folder.
  3. If .gitignore is missing from the repository, click Add file → Create new file. Name it .gitignore, including the leading dot, and paste the following.
    node_modules/
    .wrangler/
    .dev.vars
    Click Commit changes, then Commit changes again to confirm. The ZIP already includes this file if your upload picked it up.

Cloudflare

  1. Open Workers & Pages → Create application. Choose GitHub and select the repository you just created.
  2. Use the Worker name in wrangler.toml. The included name is warp-config-generator. Leave the root directory at the repository root and use npx wrangler deploy if Cloudflare asks for a deploy command.
  3. Click Save and Deploy. Open the HTTPS workers.dev URL Cloudflare gives you and try generating a configuration.

Cloudflare Workers setup documentation

Let subscribers generate their own VPN profiles

Once you have your Cloudflare Worker URL, go to Admin → Vpn Settings → Cloudflare generator URLs. Paste the URL into a server box, or click Add server to create one, then click Save URLs.

With App VPN enabled, subscribers can open the app’s VPN generator and create their own WireGuard profiles for free. Each successful generation creates a fresh Cloudflare WARP registration and a unique profile. Subscribers can generate additional profiles subject to Cloudflare’s usage limits and the generator’s rate limit.