# google-agentic-commerce/AP2

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

Repository: https://github.com/google-agentic-commerce/AP2
Canonical: https://ross.abutalabs.com/products/ap2
Homepage: https://ap2-protocol.org/
Language: Python
License: Apache-2.0
License Family: permissive
Last push: 2026-06-17T01:24:46+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 87, release rhythm 49, longevity 32
- inputs: {"age_days": 460, "days_push": 78, "days_rel": 127, "gap_med": 224, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3160, forks 490 (observed 2026-08-28T04:07:46.553900+00:00)

## What it is
Agent Payments Protocol (AP2) is an open protocol and Python SDK for secure, interoperable payments initiated by AI agents, addressing authorization, authenticity, and accountability in agentic commerce. The repository provides the SDK, protocol specification, and runnable demo scenarios in Python, Go, and Android.

## Use cases
- let ai agents make purchases securely
- implement agent-initiated payments in my app
- add verifiable user authorization for agent purchases
- build an agentic commerce checkout flow
- integrate payments into an a2a multi-agent system
- prototype agent shopping scenarios without real money movement

## When to choose
- you are building AI agents that initiate or facilitate payments
- you need a standard, auditable protocol for agent commerce across merchants and PSPs
- you want reference implementations and an SDK to extend with new payment methods

## When to avoid
- you need production payment processing today - samples mock payment providers
- your project has nothing to do with AI agents or commerce
- you need a finished MCP server or SDK for a framework other than Python

## Facets
- artifact type: library
- maturity: active
- function: sdk, agent-framework, security, auth, api-framework
- domain: artificial-intelligence, fintech, e-commerce, large-language-models
- platform: python, go, cross-platform
- tags: agent-payments, agentic-commerce, a2a-protocol, payment-protocol, mandates, google, samples, protocol-specification, ai-agents, android

## Member repositories
- google-agentic-commerce/AP2 (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:46.553900+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:25:15.779778+00:00, confidence not recorded.
  - readme: https://github.com/google-agentic-commerce/AP2 (fetched 2026-08-28T04:07:46.553900+00:00, sha 9d933d7c69ca)
  - homepage: https://ap2-protocol.org/ (fetched 2026-08-29T09:39:59.632609+00:00, sha 51cd33fc7fb3)
  - site_page: https://ap2-protocol.org/faq (fetched 2026-08-29T09:39:59.641768+00:00, sha 3eecf9f3fab4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
