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 聯(lián)合 Stripe 發(fā)布了一份新協(xié)議,Agent 現(xiàn)在可以獨(dú)立成為 Cloudflare 的客戶。它能自己創(chuàng)建賬戶、訂閱付費(fèi)方案、注冊(cè)域名、拿到 API token,然后直接部署代碼
在整個(gè)過程中,不需要人類去 dashboard 復(fù)制粘貼 token,也不需要人類錄入信用卡
官方原文:blog.cloudflare.com/agents-stripe-projects/
![]()
還給發(fā)了個(gè) Twitter
長(zhǎng)話短說,三個(gè)要點(diǎn):
→ Agent 拿到了「賬戶 + 支付方式 + API token」三件套
→ 協(xié)議三要素是 Discovery / Authorization / Payment,全部基于 OAuth 和支付 token 化等已有標(biāo)準(zhǔn)重新組合
→ Stripe 在協(xié)議里擔(dān)任 Orchestrator 角色,但這個(gè)角色是開放的,任何有登錄用戶的平臺(tái)都能復(fù)制
Agent 拿到三件套
過去要把代碼部署到生產(chǎn)環(huán)境,需要自己跑去注冊(cè)云賬戶、綁信用卡、生成 API token。Agent 在旁邊只能借用人類已經(jīng)準(zhǔn)備好的東西。而今天開始,三件套 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 擅長(zhǎng)寫代碼,但要部署到生產(chǎn)環(huán)境需要三樣?xùn)|西:賬戶、支付方式、API token。這三樣過去是人類自己處理的
賬戶由 Cloudflare 自動(dòng)創(chuàng)建,支付走 Stripe 的 token 通道,API token 創(chuàng)建完賬戶后直接發(fā)回 Agent 手里
三步從零到部署
為了讓大家更好的理解過程,Cloudflare 配了一段兩分鐘的演示視頻:Agent 自己把賬戶、域名、部署都搞定,無需人工:
第一步,開發(fā)者在本地裝上 Stripe CLI 加 Stripe Projects 插件,登錄 Stripe 賬號(hào),跑一句 stripe projects init 啟動(dòng)新項(xiàng)目
第二步,讓 Agent 去構(gòu)建一個(gè)新應(yīng)用。Agent 自己調(diào) stripe projects catalog 命令查詢有哪些云服務(wù)可用,挑中 Cloudflare 后調(diào) stripe projects add cloudflare/registrar:domain 開始走流程
第三步,如果開發(fā)者郵箱在 Cloudflare 里沒有現(xiàn)成賬戶,Cloudflare 自動(dòng)給他和他的 Agent 各創(chuàng)建一個(gè)賬戶。如果有現(xiàn)成賬戶,走標(biāo)準(zhǔn) OAuth 授權(quán)流程。Agent 拿到憑證后就開始部署應(yīng)用、注冊(cè)域名
Agent 自己調(diào)個(gè)鐘東西
從零賬戶到生產(chǎn)環(huán)境上線,Agent 只用了 2 分鐘
協(xié)議長(zhǎng)什么樣
Cloudflare 和 Stripe 共同設(shè)計(jì)了這套協(xié)議。三塊拼起來支撐 Agent 自己開戶付錢:Discovery 找服務(wù)、Authorization 拿賬戶、Payment 走付費(fèi)
Discovery:Agent 通過命令查詢可用的云服務(wù)目錄,目錄是 JSON 格式,每個(gè)云服務(wù)廠商提供自己的 catalog endpoint。Agent 根據(jù)用戶需求和偏好從目錄里挑服務(wù),用戶不需要預(yù)先告訴 Agent 該用誰
Authorization:Stripe 充當(dāng)身份提供方,告訴 Cloudflare 這個(gè)用戶是誰。Cloudflare 自動(dòng)給新用戶開賬戶,或者讓老用戶走 OAuth 把現(xiàn)有賬戶授權(quán)給 Agent。憑證回傳給 Stripe Projects CLI 安全保管,Agent 拿來發(fā)認(rèn)證請(qǐng)求
Payment:Stripe 給 Cloudflare 一個(gè)支付 token,Cloudflare 用這個(gè) token 計(jì)費(fèi)。原始信用卡號(hào)從來不會(huì)暴露給 Agent
每一塊都建立在 OAuth、OIDC、支付 token 化這些早就有的標(biāo)準(zhǔn)之上。這套協(xié)議沒有任何技術(shù)原創(chuàng),全是已有標(biāo)準(zhǔn)的重新組合,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.
意思是這些標(biāo)準(zhǔn)都不新,但組合起來用就把人類介入的步驟移除了
100 美元上限
讓 Agent 自己付錢,最容易想到的擔(dān)心是失控刷卡,比如一口氣買幾十個(gè)域名把賬單刷爆。協(xié)議在兩個(gè)層面做了處理:原始信用卡信息從來不傳給 Agent,Stripe 默認(rèn)每月給每個(gè) provider 設(shè)了 100 美元上限
Stripe sets a default limit of $100.00 USD/month as the maximum the agent can spend on any one provider.
Stripe 默認(rèn)每月每個(gè) provider 100 美元的支出上限
支付走的是一次性 token,Agent 永遠(yuǎn)拿不到原始卡號(hào)。每月 100 美元的上限可以調(diào)高,開發(fā)者準(zhǔn)備好放手時(shí),去 Cloudflare 后臺(tái)開 Budget Alerts 自定義預(yù)算告警閾值
Stripe 角色可復(fù)制
Stripe 在協(xié)議里的位置叫 Orchestrator,意思是協(xié)議的協(xié)調(diào)者。它負(fù)責(zé)證明用戶身份、傳遞支付 token、串聯(lián)各家云服務(wù)廠商
這個(gè)角色是開放的。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.
任何有登錄用戶的平臺(tái)都能擔(dān)任 Orchestrator,跟 Stripe 一樣接入 Cloudflare
意思是 IDE、Agent 工具、開發(fā)者社區(qū)都在覆蓋范圍內(nèi)。只要平臺(tái)已經(jīng)有用戶登錄態(tài),就能在自己的產(chǎn)品里嵌入這套流程
Cloudflare 自己也舉了反向的例子。它跟 PlanetScale 合作讓用戶在 Cloudflare 后臺(tái)直接開 Postgres 數(shù)據(jù)庫(kù),這次 Cloudflare 自己當(dāng) Orchestrator,PlanetScale 當(dāng) provider。同一套協(xié)議兩個(gè)方向都能跑
幾個(gè)跟進(jìn)的點(diǎn)
Stripe Projects 已經(jīng)可用的了(雖然協(xié)議還沒弄完),配套扶持也同步上線,開發(fā)者今天就能拿來用
1.Stripe Projects 還在 open beta 階段
裝上 Stripe CLI 加 Projects 插件就能跑通整套流程,不需要 Cloudflare 那邊的提前授權(quán)
2.Stripe Atlas Perks 給新創(chuàng)公司 10 萬美元 Cloudflare credits
條件是用 Stripe Atlas 注冊(cè)公司主體。Stripe Atlas 是 Stripe 給海外創(chuàng)業(yè)者做公司注冊(cè)的服務(wù),過去幾年幫上千家公司開了美國(guó)主體
3.Cloudflare 在博客里說會(huì)跟 Stripe 一起發(fā)布更正式的協(xié)議規(guī)范
這套協(xié)議還在演進(jìn)。Provider 接入需要做的三件事是 catalog endpoint 返回 JSON、接 OAuth 走身份、接 Stripe 支付 token 計(jì)費(fèi)
4.任何有登錄用戶的平臺(tái)都能擔(dān)任 Orchestrator 角色
也就是 Stripe 在 Stripe Projects 里的那個(gè)位置,把自家用戶對(duì)接到 Cloudflare 或其他 provider
參考材料
→ Cloudflare 官方博客:blog.cloudflare.com/agents-stripe-projects/
→ Stripe Projects:projects.dev/
→ Stripe Atlas Perks:support.stripe.com/questions/stripe-atlas-perks-partners
特別聲明:以上內(nèi)容(如有圖片或視頻亦包括在內(nèi))為自媒體平臺(tái)“網(wǎng)易號(hào)”用戶上傳并發(fā)布,本平臺(tái)僅提供信息存儲(chǔ)服務(wù)。
Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services.