/cloudflare-temp-accounts:cloudflare-temp-accountsfrom cloudflare-temp-accounts
Provision Cloudflare accounts with Wrangler temporary deployments, claim them immediately in a headed browser, rename them using the requested environment convention, and isolate Wrangler OAuth profiles. Use when the user asks to create, claim, rename, or configure a new Cloudflare account through Wrangler's temporary-account flow. Always use a headed browser for Cloudflare claim and OAuth consent; never silently substitute a headless session.
Ships in cloudflare-temp-accounts. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create a permanent Cloudflare account from Wrangler's temporary-account flow, claim it before the claim window expires, and leave local Wrangler credentials scoped to that account.
Choose the final account and profile name before provisioning. Do not keep Wrangler's generated temporary name.
For the VZA environment convention:
<project>-vza-net-prod<project>-ppe-vza-netKeep the -ppe- segment and the production -prod suffix exactly. If the user supplies a different environment convention, use that explicit convention instead of guessing.
Pin Wrangler to the reviewed version 4.128.0; use npx --yes [email protected] for every command below. Do not use a mutable package tag in an account-provisioning run.
Create a minimal Worker project in a disposable, account-specific directory. Set a fresh HOME and XDG_CONFIG_HOME for each account so an existing OAuth token or temporary-account cache cannot be reused accidentally.
Run the deployment from a headed terminal:
env \
-u CLOUDFLARE_API_TOKEN \
-u CLOUDFLARE_API_KEY \
-u CLOUDFLARE_EMAIL \
CLOUDFLARE_AUTH_USE_KEYRING=false \
HOME=/tmp/<account>-home \
XDG_CONFIG_HOME=/tmp/<account>-home/config \
npx --yes [email protected] deploy --temporary --config /tmp/<account>/wrangler.toml
The env -u options clear inherited Cloudflare credentials; keep this sanitized prefix for every temporary-account Wrangler invocation.
If Wrangler asks for Cloudflare Terms of Service or Privacy Policy acceptance, stop and obtain explicit user authorization before accepting.
Keep the temporary account ID and claim URL private. A claim URL is a bearer credential: never paste it into source, shared logs, telemetry, or the final response.
Claim, then wait for the dashboard to finish provisioning. Do not treat an intermediate setup page as success.Actions menu, choose Change account name, enter the final name, save, reload, and verify the exact spelling. An existing workers.dev hostname may retain its generated subdomain after the account rename.Headed browser use is mandatory for claim and OAuth consent. Do not replace it with a headless browser or an unauthenticated API shortcut.
Create one named OAuth profile per account. Clear inherited Cloudflare credentials before profile creation, activation, and all profile-scoped commands.
Start the profile flow and keep its local callback process running:
env \
-u CLOUDFLARE_API_TOKEN \
-u CLOUDFLARE_API_KEY \
-u CLOUDFLARE_EMAIL \
CLOUDFLARE_AUTH_USE_KEYRING=false \
npx --yes [email protected] auth create <final-account-name> --browser=false
Open the emitted OAuth URL in the matching headed browser session.
On the consent screen, select only the target account. Never choose Grant access to all accounts for an account-specific profile. Review and authorize, then wait for the local Wrangler process to exit successfully.
Bind the profile to its own project directory:
env \
-u CLOUDFLARE_API_TOKEN \
-u CLOUDFLARE_API_KEY \
-u CLOUDFLARE_EMAIL \
CLOUDFLARE_AUTH_USE_KEYRING=false \
npx --yes [email protected] auth activate <final-account-name> <project-directory>
Pin the matching account_id in that project's Wrangler config. The profile scope and config account ID provide independent protection against deploying to the wrong account.
Run checks from each account-specific project directory. Keep the sanitized env -u prefix for every Wrangler command:
env -u CLOUDFLARE_API_TOKEN -u CLOUDFLARE_API_KEY -u CLOUDFLARE_EMAIL \
CLOUDFLARE_AUTH_USE_KEYRING=false npx --yes [email protected] auth list
env -u CLOUDFLARE_API_TOKEN -u CLOUDFLARE_API_KEY -u CLOUDFLARE_EMAIL \
CLOUDFLARE_AUTH_USE_KEYRING=false npx --yes [email protected] whoami --json --cwd <project-directory>
auth list shows the named profile and its directory binding.whoami --json --cwd <project-directory> reports the intended email, exact account ID, and exact final account name.Leave only non-secret metadata such as the final account name, account ID, profile name, directory binding, and Worker URL. Remove temporary claim URLs and credentials from shared files and logs.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub pedropaulovc/agent-plugins --plugin cloudflare-temp-accounts