x402 API Payments with Coinbase AgentKit (2026 Guide)
x402 API payments with Coinbase AgentKit: set CDP keys, fund a Base Sepolia wallet, and pay per call with CdpX402Client and wrapFetchWithPayment. Node 22+.
x402 API payments with Coinbase AgentKit: set CDP keys, fund a Base Sepolia wallet, and pay per call with CdpX402Client and wrapFetchWithPayment. Node 22+.
Accept Stripe x402 USDC from AI agents: HTTP 402 + Base deposit address, CDP facilitator settle, PaymentIntent transaction_verification; docs example $0.01/request; US except NY.
Create a Skyfire kya-pay JWT via POST /api/v1/tokens (example $0.005 USDC commit on Base); onboarded sellers 24h expiry, external kya-only 5m.
Make a Circle Agent Nanopayment by depositing USDC into a Gateway balance, then paying an x402 service via Circle CLI (gasless down to $0.000001; same-chain free, crosschain Gateway fee 0.5 bps).
How to choose an x402 facilitator for USDC: compare Coinbase CDP with self-verification on gas sponsorship, KYT screening, fees and supported networks.
Price an x402 API in USDC with exact, upto or batch settlement, and size each ticket against the CDP Facilitator fee past the free tier so margin survives.
Accept x402 USDC from AI agents: return HTTP 402 with priced accepts, settle Circle native USDC on Base via the CDP facilitator, then reconcile each hash.
Test an AI agent USDC payment end-to-end before mainnet spend: inspect the x402 challenge, dry-run with --estimate, confirm policy and allowlist, then send one tiny live payment and reconcile it.
Fund an AI agent wallet with native Circle USDC on the same chain as the policy-controlled address — after the spend policy is written, before the agent spends.
Revoke is the cut-off after an AI agent is live: disable the transfer policy or spend permission, rotate or destroy the signing credential, and confirm no further native USDC can leave.
A signed USDC transfer is not proof the agent was allowed to spend. This 2026 KYA checklist shows what to verify before you accept an x402 or agent-wallet payment: the principal, the mandate, the spend envelope, and the official USDC contract.
Write the USDC spend policy on the agent wallet before you fund it, then enforce per-transaction and rolling-window caps at signing time, outside the model. This 2026 guide covers Circle transfer limits, recipient allowlists, remaining budget, and the kill switch when a cap should fail closed.
An agent wallet is a prepaid USDC budget, not a treasury. After it starts paying x402 APIs, you still have to match each spend to a service, a cost center, and a human principal. This 2026 guide shows how to reconcile batched nanopayments when one on-chain hash is not one purchase.
Set up an AI agent wallet for USDC: a policy-controlled wallet, a budget, spend limits and a human principal, so the agent can pay x402 services safely.
Circle Agent Stack gives AI agents USDC wallets, a service marketplace and gas-free nanopayments down to $0.000001, launched with Q1 2026 earnings.
AI agent payments in 2026, compared across x402 and AP2. November figures come from Coinbase's x402 facilitator docs and Google's AP2 specification.