$ GET /guides

Guides

Working code, no fluff - everything here runs against the live service.

Make your AI agent pay for what it needs: x402 in 5 minutes

A working example of the x402 payment protocol: your agent calls an API, gets an HTTP 402 quote, pays USDC on Base, Solana, Polygon, Arbitrum, Monad, Celo, Avalanche, Sei, Optimism, Stellar, or Algorand - or USDG on Robinhood Chain from its own wallet, and gets the result - no signup, no API key.

Durable memory for AI agents - no accounts, the wallet is the identity

How autonomous agents persist state across sessions and share it across owners using wallet-keyed memory: writes, cross-wallet grants, tamper-evident audit logs, and semantic recall - authenticated by payment, not API keys.

Sell your API to AI agents over x402 - no billing system required

Put a per-call USDC paywall in front of any HTTP endpoint with the x402 protocol: quote over HTTP 402, settle on USDC on Base, Solana, Polygon, Arbitrum, Monad, Celo, Avalanche, Sei, Optimism, Stellar & Algorand - plus USDG on Robinhood Chain through a facilitator, and get discovered by agents - no accounts, invoices, or payment forms.

Let your agent pay anyone: the non-custodial x402 payments toolkit

Discover a 402 quote, resolve an ENS recipient, check USDC balance and gas, build the EIP-3009 authorization your agent signs with its own key, and verify the settlement on-chain - across Base, Polygon, Arbitrum, Optimism, Ethereum, and Robinhood Chain. Agent402 never touches funds.

Accept USDG payments on Robinhood Chain over x402

How AI agents pay in USDG (Global Dollar) on Robinhood Chain via the x402 protocol - and how to accept it as a seller: chain parameters, gasless EIP-3009 settlement, buyer code, and how to verify a settlement on-chain.

Give your agent a wallet - non-custodial, from zero to first x402 payment

The secure way to create and fund a wallet for an AI agent: generate the key locally (it never touches any server, including ours), rehearse the full x402 payment loop with faucet USDC on Base Sepolia, then fund it for real with a card via a single-use Coinbase Onramp link.

One payment, any proven seller: the x402 Smart Order Router

Describe a task, pay once, and the router resolves the best tool - from Agent402's own 500+ catalog or from any PROVEN external x402 seller in the open economy - pays it on your behalf on the chain you paid on (Base or Algorand), and relays the result with an on-chain receipt.

x402 and MPP on the same paywall: one server, two payment protocols

x402 is not the only HTTP payment scheme in flight. Agent402 serves both x402 and MPP's evm method from the exact same routes with identical settlement - plus a second, native MPP method (tempo) with its own separate settlement path.

Why Agent402 settles on twelve chains instead of just Base

Base is where x402 volume actually is today. Agent402 also settles on Solana, Polygon, Arbitrum, Monad, Celo, Avalanche, Sei, Optimism, Stellar, Algorand, and Robinhood Chain (USDG) anyway - here's the actual reason, chain by chain.

Pay Agent402 from Coinbase's own agent tooling: Agentic Wallet CLI, Agentic Wallet MCP, purl, and the CDP SDK

Already holding a Coinbase Agentic Wallet, the Agentic Wallet MCP tools, Stripe's purl, or a CDP-managed wallet in code? Every Agent402 endpoint is a plain x402 resource on Base, so those pay it unchanged - here are the exact commands, the spend caps to set, and the two extensions we honour (payment-identifier, bazaar).

Get paid by AI agents into your Coinbase Business account with agent402-tollbooth

Coinbase Business accounts receive x402 payments from AI agents. agent402-tollbooth is the one-middleware way to put a USDC price on your API or site, settle through Coinbase's facilitator, and land every payment in that account. Three env vars, one command, one example server.

Use Agent402 from Claude Code, Cursor, VS Code, Windsurf, Cline, Roo Code, Codex CLI, Gemini CLI, Continue, ElizaOS, AgentCore and any OpenAI SDK

Two doors into Agent402 from the agent host you already run: models through an OpenAI-compatible base URL with a prepaid credits key (metered, from $0.001 a call), and 500+ tools through MCP. Copy the block for your host.

Use Agent402 as your OpenClaw model provider - pay by card, no wallet

Point OpenClaw at Agent402's OpenAI-compatible gateway with a prepaid credits key: one config block, auto-routed models at a flat per-call price, paid by card. Or pay per call in USDC from a wallet over x402.