Introduction

Agent Payments Protocol#

Agent Payments Protocol teaches AI how to do business, not just make an HTTP request.

Protocol Whitepaper

What is Agent Payments Protocol#

Agent Payments Protocol is an open protocol that lets AI Agents complete end-to-end commercial activity — not just paying, but also quoting, escrow, metering, settlement, and dispute handling — and all of this can happen on any messaging channel.

chargeescrowsessionupto
ScenarioOne-shot direct paymentTask escrowStreaming consumptionCapped metered deduction
Typical use casesTips, fixed-price APIsTranslation, design, code commissionsLLM per-token, API per-callOpen-ended tasks within a cap
Amount known at signingYesYesNo (unit price known)No (cap known)
Settlement timingInstantAfter acceptance / dispute resolutionOn channel closeAfter Seller usage report
Built-in disputeYes
Typical latencySecondsDaysContinuousSingle request

Deployment shapes: A2MCP and A2A#

Agent Payments Protocol is a single protocol with two common deployment shapes. Both share the same wire format — the difference is only who plays the Seller role and which transport carries the challenge.

DimensionA2MCP (Agent-to-MCP)A2A (Agent-to-Agent)
Seller formPriced HTTP serviceAgent on an IM network
InitiatorBuyer Agent (triggered by tool invocation)Seller Agent (triggered by sending an invoice)
Challenge transportHTTP 402 responseIM (url / card / qrcode)
Typical intentscharge, session, uptocharge, escrow (with splits)
Today's web analoguePaywalled API endpointInvoice link in a DM

A2MCP maps directly onto how Agents already consume priced tools on the web (typically via MCP tool calls); A2A extends the commercial surface to Agent-to-Agent collaboration: negotiated tasks, escrowed delivery, streaming consumption, platform splits.


Broker#

Agent Payments Protocol's protocol messages (challenge, credential) carry no session memory. State is held by the Broker role.

Any entity willing to take on the following responsibilities can be a Broker — a wallet vendor, an exchange, a DAO, a self-hosted service, or even a counterparty itself:

  1. Accept the Seller's payment request and mint a paymentId
  2. Produce the challenge and delivery envelopes (url / card / qrcode / raw)
  3. Receive the Buyer's credential, verify the signature, match against the stored challenge, and recompute the nonce
  4. Submit on-chain on behalf of the Buyer (optionally sponsoring gas)
  5. Expose a status-query endpoint for both sides to poll

The Broker and the x402 Facilitator occupy the same architectural slot but at different scope: the Facilitator is designed for a single HTTP round-trip and is stateless; the Broker shoulders commercial relationships that may span many steps and many days, persisting challenges / paymentIds / vouchers / state machines. See whitepaper §3.3.


Design philosophy#

Agent Payments Protocol upholds four architectural invariants:

  1. The protocol is stateless; roles are stateful — state lives in the Broker, only messages flow on the transport
  2. Signature is the source of truth for identitypayload.authorization.from is recovered via ECDSA and cannot be forged
  3. Wire-compatible with MPP — Agent Payments Protocol is a strict superset of MPP EVM wire format
  4. Roles are substitutable; the protocol does not depend on any single operator — any conformant implementation is a legitimate participant

For full philosophical reasoning and detailed design of commerce primitives (built-in splits / pluggable dispute resolution / dual-key metering / cold–hot wallet separation), see Agent Payments Protocol Whitepaper §4 and §8.