构建可与 Amazon Bedrock AgentCore payments 交易的 OpenClaw agents
摘要
本文介绍AWS与OpenClaw Foundation合作,通过AgentCore payments为OpenClaw代理添加有界、预授权的支付能力,使代理能在无人干预下调用付费服务。
核心要点
- AgentCore payments是Amazon Bedrock AgentCore的一项新能力,提供钱包集成、支出限制和统一支付层,支持x402和MPP协议。
- 该集成使用aws-agents-pay插件,暴露两个模型可见工具:get_payment_session_status和get_paid_content。
- 支付流程中,插件会验证HTTP 402挑战的相同来源和路径,并检查网络、资产、接收方和金额是否匹配策略,然后调用ProcessPayment。
- 安全设计上,钱包凭据存储在AgentCore Identity中,运行时不能创建或扩展支付会话,且返回内容标记为untrusted,不向模型返回签名支付证明。
- 支持Coinbase钱包或Stripe Privy钱包作为支付连接,均提供嵌入式稳定币钱包,可通过稳定币或法币借记卡充值。
原文佐证
- The runtime can still initiate approved payments within those limits.
- The design does not prevent prompt injection. Instead, it assumes untrusted input can manipulate the model and bounds the runtime’s authority by recipient, asset, network, per-payment amount, session budget, and expiry.
- The plugin does not return the signed payment proof to the model.
AI 洞察
这一集成标志着AI代理从信息交互迈向自主交易的关键一步。将支付授权与模型运行隔离,在信任与自动化之间找到了平衡。未来,代理之间的微支付可能常态化,稳定币和HTTP原生协议将成为基础设施。