Introduction

Agent Payments Protocol#

An open protocol for Agent commerce

Agent Payments Protocol teaches Agents to do business — a commercial relationship, not just an HTTP response.

Full details in the whitepaper

This page is an overview of Agent Payments Protocol. For the full content, see:

📄 Agent Payments 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.

Earlier Agent payment work compressed the problem into "a single HTTP response"; Agent Payments Protocol generalizes the unit of interaction from "a single HTTP 402" to a complete commercial relationship.

Agent Payments Protocol can be summarized in one equation:

Agent Payments Protocol = MPP EVM + four intent envelopes + Broker orchestration + cross-IM/HTTP transport

  • MPP EVM: Agent Payments Protocol is wire-compatible with MPP, directly consuming the MPP EVM challenge / credential structure
  • Four intent envelopes: charge / escrow / session / upto — each capturing a distinct shape of commercial interaction
  • Broker orchestration: a protocol-defined role that absorbs the orchestration burden (not a specific operator)
  • Cross-channel transport: HTTP, XMTP, Telegram, Discord, Slack, Email, SMS, deep links, QR, offline — anything that can carry text

The four intents#

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

The four intents cover the commercial surface: one-shot, escrowed, streaming, capped — each is an independent composition.

The four payment methods Onchain OS Payment currently provides (One-time / Batch / Pay-as-you-go / Escrow) are product-level realizations of the protocol intents above. See Core Concepts for detailed mappings and the underlying protocol.


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 — a protocol-defined role#

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.


Relation to x402 / MPP#

Agent Payments Protocol is not a competitor to x402 / MPP — it adopts MPP's wire format, layers four intent shapes on top, is orchestrated by a Broker, and ultimately becomes a productized protocol layer for IM-based multi-channel delivery.

ProtocolLayerHow Agent Payments Protocol composes with it
x402HTTP 402 middlewareAgent Payments Protocol is wire-aligned with x402 at the request layer (charge can emit an x402-shaped 402) and extends the same idea into IM / QR / offline
MPPEVM payment method + session specAgent Payments Protocol is a strict superset of the MPP EVM challenge / credential wire format. Integrating MPP EVM means already integrating Agent Payments Protocol's charge

Where x402 already fits, Agent Payments Protocol defers to it; when the conversation moves off HTTP or beyond a single round-trip, Agent Payments Protocol extends with the same vocabulary.


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 / signing-custody separation), see Agent Payments Protocol Whitepaper §4 and §8.


Next#