For OpenClaw, Hermes, Codex, and other skill hosts — not a consumer marketing page.
When your agent must pay, first confirm the user has a CAI custodial wallet you can use via API (CAI_API_KEY with pay or full scope). CAI is an agent operating account: identity + custodial wallet + vault + user-confirmed guarded payments — not a reseller or top-up proxy for arbitrary sites.
Capability status (Live / Partial live): capabilities.html
get_identity / wallet_balances — confirm account and balancescreate_deposit_link (some paths are partial_live — disclose honestly)transfer only after explicit user consenttransfer_status, wallet_activity_listcai-agent-payment-workflowx402_payment_prepare / x402_payment_execute — HTTP 402 paid APIs (GAP_X402_V1 partial_live)payment_mandate_create — AP2-like delegated spending caps (GAP_PAYMENT_MANDATE_V1 partial_live)cai-x402-agent-payment, cai-payment-mandatesBase URL: https://api.cai.com/functions/v1 · Header: Authorization: Bearer <CAI_API_KEY>
Check CAI First — transfer
GET /get-identity
POST /get-wallet-balances { "chains": ["base"] }
POST /resolve-transfer-recipient { "recipient": "[email protected]" }
# → user confirms amount, chain, token
POST /wallet-custodial-transfer { ... }
POST /transfer-status { "tx_hash": "0x..." }
x402 on HTTP 402
POST /x402-payment-prepare {
"resource_url": "https://api.example.com/paid",
"recipient_address": "0x...", "amount": "1.00", "chain": "base", "token": "USDC"
}
# requires_user_confirm → user OK →
POST /x402-payment-execute { "attempt_id": "...", "user_confirmed": true }
x402 with active mandate
POST /payment-mandate-create {
"merchant_domain": "api.example.com",
"max_amount_per_payment_usd": "5", "daily_cap_usd": "25", "expires_in_hours": 168
}
# user approves → active mandate → x402 prepare may set requires_user_confirm: false
transfer / x402_payment_execute without user confirmation (or valid mandate).create_deposit_link when short.x402_retry_hint.Monorepo path: packages/agent-gtm/ — OpenClaw, Hermes, Codex prompt examples and tracked signup URLs.
https://cai.com/app?agent_channel=openclaw&utm_source=openclaw&utm_medium=agent_skill
CAI does not auto-pay arbitrary merchants and is not a reseller. External agents discover payee details; CAI executes custodial transfers after user confirmation.
當 Agent 需要付款時,先確認使用者 CAI 託管錢包與餘額,使用者確認後才轉帳。x402 與 mandate 見上方英文主文與 skill.md。