AP2 is a project released by Google’s “Agentic Commerce” initiative, focusing on a protocol and reference implementation for agent-driven or AI-mediated payments. In effect, AP2 aims to define a secure, interoperable protocol that allows software agents to act on behalf of users—making payments or shopping decisions autonomously—while preserving necessary security, auditability, and trust. The repository contains sample scenarios (in Python, Android, etc.) that illustrate how agents, servers, and payments flows would work under the protocol. It includes “types” definitions (the core message and object schema) and example agent implementations to demonstrate the mechanics of agent-to-agent and agent-to-server interactions. The design emphasizes flexibility: although their samples use a particular Agent Development Kit (ADK) or runtime, the protocol is intended to be independent of those choices.

Features

  • Defines a core set of protocol types / data models for AP2, via ap2/types to represent payments, agent actions etc.
  • Sample / demo scenarios in Python and Android showing how agents and servers can be built to implement the protocol
  • Run-scripts (run.sh) in each scenario to help spin up local agents / server for demos
  • Quickstart with environment setup (Python 3.10+, API key from Google AI Studio) to get scenarios running locally
  • Modular “types” package which can be installed (via pip) directly from the GitHub repo, with plans for PyPI publishing
  • License is Apache-2.0; repository has documentation, samples, scripts; versioning (latest release v0.1.0 as of Sept 2025) etc.

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow Agent Payments Protocol (AP2)

Agent Payments Protocol (AP2) Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Agent Payments Protocol (AP2)!

Additional Project Details

Operating Systems

Android, Linux, Mac

Programming Language

Python

Related Categories

Python AI Agent Frameworks

Registered

2025-09-18