Cloudflare 为 AI 智能体推出临时账户
TL;DR · AI 摘要
Cloudflare 推出临时账户功能,让 AI 智能体无需注册即可部署代码,提升开发效率。
核心要点
- AI 智能体可通过 wrangler deploy --temporary 命令部署代码,无需注册。
- 临时账户有效期为 60 分钟,可被用户认领转为永久账户。
- Cloudflare 通过 Wrangler 工具实现临时账户的自动创建与管理。
结构提纲
按章节快速跳转。
- §引言
AI 智能体在部署时面临诸多人为操作障碍,Cloudflare 推出临时账户解决此问题。
AI 智能体可通过 wrangler deploy --temporary 命令部署代码,无需注册。
临时账户有效期为 60 分钟,用户可在有效期内认领转为永久账户。
无摩擦部署使 AI 智能体能够快速迭代,提升开发效率和用户体验。
背景 AI 会话无需人类干预,任何需要浏览器或复制粘贴的认证步骤都会导致智能体卡顿。
Cloudflare 通过 Wrangler 工具实现临时账户的自动创建与管理。
思维导图
用一张图看清主题之间的关系。
查看大纲文本(无障碍 / 无 JS 友好)
- Cloudflare 临时账户功能
- 功能概述
- 无需注册即可部署
- 临时账户有效期 60 分钟
- 实现方式
- 通过 Wrangler 工具实现
- 自动创建与管理
- 优势
- 提升 AI 智能体部署效率
- 支持快速迭代
金句 / Highlights
值得收藏与分享的关键句。
临时账户有效期为 60 分钟,用户可在有效期内认领转为永久账户。
AI 智能体可通过 wrangler deploy --temporary 命令部署代码,无需注册。
背景 AI 会话无需人类干预,任何需要浏览器或复制粘贴的认证步骤都会导致智能体卡顿。
Temporary Cloudflare Accounts for AI agents
2026-06-19
- Sid Chatterjee
- Celso Martinho
- Brendan Irvine-Broque
4 min read
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.
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.
Why frictionless deployments matter for AI agents
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.
How it works
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:
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.
Letâs go over every step of the flow
Deploying and iterating on a new project
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:
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:
Claiming the account
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.
If you do not claim these temporary accounts within 60 minutes, they will be automatically deleted.
The road to frictionless agentic deploymentsÂ
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 .
[if astro]>server-island-start<![endif]
Agents
Wrangler
AI
Cloudflare Workers