Temporary Cloudflare Accounts for AI Agents

soheilpro1 pts0 comments

Temporary Cloudflare Accounts for AI agents<br>Everyone&#39;s writing code with AI agents today. But the moment an agent needs to deploy something — and needs to sign up and create an account — it slams face-first into a wall built for humans: a browser-based OAuth flow, a dashboard to click through, an API token to copy-paste, a multi-factor authentication prompt to satisfy. For an interactive copilot sitting next to a developer, that&#39;s annoying. For a background agent, it&#39;s a hard stop.Today we&#39;re rolling out Temporary Cloudflare Accounts for Agents.Agents can now deploy websites, APIs, and agents right away, without first needing to sign up for an account.\n \n \n Any agent can now run wrangler deploy --temporary and deploy a Worker to Cloudflare. This temporary deployment stays live for 60 minutes, during which time you can claim the temporary account, making it permanently your own. If you don&#39;t, it expires on its own.\n \n \n Our goal? Let your agent code and ship.\n \n Why frictionless deployments matter for AI agents\n \n \n \n \n Frictionless temporary accounts matter more than it might first seem:Background AI sessions have no human in the loop, and are becoming the norm. Any auth step that needs a browser, a copy-paste, or &quot;click here in 60 seconds&quot; means an agent gets stuck and may choose to deploy elsewhere.Trial-and-error is the agent&#39;s superpower. Agents need a tight write → deploy → verify loop. They need cheap, throwaway deployment targets, so they can curl their own output and decide whether they got it right.Agent platforms are building their own ways for deploying code to &quot;just work&quot; without extra steps or credentials. People are starting to expect that this process just works, without the need to sign up for other services that they&#39;ve not used before or heard of.\n \n How it works\n \n \n \n \n Temporary accounts are built around Wrangler, our Developer Platform command-line interface (CLI) tool that lets developers bootstrap new projects, manage their configurations and resources, and deploy and update them.Wrangler usage is widely documented online and agents know how to use it very well. But if you hadn’t yet signed in and granted Wrangler permission to your Cloudflare account, when the agent tried to deploy, it would get stuck at the sign-up and authentication step. And you might rightly ask: How do agents and LLMs know that this new --temporary flag in Wrangler exists, so that they actually use it without a human explicitly telling them to do so?To solve this, we updated Wrangler to prompt the agent with a message that tells it about the --temporary flag:\n \n \n When the agent discovers this, and then runs wrangler deploy again with the --temporary flag, Cloudflare provisions a temporary account for the agent to use, gives Wrangler an API token to work with, and provides a claim URL that the agent can give back to the human.\n \n Let’s go over every step of the flow\n \n \n \n \n \n \n Deploying and iterating on a new project\n \n \n \n \n Make sure you’re using the latest Wrangler release, fire up your favorite coding agent, and write a prompt to deploy a &quot;hello world&quot; app in build mode:Make a very simple hello world Cloudflare Worker in TypeScript and deploy it using wrangler, don&#39;t ask me questions, do the best you canThe agent will run wrangler, pick up the --temporary flag from the output messages, build your script, and deploy it instantly, no human in the loop required:\n \n \n As you can see, the agent wrote the script, deployed it using the --temporary flag, curled the preview link it got from the output, and verified that the result matches the code.This is great, but agentic coding is often not about one single deployment. A session can go through a cycle of multiple code changes. This is not a problem: the agent can iterate on the Worker script and redeploy the changes as many times as it wants (within the 60-minute claim window). Type this prompt:Now change hello world to &quot;hello cloudflare&quot; and redeployLook at the agent changing the source code, reusing the previously created temporary account, redeploying a new version and rechecking the result:\n \n \n \n \n Claiming the account\n \n \n \n \n At any point, you can claim the temporary account and make it yours permanently. When you click the claim link you will be taken to a page where you can either sign up for or sign in to Cloudflare, and then claim the temporary account that your Worker was deployed to. This includes claiming not just Workers, but resources like databases and other bindings, too.\n \n \n If you do not claim these temporary accounts within 60 minutes, they will be automatically deleted.\n \n The road to frictionless agentic deployments \n \n \n \n \n This is just one way we’re eliminating the signup barrier for agents. We recently announced a partnership with Stripe and a new protocol we co-designed that lets agents provision...

temporary agent agents deploy wrangler cloudflare

Related Articles