Agent Embedded Payment Protocol (AEP2) is an embedded payment protocol designed for agent commerce, powered by stablecoin-based settlement. It enables AI agents to embed one-time payment mandates within x402, A2A or MCP calls — enabling instant payee verification and deferred settlement after execution.
The payee receives a signed payment mandate from the payer — the transaction completes instantly.
Ideal for high-frequency, low-latency micropayments.
The payee settles within a defined window by debiting the payer's on-chain account using the mandate.
Smart contracts ensure sufficient funds for settlement.
Payment mandates can be embedded into protocols such as x402, MCP, A2A, or ACP — enabling any agent communication or transaction to include payments programmatically.
All roles in the protocol are modular and replaceable.
Participants can choose trusted entities for identity, settlement, or dispute resolution.
Building the AI-Native Way to Pay

Agents make payments by embedding one-time payment mandates directly into their requests
Order Mode is a payment flow where the payee initiates a payment request. The payee first returns a payment request containing the amount and terms. The payer then signs and submits a payment mandate, and the payee verifies it before completing the transaction.

Intent Mode is a flow where the payer initiates the payment intent. The payer embeds a one-time payment mandate directly within a request (e.g. x402, A2A, MCP). The payee verifies the mandate before providing the service.

The payment flow's roles and mechanisms can be flexibly extended based on different scenarios

Defines a debit-capable wallet.
It can be extended to support additional functions such as credit capability or marketing-related vouchers.
Defines settlement mechanisms.
Beyond the default deferred settlement, it can be extended to models like result-based payments, credit-based settlements, or marketing-driven schemes.
Provide trusted identity verification for agent transactions and payments.
Supports both anonymous and verified (real-name) transaction modes.
Provides a dispute-handling mechanism for payers.
Enabling this feature may increase fees or extend settlement timeframes.
AEP2 is fully built on blockchain smart contracts.
All funds are self-custodied, and payment flows are peer-to-peer, with no third-party custody or settlement involved.
Agents can transact directly without intermediaries — fast, seamless, and low-cost.
For enterprise-level needs, it can be extended with comprehensive compliance and regulatory services.
Read the full documentation
Explore the source code
Get started in minutes
Join our community