Skip to content
Prices
  • BTC$82,470▲ 0.76%
  • ETH$2,437▲ 1.65%
  • BNB$736.61▲ 1.42%
  • XRP$1.32▲ 1.44%
  • SOL$105.93▲ 1.97%
  • TRX$0.3307▼ 0.15%
  • HYPE$79.90▲ 2.36%
  • DOGE$0.0811▲ 2.59%
  • LINK$12.16▲ 2.37%
  • ADA$0.2209▲ 1.90%
  • AVAX$9.62▲ 0.95%
DeFiNewsExplainer

Mastercard opens AI agent payments to developers: how it works

Mastercard opened early access to Agent Pay for Machines, an x402-based system that lets AI agents pay for services within a human-set budget, settled via Base.

· · 3 min read

Share
Wall of colourful lava lamps in the entrance of Cloudflare's San Francisco office (illustrative photo)
Image: HaeB / Wikimedia Commons, CC BY-SA 4.0

Mastercard has opened early access to Agent Pay for Machines, a system that lets AI agents discover paid online services, agree to their terms and pay for them on their own, as long as they stay inside a budget set by a human, Decrypt reported. The company first announced the plan in June and showed a live transaction on Tuesday at Cloudflare's Connect conference, where Mastercard's Jorn Lambert ran the demo.

The problem it tries to solve

AI agents increasingly need to buy things from several providers in one task: data from one, a model from another, computing power from a third. Most paid services today expect an account, an API key or a billing relationship for each customer. That works for people who sign up once, but not for software that picks providers on the fly.

How a payment works

Agent Pay for Machines sits on top of x402, an open protocol that lets a website or API ask for payment, combined with Mastercard's network. The key idea is pre-approved authority rather than a card number:

  • A business gives the agent a task and a spending cap.
  • When the agent reaches a paid service, the service replies with an HTTP "402 Payment Required" response.
  • The agent creates a digitally signed voucher, a promise to pay within its approved limit.
  • The provider checks the voucher and delivers the service. These exchanges happen off-chain at machine speed, and providers can collect vouchers and redeem them in batches later.

The demo

An agent working for marketing agency Hype planned a protein-bar ad campaign on a fixed budget. It found registered providers and ran a two-step plan, buying social-media research from one vendor and campaign images through Cloudflare: nine payments to two independent merchants, with no separate accounts or invoices.

Behind the scenes, Coinbase's developer platform supplied the agent's wallet, Coinbase's Ethereum layer-2 network Base handled on-chain settlement, and BVNK, the stablecoin firm Mastercard bought in August, settled in either fiat or stablecoins through Mastercard's Global Money Platform.

What's next

Mastercard is releasing buyer- and seller-side APIs, a toolkit and a sandbox for developers. The launch follows end-to-end pilots with Cloudflare, Ant International, AWS, BVNK and Coinbase. x402 already carries real traffic: a Chainalysis study counted 138 million AI-agent payments via x402, most of them stablecoin micropayments. New to the topic? Start with what a stablecoin is.

This article is for information only and is not financial advice. Crypto assets are volatile; do your own research. Read our disclaimer

Share

More from DeFi

View all →

Read next