Set up a Cloudflare VPN generator
You’ll need a GitHub account and a Cloudflare account. Both offer free plans.
GitHub
- Download and extract the ZIP.
- Create a repository on GitHub. Upload the extracted files and folders into the repository root. You should see
wrangler.toml,package.json, and thesrcfolder. - If
.gitignoreis missing from the repository, click Add file → Create new file. Name it.gitignore, including the leading dot, and paste the following.
Click Commit changes, then Commit changes again to confirm. The ZIP already includes this file if your upload picked it up.node_modules/ .wrangler/ .dev.vars
Cloudflare
- Open Workers & Pages → Create application. Choose GitHub and select the repository you just created.
- Use the Worker name in
wrangler.toml. The included name iswarp-config-generator. Leave the root directory at the repository root and usenpx wrangler deployif Cloudflare asks for a deploy command. - Click Save and Deploy. Open the HTTPS
workers.devURL 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.