PRODUCT
Starting today, agents can now be Cloudflare customers. They can create a Cloudflare account, start a paid subscription, register a domain, and get back an API token to deploy code right away.
刚刚的消息,Cloudflare 联合 Stripe 发布了一份新协议,Agent 现在可以独立成为 Cloudflare 的客户。它能自己创建账户、订阅付费方案、注册域名、拿到 API token,然后直接部署代码
在整个过程中,不需要人类去 dashboard 复制粘贴 token,也不需要人类录入信用卡
官方原文:blog.cloudflare.com/agents-stripe-projects/

还给发了个 Twitter
长话短说,三个要点:
→ Agent 拿到了「账户 + 支付方式 + API token」三件套
→ 协议三要素是 Discovery / Authorization / Payment,全部基于 OAuth 和支付 token 化等已有标准重新组合
→ Stripe 在协议里担任 Orchestrator 角色,但这个角色是开放的,任何有登录用户的平台都能复制
过去要把代码部署到生产环境,需要自己跑去注册云账户、绑信用卡、生成 API token。Agent 在旁边只能借用人类已经准备好的东西。而今天开始,三件套 Agent 自己就能完成
Coding agents are great at building software. But to deploy to production they need three things from the cloud — an account, a way to pay, and an API token. Until now these have been tasks that humans handle directly.
Agent 擅长写代码,但要部署到生产环境需要三样东西:账户、支付方式、API token。这三样过去是人类自己处理的
账户由 Cloudflare 自动创建,支付走 Stripe 的 token 通道,API token 创建完账户后直接发回 Agent 手里
为了让大家更好的理解过程,Cloudflare 配了一段两分钟的演示视频:Agent 自己把账户、域名、部署都搞定,无需人工:
第一步,开发者在本地装上 Stripe CLI 加 Stripe Projects 插件,登录 Stripe 账号,跑一句 stripe projects init 启动新项目
第二步,让 Agent 去构建一个新应用。Agent 自己调 stripe projects catalog 命令查询有哪些云服务可用,挑中 Cloudflare 后调 stripe projects add cloudflare/registrar:domain 开始走流程
第三步,如果开发者邮箱在 Cloudflare 里没有现成账户,Cloudflare 自动给他和他的 Agent 各创建一个账户。如果有现成账户,走标准 OAuth 授权流程。Agent 拿到凭证后就开始部署应用、注册域名

Agent 自己调个钟东西
从零账户到生产环境上线,Agent 只用了 2 分钟
Cloudflare 和 Stripe 共同设计了这套协议。三块拼起来支撑 Agent 自己开户付钱:Discovery 找服务、Authorization 拿账户、Payment 走付费
Discovery:Agent 通过命令查询可用的云服务目录,目录是 JSON 格式,每个云服务厂商提供自己的 catalog endpoint。Agent 根据用户需求和偏好从目录里挑服务,用户不需要预先告诉 Agent 该用谁
Authorization:Stripe 充当身份提供方,告诉 Cloudflare 这个用户是谁。Cloudflare 自动给新用户开账户,或者让老用户走 OAuth 把现有账户授权给 Agent。凭证回传给 Stripe Projects CLI 安全保管,Agent 拿来发认证请求
Payment:Stripe 给 Cloudflare 一个支付 token,Cloudflare 用这个 token 计费。原始信用卡号从来不会暴露给 Agent
每一块都建立在 OAuth、OIDC、支付 token 化这些早就有的标准之上。这套协议没有任何技术原创,全是已有标准的重新组合,Cloudflare 在博客里写:
These build on prior art and existing standards like OAuth, OIDC and payment tokenization — but are used together to remove steps that might otherwise require a human in the loop.
意思是这些标准都不新,但组合起来用就把人类介入的步骤移除了
让 Agent 自己付钱,最容易想到的担心是失控刷卡,比如一口气买几十个域名把账单刷爆。协议在两个层面做了处理:原始信用卡信息从来不传给 Agent,Stripe 默认每月给每个 provider 设了 100 美元上限
Stripe sets a default limit of $100.00 USD/month as the maximum the agent can spend on any one provider.
Stripe 默认每月每个 provider 100 美元的支出上限
支付走的是一次性 token,Agent 永远拿不到原始卡号。每月 100 美元的上限可以调高,开发者准备好放手时,去 Cloudflare 后台开 Budget Alerts 自定义预算告警阈值
Stripe 在协议里的位置叫 Orchestrator,意思是协议的协调者。它负责证明用户身份、传递支付 token、串联各家云服务厂商
这个角色是开放的。Cloudflare 在博客里这样写:
Any platform with signed-in users can act as the "Orchestrator", playing the same role Stripe does with Stripe Projects, and integrate with Cloudflare in the same way.
任何有登录用户的平台都能担任 Orchestrator,跟 Stripe 一样接入 Cloudflare
意思是 IDE、Agent 工具、开发者社区都在覆盖范围内。只要平台已经有用户登录态,就能在自己的产品里嵌入这套流程
Cloudflare 自己也举了反向的例子。它跟 PlanetScale 合作让用户在 Cloudflare 后台直接开 Postgres 数据库,这次 Cloudflare 自己当 Orchestrator,PlanetScale 当 provider。同一套协议两个方向都能跑
Stripe Projects 已经可用的了(虽然协议还没弄完),配套扶持也同步上线,开发者今天就能拿来用
1.Stripe Projects 还在 open beta 阶段
装上 Stripe CLI 加 Projects 插件就能跑通整套流程,不需要 Cloudflare 那边的提前授权
2.Stripe Atlas Perks 给新创公司 10 万美元 Cloudflare credits
条件是用 Stripe Atlas 注册公司主体。Stripe Atlas 是 Stripe 给海外创业者做公司注册的服务,过去几年帮上千家公司开了美国主体
3.Cloudflare 在博客里说会跟 Stripe 一起发布更正式的协议规范
这套协议还在演进。Provider 接入需要做的三件事是 catalog endpoint 返回 JSON、接 OAuth 走身份、接 Stripe 支付 token 计费
4.任何有登录用户的平台都能担任 Orchestrator 角色
也就是 Stripe 在 Stripe Projects 里的那个位置,把自家用户对接到 Cloudflare 或其他 provider
→ Cloudflare 官方博客:blog.cloudflare.com/agents-stripe-projects/
→ Stripe Projects:projects.dev/
→ Stripe Atlas Perks:support.stripe.com/questions/stripe-atlas-perks-partners
文章来自于微信公众号 "赛博禅心",作者 "赛博禅心"
【开源免费】AutoGPT是一个允许用户创建和运行智能体的(AI Agents)项目。用户创建的智能体能够自动执行各种任务,从而让AI有步骤的去解决实际问题。
项目地址:https://github.com/Significant-Gravitas/AutoGPT
【开源免费】MetaGPT是一个“软件开发公司”的智能体项目,只需要输入一句话的老板需求,MetaGPT即可输出用户故事 / 竞品分析 / 需求 / 数据结构 / APIs / 文件等软件开发的相关内容。MetaGPT内置了各种AI角色,包括产品经理 / 架构师 / 项目经理 / 工程师,MetaGPT提供了一个精心调配的软件公司研发全过程的SOP。
项目地址:https://github.com/geekan/MetaGPT/blob/main/docs/README_CN.md