google-agentic-commerce/AP2

Building a Secure and Interoperable Future for AI-Driven Payments.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 4 minutes ago
Added to GitGenius on May 21st, 2026
Created on May 30th, 2025
Open Issues & Pull Requests: 143 (+0)
Number of forks: 486
Total Stargazers: 3,146 (+0)
Total Subscribers: 73 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 5.0 days
Mean response time: 16.0 days
90th percentile: 39.0 days
Tracked items: 51

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. 50% of tracked open issues have had no activity in three months. Only 2% of issues opened in the past year have been closed. Three people close 79% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 68
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 108 days
Stale 30+ days: 48
Stale 90+ days: 34

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 3
Events in 7 days: 5

Top labels

  • type: feature request (4)
  • help wanted (3)
  • samples (3)
  • documentation (2)
  • type: cleanup (2)
  • FOPs (1)
  • Integrations (1)
  • api: docs (1)

Detailed Description

The Agent Payments Protocol (AP2) repository is a Google-maintained project that provides code samples, demonstrations, and a software development kit for building secure, interoperable AI-driven payment systems. The repository is written primarily in Python and serves as the reference implementation for a protocol designed to enable autonomous agents to conduct transactions safely and reliably. The project's homepage at ap2-protocol.org provides additional context and documentation for the protocol itself.

The repository is organized into three main functional areas. The docs directory contains the protocol specification, architectural flows, frequently asked questions, and MkDocs sources for documentation. The code directory houses all source code split into three subdirectories: the AP2 SDK with Python implementations, reference implementations and scenarios demonstrating the protocol in action, and a web-based demo client built with Vite and React. The samples are particularly comprehensive, with scenario implementations available in Python, Go, and Android, each including a README with setup instructions and a run.sh script for local execution.

The repository shares contributors with related projects including ruvnet/ruflo, ruvnet/ruview, and ruvnet/ruvector, suggesting a broader ecosystem of interconnected tools.

The samples within the repository demonstrate various agent and server configurations, with most Python source code located in code/samples/python/src. Android-based shopping assistant implementations are housed in code/samples/android, while Go-based role implementations are in code/samples/go. Each scenario is self-contained with its own documentation and execution scripts, making it straightforward for developers to understand and run specific use cases.

The project uses Google's Agent Development Kit (ADK) and Gemini 3.1 Flash Lite Preview in its samples, though the protocol itself does not mandate these tools. Developers are free to use alternative frameworks and models when building their own agents. The quickstart documentation specifies Python 3.11 or higher as a requirement and recommends the uv package manager for dependency management. Authentication can be configured through either Google API Keys for development or Vertex AI for production environments, with support for both environment variables and .env file configuration.

The AP2 SDK's core objects are defined through Pydantic models and canonical JSON schemas, with the protocol's types package installable directly from the repository until a PyPI package becomes available. This breadth of classification reflects the protocol's ambition to serve as a foundational standard for AI-driven commerce interactions.