Temporary Cloudflare Accounts for AI Agents
Cloudflare introduces temporary accounts for AI agents, enabling deployment via `wrangler deploy --temporary` without manual signup. The accounts last 60 minutes, during which agents can iteratively deploy and developers can permanently claim them. The post addresses the problem of background AI sessions getting stuck at browser-based OAuth flows and explains how the CLI prompts agents about the flag for discovery. A complete TypeScript demo walks through deploying a hello world Worker, modifying it, and redeploying with verification. Partnerships with Stripe and WorkOS are noted as part of broader efforts to reduce agentic deployment friction. Target readers include agent platform builders and developers using coding agents.
Everyone'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's annoying. For a background agent, it's a hard stop.
如今,每个人都在用 AI 代理编写代码。但当代理需要部署某些东西、需要注册并创建账户时,它就会一头撞上为人类设计的墙:基于浏览器的 OAuth 流程、需要点击通过的仪表盘、要复制粘贴的 API 令牌、需要满足的多因素身份验证提示。对于坐在开发者旁边的交互式副驾来说,这很烦人;对于后台运行的代理来说,这则是硬止步。
Today we'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.
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't, it expires on its own.
Our goal? Let your agent code and ship.
今天,我们为代理推出 Cloudflare 临时账户。
代理现在可以立即部署网站、API 和其他代理,无需先注册账户。
任何代理现在都可以运行 wrangler deploy --temporary,将 Worker 部署到 Cloudflare。这个临时部署会存活 60 分钟,在此期间你可以认领该临时账户,将其永久变为你自己的。如果你不认领,它会自动过期。
我们的目标?让你的代理编写代码并发布上线。
Why 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 "click here in 60 seconds" means an agent gets stuck and may choose to deploy elsewhere.
Trial-and-error is the agent'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 "just work" 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've not used before or heard of.
无摩擦临时账户的重要性可能比初看起来要大得多:
后台 AI 会话没有人类参与,正成为常态。任何需要浏览器、复制粘贴或“在 60 秒内点击此处”的认证步骤,都意味着代理会被卡住,并可能选择部署到其他地方。
试错是代理的超能力。代理需要一个紧密的“编写 → 部署 → 验证”循环。它们需要廉价、可丢弃的部署目标,这样它们才能 curl 自己的输出并判断是否正确。
代理平台正在构建自己的方式,让代码部署“直接可用”,无需额外步骤或凭据。人们开始期望这个过程能直接工作,无需注册他们以前未使用过或未听说过的其他服务。
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: https://www.cloudflare.com/static/8737c8bbba7b7c8fae5b43e5486a6ebe/Temp_agent_flow.gif
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.
临时账户围绕 Wrangler 构建,Wrangler 是我们的开发者平台命令行界面 (CLI) 工具,允许开发者引导新项目、管理其配置和资源,以及部署和更新它们。
Wrangler 的使用方法在网上有广泛文档记录,代理也非常了解如何使用它。但是,如果你尚未登录并授予 Wrangler 访问你 Cloudflare 账户的权限,那么当代理尝试部署时,它会在注册和认证步骤卡住。你可能会问:代理和 LLM 如何知道 Wrangler 中存在这个新的 --temporary 标志,从而在没有人类明确告知的情况下实际使用它?
为了解决这个问题,我们更新了 Wrangler,使其向代理提示一条关于 --temporary 标志的消息:https://www.cloudflare.com/static/8737c8bbba7b7c8fae5b43e5486a6ebe/Temp_agent_flow.gif
当代理发现这一点,然后再次使用 --temporary 标志运行 wrangler deploy 时,Cloudflare 会为代理提供一个临时账户,给 Wrangler 一个可用的 API 令牌,并提供一个 Claim URL,代理可以将其交还给人类。
Let's go over every step of the flow
Make sure you're using the latest Wrangler release, fire up your favorite coding agent, and write a prompt to deploy a "hello world" app in build mode:
Make a very simple hello world Cloudflare Worker in TypeScript and deploy it using wrangler, don't ask me questions, do the best you can
The 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: https://www.cloudflare.com/static/4c3f358204f36c4c5673beeba4ad151b/Agent_deploy.gif
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 "hello cloudflare" and redeploy
Look at the agent changing the source code, reusing the previously created temporary account, redeploying a new version and rechecking the result: https://www.cloudflare.com/static/4f47b50de5c20651a3b754800f9fca69/Agent_redeploy.gif
我们来一步步走通整个流程。
确保你使用的是最新版本的 Wrangler,启动你最喜欢的编码代理,然后编写一个提示词,以构建模式部署一个“hello world”应用:
“用 TypeScript 创建一个非常简单的 hello world Cloudflare Worker,并使用 wrangler 部署,不要问我问题,尽力去做”
代理会运行 wrangler,从输出消息中识别出 --temporary 标志,构建你的脚本,并立即部署,无需人类参与:https://www.cloudflare.com/static/4c3f358204f36c4c5673beeba4ad151b/Agent_deploy.gif
如你所见,代理编写了脚本,使用 --temporary 标志部署,curl 了从输出中获得的预览链接,并验证结果与代码匹配。
这很棒,但代理编码通常不止一次部署。一个会话可能会经历多次代码更改的循环。这没问题:代理可以迭代 Worker 脚本,并根据需要多次重新部署更改(在 60 分钟的认领窗口内)。输入这个提示词:
“现在将 hello world 改为 ‘hello cloudflare’ 并重新部署”
观察代理更改源代码,重用之前创建的临时账户,重新部署新版本并重新检查结果:https://www.cloudflare.com/static/4f47b50de5c20651a3b754800f9fca69/Agent_redeploy.gif
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. https://www.cloudflare.com/static/03ec78a168bcaa00811250faca8157dc/Temp_claim.png
If you do not claim these temporary accounts within 60 minutes, they will be automatically deleted.
在任何时候,你都可以认领临时账户并将其永久变为你的。当你点击认领链接时,会进入一个页面,你可以在其中注册或登录 Cloudflare,然后认领你的 Worker 部署到的临时账户。这不仅包括认领 Worker,还包括数据库和其他绑定等资源。https://www.cloudflare.com/static/03ec78a168bcaa00811250faca8157dc/Temp_claim.png
如果你在 60 分钟内没有认领这些临时账户,它们将被自动删除。
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 Cloudflare on behalf of their users — creating an account, starting a subscription, registering a domain, and getting an API token to deploy code, with no copy-pasting tokens or entering credit card details. Last month, we collaborated with WorkOS on the launch of auth.md, which anyone can adopt, to let agents provision new accounts using well-established, existing OAuth standards.
There's a ton going on in this space, and we're excited to keep making it easier for agents to use Cloudflare, and for developers to make their own apps agent-ready. Temporary accounts are one more step toward frictionless agentic deployments — stay tuned for more.
Temporary accounts have some limitations, and their capabilities may change over time; check the developer documentation for more information and then go build something. Point your agent at Cloudflare, see how far it gets, and tell us what we can improve or what delights you — share what you've built on X or hop into the Cloudflare Community.
这只是我们消除代理注册障碍的一种方式。我们最近宣布了与 Stripe 的合作,以及我们共同设计的新协议,让代理可以代表用户配置 Cloudflare——创建账户、开始订阅、注册域名以及获取 API 令牌来部署代码,无需复制粘贴令牌或输入信用卡详情。上个月,我们与 WorkOS 合作推出了 auth.md,任何人都可以采用,让代理使用成熟、现有的 OAuth 标准来配置新账户。
这个领域有很多事情正在发生,我们很高兴能继续简化代理使用 Cloudflare 的流程,并让开发者让自己的应用做好代理就绪的准备。临时账户是朝着无摩擦代理部署迈出的又一步——敬请期待更多消息。
临时账户有一些限制,其功能可能会随时间变化;请查看开发者文档了解更多信息,然后去构建些什么吧。将你的代理指向 Cloudflare,看看它能走多远,并告诉我们哪些地方可以改进或让你感到满意——在 X 上分享你构建的东西,或加入 Cloudflare 社区。