Skip to content

Agent Embedded Payment Protocol

Designed for Agent Commerce · Authorize First, Settle Later

Quick Understanding

What is AEP2?

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 directly in protocol calls, achieving instant payment confirmation and deferred settlement.

Core Philosophy

AEP2 is built on the principle of "Authorize First, Settle Later":

  1. Authorization Phase: Payee receives a signed payment mandate from payer, transaction completes instantly
  2. Settlement Phase: Payee submits mandates to settlement processor within settlement window to batch debit from payer's on-chain wallet

This design enables AEP2 to support high-frequency, low-latency micropayment scenarios while maintaining transaction security.

Key Features

Two Transaction Modes

Intent Mode (Payer-Initiated)

  • One-round interaction, low latency
  • Suitable for micropayments, automated calls

Order Mode (Payee-Initiated)

  • Two-round interaction, flexible pricing
  • Suitable for task settlement, subscription services

Protocol Integration

  • x402: HTTP protocol extension for agents
  • MCP: Model Context Protocol
  • A2A: Agent-to-Agent communication
  • AP2: Agent user authorization protocol

Why Choose AEP2?

FeatureTraditional PaymentAEP2
Transaction SpeedSlow (wait for on-chain confirmation)Fast (authorization completes immediately)
Transaction CostHigh (every transaction on-chain)Low (batch settlement)
Minimum AmountLimited (affected by gas fees)Very low (supports micropayments)
Trust ModelPay first, service laterAuthorize first, settle later
ProgrammabilityLowHigh (embedded payments)
ComplianceLimitedComplete (KYA/Dispute)

Start Exploring

📖 Understanding the Protocol

  • Overview - Understand AEP2's design philosophy and core features
  • Core Concepts - Deep dive into payment mandates, debit wallets and other key components
  • Transaction Modes - Learn about Intent Mode and Order Mode

🏗️ Dive into the Technical Details


Agent Embedded Payment Protocol · Making AI Agent Payments as Natural as Breathing

Get Started · GitHub · Join Community

Released under the MIT License.