Menu

Explorer & Settings

Tempo Explorer Submit Project
🅖 Agent Payments Protocol

What is AP2?

AP2 — the Agent Payments Protocol — is Google's open standard for letting AI agents pay on your behalf, with cryptographic proof that you authorized the purchase.

Diagram of AP2, the Agent Payments Protocol: a user signs a mandate (a verifiable credential) that cryptographically authorizes an AI agent to pay a merchant on their behalf, and can settle over rails like x402 in USDC

The problem AP2 solves

When an AI agent buys something for you, two hard questions appear: did the user actually authorize this? and how does the merchant trust that? Traditional checkout assumes a human is clicking the button. Agentic commerce breaks that assumption. AP2 answers it with verifiable mandates — signed authorizations that travel with the transaction.

How AP2 works

AP2 is built as an extension to Google's Agent-to-Agent (A2A) protocol. A user delegates authority to an agent through a signed mandate that can be scoped (a specific item, a price ceiling, a time window). When the agent transacts, it presents the mandate, giving merchants and payment providers a verifiable consent trail. AP2 is payment-method agnostic: the same authorization layer can settle over cards, bank rails, or stablecoins.

AP2, A2A and x402 together

These are layers, not rivals. x402 handles instant per-request stablecoin settlement over HTTP. A2A handles agent-to-agent messaging and negotiation. AP2 adds the authorization layer on top. The A2A x402 extension stitches them together so an AP2 agent can settle a deal in USDC. For the full stack, read our x402 + A2A + AP2 payment stack guide.

Real AP2 / A2A payment implementations

Curated real projects · stars live from GitHub.

google-agentic-commerce/a2a-x402

The A2A x402 Extension brings cryptocurrency payments to the Agent-to-Agent (A2A) protocol, enabling agents to monetize their services through on-chain payments. This extension revives the spirit of HTTP 402 "Payment Required" for the decentralized agent ecosystem.

⭐ 541Python
GitHub →
worldliberty/agentpay-sdk

An open SDK for agentic payments. Let AI agents make payments, hold funds, and move money across chains with policy enforcement and human approval built in.

⭐ 516Rust
GitHub →
dabit3/a2a-x402-typescript

A complete TypeScript implementation of the Python x402 payment protocol extension for A2A (Agent-to-Agent) communication. Enable your AI agents to request, verify, and settle crypto payments seamlessly.

⭐ 103TypeScript
GitHub →
solana-foundation/mpp-sdk

Building blocks for Agentic payments (x402, MPP, AP2) for TypeScript, Rust, Go, Python, Ruby, PHP, Lua, Kotlin and Swift.

⭐ 69Rust
GitHub →

Frequently asked questions

What is AP2 (Agent Payments Protocol)?

AP2 is the Agent Payments Protocol introduced by Google. It is an open specification that lets AI agents make payments on a user’s behalf with verifiable authorization, built as an extension to the Agent-to-Agent (A2A) protocol and designed to work across many payment methods — including cards, bank transfers, and stablecoins.

Who created AP2?

AP2 was announced by Google together with a broad set of payments and commerce partners. It is positioned as an open, vendor-neutral standard rather than a Google-only product.

What are mandates in AP2?

AP2 uses cryptographically signed “mandates” — verifiable proof that a user authorized an agent to make a specific purchase (or a class of purchases). This gives merchants and payment providers an audit trail showing the agent acted with the user’s consent.

AP2 vs x402 — are they competitors?

Not exactly. x402 is an HTTP-native protocol for instant per-request stablecoin payments. AP2 is a higher-level authorization framework for agent-led commerce across many payment rails. In practice they compose: the A2A x402 extension lets AP2/A2A agents settle in USDC via x402.

AP2 vs ACP — what is the difference?

AP2 (Google) focuses on authorization and works across many rails and the A2A agent ecosystem. ACP (Agentic Commerce Protocol, from OpenAI and Stripe) focuses on agent checkout inside conversational shopping experiences. They target overlapping but distinct slices of agentic commerce.

How do AP2 agents pay in crypto?

Through the A2A x402 extension: an AP2/A2A agent negotiates the purchase, then settles in USDC over x402 on Base or other chains. See the curated implementations above.