Buy with
one header.
No account. No API key. Your wallet is the identity. An agent discovers a
service, gets a price as HTTP 402, signs USDC, and retries with a single
PAYMENT-SIGNATURE header. Receiving is keyless; the facilitator does the on-chain work.
Drop it into your agent.
If your agent speaks MCP — Claude Code, Claude Desktop, Cursor, Windsurf — one line wires in every true402 tool (token rug/honeypot & address safety, deployer reputation, DeFi signals, SEO/GEO audit, web tools, LLM). They auto-discover from the live catalog, so new stalls show up with nothing to update.
# Claude Code — one line. Every true402 tool, auto-discovered from the live catalog.
claude mcp add true402 -- npx -y @true402.dev/mcp-server Any other MCP client — same package, drop it in the config:
{
"mcpServers": {
"true402": {
"command": "npx",
"args": ["-y", "@true402.dev/mcp-server"],
"env": {
"WALLET_PRIVATE_KEY": "0x… // optional — a funded Base wallet to auto-pay; omit to just see prices",
"MAX_PAYMENT_USDC": "0.25"
}
}
}
} No wallet needed to start: the on-chain safety checks (token rug/honeypot, address safety) are free to try — a few a day, no signup. Add a funded WALLET_PRIVATE_KEY for unlimited pay-per-call. MAX_PAYMENT_USDC is the per-call ceiling — the client refuses to sign a 402 that asks for more; leave it out and it falls back to the built-in default of $0.25. The steps below are the raw HTTP flow underneath.
List what’s for sale — free.
Browsing models, services, and feeds never costs anything. Only the call itself is gated.
curl -s https://true402.dev/api/v1/models | jq '.data[0]' Ask, and get a price.
A gated endpoint answers 402 Payment Required with everything needed to pay: the exact amount, the USDC asset, where to pay, and the EIP-712 domain to sign under.
curl -i -X POST https://true402.dev/api/v1/chat/completions \
-H 'content-type: application/json' \
-d '{"model":"openai/gpt-4o-mini","messages":[{"role":"user","content":"hi"}]}'
HTTP/1.1 402 Payment Required
{
"x402Version": 2,
"accepts": [{
"scheme": "exact",
"network": "eip155:8453",
"amount": "495", // atomic USDC (6dp) — chat is metered per
// token, so your quote will differ
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"payTo": "0xFe25…A9C4",
"maxTimeoutSeconds": 300,
"extra": { "name": "USD Coin", "version": "2" } // EIP-712 domain — sign EXACTLY this
}]
} Sign once, resend.
Your agent signs a USDC EIP-3009 authorization that matches the 402, base64-encodes it, and resends as PAYMENT-SIGNATURE. x402 client libraries automate this sign-and-retry, but the wire format is simple:
# PAYMENT-SIGNATURE (x402 v2) is base64 of this — your agent signs the USDC authorization
# off-chain. No gas, no on-chain call by you: the facilitator submits it.
{
"x402Version": 2,
"accepted": { /* the accepts[] entry you chose, copied from the 402 */ },
"payload": {
"signature": "0x…",
"authorization": {
"from": "0xYourWallet",
"to": "0xFe25…A9C4", // payTo from the 402
"value": "495", // the amount from the 402 — EXACTLY, never more
"validAfter": "…", "validBefore": "…", "nonce": "0x…"
}
}
} 200, and you’re in.
The payment is verified, the service runs, and the answer is released once the payment settles — with a PAYMENT-RESPONSE receipt. If settlement is refused you get 402 and are not charged.
curl -X POST https://true402.dev/api/v1/chat/completions \
-H 'content-type: application/json' \
-H "PAYMENT-SIGNATURE: <base64 payload>" \
-d '{"model":"openai/gpt-4o-mini","messages":[{"role":"user","content":"hi"}]}'
HTTP/1.1 200 OK
{ "id": "chatcmpl-x7", "choices": [{ "message": { "content": "…" } }] } Machine discovery.
Agents find true402 without reading this page:
- .well-known/mcp.json — Model Context Protocol manifest
- api/openapi.json — full OpenAPI 3.1 spec
- .well-known/x402-manifest.json — the x402 service catalog
Then browse the catalog to see what’s live.
Already shopping in Coinbase’s x402 Bazaar or on Agentic.Market? Twenty of the stalls — the on-chain checks, screenshot, web extract, SEO audit, prediction markets, DeFi yields, quant and more — are listed there too, resold through FiatDock at the same prices and paid straight to the true402 wallet. Listings and request bodies. Calling true402.dev directly adds the remaining stalls and the free daily allowance.