Tool Open source

x402

x402 is an open standard and protocol for internet-native payments over HTTP. It lets resource servers declare payment requirements for endpoints through middleware, while clients and payment facilitators handle payment schemes without requiring the server to manage details such as gas or RPC access. The protocol is designed to support multiple networks, tokens, currencies, signing standards, and payment schemes, including crypto and potentially fiat-based systems.

View repository Visit site Mentioned in 6 videos ↓

Overview

Reference SDKs and integrations are available for TypeScript, Python, and Go, with adapters for frameworks and clients including Express, Fastify, Fetch, Hono, Next.js, and Axios. The project is intended to be openly accessible, backward-compatible where possible, and trust-minimizing: facilitators and resource servers should not move funds beyond the client's stated intentions.

What x402 is used for

5 uses taken from transcripts — each links to the moment in the video.

  • Agent payment protocol (by Coinbase): handles 402-based on-chain payments, exact payments and batch settlement for pay-per-use billing

  • Coinbase's open standard for internet-native payments, built on the long-unused HTTP 402 'payment required' status code and stablecoins, enabling machine-to-machine commerce and microtransactions. Now handling hundreds of millions of agent transactions per month, with adopters including PayPal, Visa, Mastercard, Stripe, AWS and Cloudflare.

  • Protocol letting AI agents pay for APIs and data with micropayments over HTTP using the 402 status code, with buyer, seller, facilitator and chain roles

  • Coinbase's internet-native payment standard, now externalized into its own foundation co-run by Cloudflare, Stripe, Amex, Mastercard and Visa. Lets agents pay for APIs and services with crypto microtransactions, and has seen roughly 100 million on-chain agentic transactions in the past year.

  • Payments standard for the agent ecosystem

    unverified AI Engineer

Videos mentioning x402

6 in the library.