Cloudflare and Coinbase Launch x402 Protocol to Enable AI-Powered Payments
The new project will let AI agents make instant online payments using stablecoins, transforming digital transactions worldwide.
Cloudflare and Coinbase have joined forces to create a new standard for online payments designed specifically for machines. The project, called the x402 Foundation, aims to make it possible for AI agents and automated systems to pay for web resources without human help.
The plan transforms the long-unused HTTP “402 Payment Required” code into a real payment system. Instead of returning an error when a machine tries to access restricted content, the server will now give it clear instructions for how to pay and get what it needs.
Coinbase CEO Brian Armstrong called the launch “a big step forward.” He said the system will allow AI agents to “transact value, not just exchange info,” opening the door to a new era of online commerce built for automation.
The launch comes at a time when both AI adoption and stablecoin usage are growing rapidly. It also follows Google’s recent announcement that it is working on similar systems for AI-powered payments using blockchain technology.
From Error Codes to Instant Payments
Today, websites send more than one billion HTTP 402 error codes every day. These errors happen when bots or automated agents try to access restricted content. Right now, nothing happens next because there is no standard way for machines to pay for what they want.
That is what the x402 protocol is meant to change. Instead of stopping at the error, websites will use a four-step process to complete the transaction automatically.
When an AI system requests access to a resource, the server responds with payment instructions. These include the price, the recipient, and any extra details needed for the transaction.
The AI agent then sends a payment authorization along with its request. A payment facilitator, such as Coinbase, verifies the payment and settles it. Once the payment is confirmed, the server delivers the requested data, service, or content.
This process takes place in seconds, with no human involvement. Cloudflare has already created a live demo called the x402 playground, where visitors can see testnet USDC on the Base blockchain being used to pay for computational tools.
Cloudflare is also proposing a deferred payment system for x402. Instead of paying for each request instantly, automated agents could receive a single bill at the end of the day. This would work better for systems that make thousands of requests, such as web crawlers or research bots.
The protocol will support multiple settlement methods. AI agents could use stablecoins for instant payments or rely on credit cards and bank accounts for delayed settlements. This flexibility means businesses can adopt x402 without changing all their existing systems at once.
The potential use cases are wide-ranging. An AI assistant could automatically buy Halloween costume accessories from several stores at the same time. Autonomous trading bots could pay for real-time market data feeds on a per-request basis rather than using monthly subscriptions.
AI tools running on cloud services could pay for computing power as they go instead of setting up fixed contracts. Google has expressed support for this direction as well.
James Tromans, who leads part of Google’s Web3 initiatives, said stablecoins represent “probably one of the most important payment upgrades since the SWIFT network,” referring to the global banking system for cross-border payments.
Stablecoins Power the New Payment System
The x402 protocol launch comes as stablecoin adoption is exploding worldwide. A report earlier this year showed that as of 2024, bots and automated agents already handle 70% of all stablecoin transfers.
Traditional payment systems like wire transfers and credit cards cannot handle the kind of transactions AI agents need. They are too slow, too expensive, or not designed for the tiny, frequent payments machines often make.
Stablecoins solve these problems. They offer digital money that settles in seconds, works across borders, and costs almost nothing to send.
The numbers show just how fast things are moving. The total stablecoin market grew from $4 billion in 2020 to more than $280 billion today. In the first half of 2025 alone, monthly settlement volumes hit $1.39 trillion. Major stablecoin issuers now rank 17th in the world for holdings of U.S. Treasury securities.
Sean Neville, co-founder of Circle, recently launched Catena Labs with $18 million in funding to build the first regulated financial institution designed for AI-powered payments. He called stablecoins “AI-native money” and said they are essential for systems where machines trade and transact automatically.
Companies are already testing real-world uses for x402. Amazon Web Services is exploring how the protocol could be used to pay for cloud computing services. Web3 storage provider Pinata is using it for pay-per-file access. AI research platform Heurist is testing it for buying computational resources as needed.
The growing use of stablecoins has also caught the attention of regulators. Some banking groups warn that large-scale adoption could pull trillions of dollars out of traditional bank deposits. One estimate put the number as high as $6.6 trillion if stablecoins keep expanding rapidly.
Coinbase Research, however, said most stablecoin activity takes place outside the United States. According to the company, this trend actually strengthens the role of the U.S. dollar in global finance rather than weakening it.
For now, the x402 playground on the Base network is showing how AI agents can pay for digital services automatically while still leaving free resources open to everyone.
Coinbase Brings Singapore Dollar Stablecoin to Global Markets
As part of its broader strategy, Coinbase has also partnered with StraitsX to launch the first Singapore Dollar-backed stablecoin, called XSGD. The token will be available on Coinbase and Coinbase Advanced starting September 29 at 19:00 UTC.
Tianwei Liu, CEO of StraitsX, said the launch is “a big step forward, not just for Singapore, but for the entire digital asset ecosystem.” He explained that making local currency stablecoins widely available helps break down the barriers created by the current U.S. dollar dominance in on-chain foreign exchange markets.
The XSGD token will also be integrated with Base, Coinbase’s Ethereum Layer 2 network. This means users can make 24/7 on-chain forex transactions using decentralized exchanges.
One of the key features will be an XSGD/USDC liquidity pool on Aerodrome, the main liquidity hub for the Base ecosystem. Incentives from both Aerodrome and Base will encourage traders and users to provide liquidity for the pool.
StraitsX has been issuing stablecoins since 2020 under the supervision of the Monetary Authority of Singapore (MAS). In 2024, the company received multiple Major Payment Institution licenses from MAS and was recognized as meeting the new Single Currency Stablecoin regulatory framework.
Hassan Ahmed, Coinbase’s Country Director for Singapore, said the partnership will make local and cross-border payments faster and cheaper for everyone. “We’re one step closer to making local and cross-border payments instant and accessible to everyone with a phone and wallet,” he said.
Singapore has positioned itself as a leader in cryptocurrency regulation, encouraging innovation while keeping strict rules to prevent financial crimes. By expanding local stablecoin options, the country is strengthening its position as a global hub for fintech and digital assets.
With XSGD integrated into Base, AI agents will be able to use the token for everything from buying digital art to acquiring real-world assets tied to NFTs. It reflects Coinbase’s goal of bringing more local currencies into the global crypto economy while expanding its presence across the Asia-Pacific region.