AP2
by
google-agentic-commerce

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

View on GitHub ↗

Summary Information

Updated 2 hours ago
Added to GitGenius on May 21st, 2026
Created on May 30th, 2025
Open Issues & Pull Requests: 118 (+0)
Number of forks: 469
Total Stargazers: 3,098 (+0)
Total Subscribers: 73 (+0)

Issue Activity (beta)

Open issues: 49
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 139 days
Stale 30+ days: 45
Stale 90+ days: 31

Recent activity

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

Top labels

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

Most active issues this week

No issue events were indexed in the last 7 days.

Repository Insights (GitGenius)

Median issue/PR response: 0.0 hours
Mean response time: 5.0 days
90th percentile: 15.3 days
Tracked items: 57

Most active contributors

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.

According to GitGenius activity tracking, the repository has seen consistent engagement with a median issue and pull request response latency of 0.0 hours and a mean latency of 121.0 hours across 57 tracked items. The most frequently applied issue labels are type: feature request with 4 occurrences, followed by samples and help wanted each appearing 3 times. The primary contributors tracked by GitGenius are chopmob-cloud with 27 events, zeroasterisk with 26 events, and wooriapt79 with 15 events, indicating active ongoing development and maintenance. 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. The GitGenius classification places this repository squarely within agentic commerce, covering AI agents, e-commerce automation, shopping workflows, product search, recommendation systems, transaction processing, multi-agent coordination, retail integration, and autonomous shopping. This breadth of classification reflects the protocol's ambition to serve as a foundational standard for AI-driven commerce interactions.

AP2
by
google-agentic-commercegoogle-agentic-commerce/AP2

Repository Details

Fetching additional details & charts...