{"slug":"x402","name":"Coinbase x402","owner":null,"repo":null,"category":"payments-billing","lang":"","blurb":"Open HTTP-native payment protocol that revives the '402 Payment Required' status code — agents and apps pay per API call in stablecoins with no account or login.","use_cases":"[]","alternatives":[],"stars":0,"pushed_at":null,"synced_at":null,"kind":"api","one_liner":"Open HTTP-native payment protocol that revives the '402 Payment Required' status code — agents and apps pay per API call in stablecoins with no account or login.","website":"https://x402.org","docs_url":"https://docs.cdp.coinbase.com/x402/welcome","signup_url":"","pricing_model":"open-source","pricing_note":"Zero protocol fee; pay-per-call in USDC on Base/Solana/etc. Coinbase's hosted CDP facilitator has a free tier of 1,000 tx/mo. ~$600M annualized volume by early 2026","auth_type":"none","agent_signup":"programmatic-api","agent_signup_note":"The most agent-native option: NO account, session, or human needed — an agent pays with a crypto wallet signature over HTTP headers. An optional CDP API key is only needed for Coinbase's hosted facilitator.","mcp_server":"","sdks":["TypeScript","Python","Go"],"code_sample":"{\"lang\":\"typescript\",\"code\":\"// SELLER: require payment on a route (Express)\\nimport { paymentMiddleware } from \\\"x402-express\\\";\\napp.use(paymentMiddleware(payTo, {\\n  \\\"GET /weather\\\": { price: \\\"$0.001\\\", network: \\\"base\\\" },\\n}));\\n\\n// BUYER (agent): pay automatically from a wallet — no account\\nimport { wrapFetchWithPayment } from \\\"x402-fetch\\\";\\nconst fetchWithPay = wrapFetchWithPayment(fetch, account);\\nconst res = await fetchWithPay(\\\"https://api.example.com/weather\\\");\"}","tags":["agent-payments","protocol","http-402","stablecoin","usdc","pay-per-call","micropayments","open-source"],"useCases":[],"codeSample":{"lang":"typescript","code":"// SELLER: require payment on a route (Express)\nimport { paymentMiddleware } from \"x402-express\";\napp.use(paymentMiddleware(payTo, {\n  \"GET /weather\": { price: \"$0.001\", network: \"base\" },\n}));\n\n// BUYER (agent): pay automatically from a wallet — no account\nimport { wrapFetchWithPayment } from \"x402-fetch\";\nconst fetchWithPay = wrapFetchWithPayment(fetch, account);\nconst res = await fetchWithPay(\"https://api.example.com/weather\");"},"oneLiner":"Open HTTP-native payment protocol that revives the '402 Payment Required' status code — agents and apps pay per API call in stablecoins with no account or login.","docsUrl":"https://docs.cdp.coinbase.com/x402/welcome","signupUrl":"","pricingModel":"open-source","pricingNote":"Zero protocol fee; pay-per-call in USDC on Base/Solana/etc. Coinbase's hosted CDP facilitator has a free tier of 1,000 tx/mo. ~$600M annualized volume by early 2026","authType":"none","agentSignup":"programmatic-api","agentSignupNote":"The most agent-native option: NO account, session, or human needed — an agent pays with a crypto wallet signature over HTTP headers. An optional CDP API key is only needed for Coinbase's hosted facilitator.","mcpServer":""}