AP2 is a framework for autonomous agent commerce designed to facilitate financial transactions between AI agents and merchants. It provides a standardized communication protocol and data models for coordinating catalogs and checkout requests, enabling agents to execute payments independently using digital credentials or traditional payment instruments.
The project distinguishes itself through a cryptographic authorization framework that uses signed mandates to delegate limited financial authority to agents. These mandates include strict spending limits, payee restrictions, and temporal boundaries to ensure agents operate within safe parameters. The system further secures transactions by binding payment authorizations to specific checkout sessions and agent keys to prevent double-spending and unauthorized reuse.
The framework covers a broad surface of financial operations, including the generation of signed checkout and transaction receipts for non-repudiable evidence and dispute resolution. It also incorporates a privacy layer using selective disclosure to share only the minimum necessary transaction data with verifiers.
The project is implemented in Python.