// agents · google-agentic-commerce/AP2

AP2

An open protocol for secure AI-driven payments.

★ 3.2k stars⑂ 509 forksApache-2.0updated 2026-06
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

AP2 is an open-source ai agents project by google-agentic-commerce (google-agentic-commerce/AP2 on GitHub). It has 3,209 GitHub stars and 509 forks, is released under the Apache-2.0 license, and was last updated on GitHub on 17 June 2026.

GitHub stars
3,209
Forks
509
License
Apache-2.0
Last updated on GitHub
17 June 2026
Category
AI Agents
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Know your goal

    Be clear about the problem you are solving before installing.

  2. Get the code

    Clone the repository and skim the docs for hardware or key requirements.

  3. Configure it

    Install dependencies, then add API keys, endpoints, or local-model settings.

  4. Take it for a spin

    Launch the example flow and verify the output matches expectations.

// features

Why people love it

Agentic payments

Protocol for agents to transact.

Security-first

Designed around secure payment flows.

Interoperable

Aims for cross-platform compatibility.

Google initiative

From google-agentic-commerce.

Open spec

Apache-2.0 licensed code and docs.

Early mover

Positioned at the start of agentic commerce.

Advertisement
// run it

Run it yourself

  1. Step 1 — Clone the repo

    Download the source and move into the project folder.

    git clone https://github.com/google-agentic-commerce/AP2.git
    cd AP2
  2. Step 2 — Install

    Set up a virtual environment and install dependencies.

    python -m venv .venv && source .venv/bin/activate
    pip install -r requirements.txt
  3. Step 3 — Explore the examples

    Read the protocol docs and run the sample flows.

    # see https://ap2-protocol.org/ for the spec
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains AP2?

It is maintained by google-agentic-commerce at google-agentic-commerce/AP2, with 509 forks.

Is AP2 free to use?

Yes. It is released under the Apache-2.0 license, which permits commercial use, modification, and redistribution. Read the LICENSE file for the exact terms.

Do I need a paid API to use it?

The protocol is free; real payment rails have their own fees.

How does it compare to alternatives?

Agentic payments is an emerging space — compare with other proposals as they appear.

How do I get started?

Read the protocol site, clone the repo, and run the examples.

// keep exploring

Similar tools

AI Agents

x402

A payments protocol for the internet — built on plain HTTP.

★ 6.7k starsApache-2.0
View guide →
AI Agents

mcp

An MCP server that puts Hyperbrowser's browsers behind the protocol.

★ 789 starsMIT
View guide →
AI Agents

servers

The official collection of reference Model Context Protocol servers.

★ 91.1k starsNOASSERTION
View guide →
AI Agents

python-sdk

The official Python SDK for Model Context Protocol servers and clients.

★ 24.5k starsMIT
View guide →
AI Agents

typescript-sdk

The official TypeScript SDK for Model Context Protocol servers and clients.

★ 13.5k starsNOASSERTION
View guide →
AI Agents

spec-kitty

Open ai agents for spec-driven development with organizational governance..

★ 1.7k starsMIT
View guide →
// alternatives

Alternatives in AI Agents

The most-starred other AI Agents projects in the LibreAI catalogue — the realistic shortlist if AP2 is not the right fit.

Get AP2

Free and open — grab the source, star the repo, and start creating.