Cloudflare temporary deploy

From bolone-sengkuni/hermes-brutal-mod · View interactive version

Cloudflare temporary deploy is an AI agent skill from the GitHub repository bolone-sengkuni/hermes-brutal-mod. Deploy a Worker live, no account, via wrangler --temporary.

How to use this skill

Skill file

Cloudflare Temporary Deploy Skill

Deploy a Cloudflare Worker to a live workers.dev URL with zero account setup, using wrangler deploy --temporary. Cloudflare provisions a throwaway account, deploys, and prints a claim URL valid for 60 minutes; unclaimed accounts auto-delete. This gives an agent a tight write → deploy → verify loop without any OAuth, signup, or token copy-paste.

This skill does NOT cover production deploys (use wrangler login + a permanent account for those), nor non-Worker Cloudflare products beyond the temporary-account limits below.

When to Use

Load this skill when the user wants to:

When NOT to Use

Prerequisites

How to Run

Use the terminal tool for every step. Always pin the version (wrangler@latest or wrangler@4.102.0 or newer) so you don't accidentally run an old global wrangler that lacks the flag.

  1. Scaffold a minimal Worker (skip if the project already exists). A Worker needs a wrangler.toml (or wrangler.jsonc) and an entry script. Minimal TypeScript example — write these with write_file:

wrangler.jsonc:

```jsonc

{

"name": "hello-agent",

"main": "src/index.ts",

"compatibility_date": "2025-01-01"

}

```

src/index.ts:

```typescript

export default {

async fetch(): Promise<Response> {

return new Response("hello cloudflare");

},

};

```

  1. Deploy with --temporary from the project directory:

```

npx wrangler@latest deploy --temporary

```

The proof-of-work check adds a short automatic delay. On success Wrangler prints an Account: <name> (created) (or (reused)) line, a Claim URL, and the live https://<worker>.<account>.workers.dev URL.

  1. Parse the URLs from that output. Run the helper to extract them reliably instead of eyeballing:

```

npx wrangler@latest deploy --temporary 2>&1 | python scripts/parse_deploy_output.py

```

(Resolve scripts/parse_deploy_output.py to this skill's absolute path.) It prints JSON: {"live_url", "claim_url", "account", "account_state", "expires_minutes", "deployed"}.

  1. Verify the deploy is actually live — do not trust the deploy log alone. curl the live URL and confirm the body matches what the code returns:

```

curl -sS <live_url>

```

  1. Iterate. Edit the code, redeploy with the same npx wrangler@latest deploy --temporary. Within the 60-minute window Wrangler reuses the cached temporary account (Account: <name> (reused)), so the URL stays stable. curl again to confirm the change.
  1. Hand the claim URL to the user. Tell them: open it within 60 minutes to keep the deployment and any resources; if they don't claim it, everything auto-deletes. Treat the claim URL as a secret — it grants ownership of the account.

Quick Reference

| Step | Command |

|---|---|

| Check version (need 4.102.0+) | npx wrangler@latest --version |

| Deploy (no account) | npx wrangler@latest deploy --temporary |

| Deploy + parse URLs | npx wrangler@latest deploy --temporary 2>&1 \| python scripts/parse_deploy_output.py |

| Verify live | curl -sS <live_url> |

| Clear cached temp account | npx wrangler@latest logout |

Temporary account product limits

| Product | Limit on a temporary account |

|---|---|

| Workers | Deploys to workers.dev |

| Static Assets | Up to 1,000 files, 5 MiB each |

| KV | Allowed |

| D1 | 1 database, 100 MB per DB / 100 MB total |

| Durable Objects | Allowed |

| Hyperdrive | 2 configs, 10 connections |

| Queues | Up to 10 |

| SSL/TLS certs | Allowed |

Pitfalls

Verification

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.