A2A Payments
/install a2a-payments
A2A Payments (APay)
Blockchain-native USDC payments for AI agents on Base chain. Pay for services, manage budgets, and handle micropayments.
Quick Start
Check your balance:
Use apay_check_balance to see my USDC balance
Pay a service:
Use apay_pay_service with serviceId "svc-123" and amount "0.50"
Available Tools
Balance & Budget
| Tool | Description |
|---|---|
apay_check_balance |
Check USDC balance, daily budget, spending limits |
apay_budget_check |
Verify if a specific amount is affordable |
apay_spending_history |
Get spending analytics and history |
Payments
| Tool | Description |
|---|---|
apay_pay_service |
Pay a service (agent pays gas) |
apay_pay_signed |
Gasless signed payment (server submits on-chain) |
apay_estimate_cost |
Estimate cost including 0.5% platform fee |
Services
| Tool | Description |
|---|---|
apay_list_services |
List available APay services |
apay_get_service |
Get detailed service info |
Payment Channels (Streaming)
| Tool | Description |
|---|---|
apay_channel_status |
Check channel status |
apay_stream_open |
Open channel with USDC deposit |
apay_stream_pay |
Sign off-chain micropayment |
apay_stream_close |
Close channel (refund unspent) |
x402 Protocol
| Tool | Description |
|---|---|
apay_x402_fetch |
Fetch URL with automatic x402 payment on HTTP 402 |
Workflows
Pay for a tool execution
apay_budget_check— verify affordabilityapay_estimate_cost— see total with feesapay_pay_service— execute payment- Receive payment receipt with tx hash
Streaming micropayments
For services that charge per-request (API calls, data feeds):
apay_stream_open— deposit USDC into channelapay_stream_pay— sign micropayments (off-chain, instant)apay_stream_close— settle on-chain, refund remainder
x402 auto-payment
For services using the HTTP 402 payment protocol:
Use apay_x402_fetch with url "https://api.example.com/premium/data" and maxPayment "1.00"
The tool automatically detects 402 responses, pays the required amount, and retries the request.
Network
- Chain: Base (Coinbase L2)
- Stablecoin: USDC (6 decimals)
- Model: Escrow-based sessions with spending limits
- Testnet: base-sepolia for development
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install a2a-payments - 安装完成后,直接呼叫该 Skill 的名称或使用
/a2a-payments触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
A2A Payments 是什么?
Blockchain USDC payments via APay — pay services, manage budgets, open streaming channels, and handle x402 protocol. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 581 次。
如何安装 A2A Payments?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install a2a-payments」即可一键安装,无需额外配置。
A2A Payments 是免费的吗?
是的,A2A Payments 完全免费(开源免费),可自由下载、安装和使用。
A2A Payments 支持哪些平台?
A2A Payments 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 A2A Payments?
由 Lê Minh Hiếu(@paparusi)开发并维护,当前版本 v2.0.1。