x402: Why AI agents may soon need their own wallets

Imagine asking an AI assistant to research a company, compare its financial performance with rivals and prepare an investment report, only to discover that it needs to pay for access to several databases along the way.

This is where x402 comes in, an emerging payment protocol designed to allow artificial intelligence (AI) agents to purchase online services, data and computing resources without requiring human intervention for every transaction.

Developed by Coinbase and introduced in May 2025, x402 gives a practical purpose to HTTP 402, the little-used internet status code that has long stood for ‘Payment Required’.

The protocol allows a website or service to respond to an unpaid request with a 402 message specifying the price and payment requirements, which an AI agent can then process.

The agent authorizes the payment, typically using USDC, a cryptocurrency designed to maintain a stable value against the US dollar, and a payment facilitator verifies and processes the transaction.

Once payment is confirmed, the service delivers the requested information, allowing the agent to continue its task without opening an account, obtaining an API key or navigating a conventional checkout page.

The technology is gaining commercial traction, with Brave Search making its API available through x402 in November 2026, charging $0.005 per search request.

Coinbase has also partnered with Amazon Web Services to help website publishers and API providers accept payments from AI agents, potentially creating a new revenue stream from automated internet traffic.

The initiative has attracted support from more than 50 organizations, including Visa, Mastercard and Google, which are involved in the x402 Foundation operating under the Linux Foundation.

However, the technology raises important questions about financial control, security and accountability, particularly when autonomous agents can spend money without seeking approval for every individual transaction.

Developers will need safeguards such as spending limits, authorized payment destinations and monitoring systems to prevent agents from making unintended purchases or falling victim to fraudulent services.

Why it matters: x402 could help create an internet economy in which AI agents become customers in their own right, purchasing information and services whenever their tasks require them, potentially changing how online businesses charge for content and access.