/ap2-agentic-payments:ap2-setupfrom ap2-agentic-payments
Scaffolds a new AP2 multi-agent payment project: installs the SDK, sets up agent roles (Shopping Agent, Merchant, Credentials Provider, Payment Processor), configures Google API or Vertex AI credentials, and creates the project structure.
Ships in ap2-agentic-payments. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch live docs:
https://ap2-protocol.org/ for the latest protocol overviewhttps://github.com/google-agentic-commerce/AP2 for the current README and installation instructionssite:github.com google-agentic-commerce AP2 samples python for the sample project structurehttps://github.com/google-agentic-commerce/AP2/tree/main/code/samples for Python sample layoutAn AP2 project creates a multi-agent payment system with distinct roles:
# Requires Python 3.10+ and uv
uv pip install git+https://github.com/google-agentic-commerce/AP2.git@main
my-ap2-project/
├── roles/
│ ├── shopping_agent/ # Shopping Agent — orchestrates purchases
│ │ ├── __init__.py
│ │ └── agent.py
│ ├── merchant_agent/ # Merchant — product catalog, cart creation
│ │ ├── __init__.py
│ │ └── agent.py
│ ├── credentials_provider_agent/ # CP — payment methods, tokenization
│ │ ├── __init__.py
│ │ └── agent.py
│ └── merchant_payment_processor_agent/ # MPP — payment processing
│ ├── __init__.py
│ └── agent.py
├── .env # GOOGLE_API_KEY or Vertex AI config
├── pyproject.toml
├── run.sh # Launches all agents
└── tests/
└── test_flow.py
Two authentication options:
GOOGLE_API_KEY in .envGOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATIONEach agent runs on its own port:
/a2a/credentials_provider)ap2.types for mandate and payment structures.env files for credentials, never hardcode.logs/watch.log pattern from samples is usefulFetch the latest GitHub README and sample READMEs for exact setup commands, current package versions, and framework requirements before scaffolding.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin ap2-agentic-payments19 skills in this plugin
/ap2-a2a-extensionImplement AP2 as an A2A extension — mandate DataParts in A2A messages, Agent Card AP2 capabilities, payment-specific task flows, and inter-agent payment communication. Use when integrating AP2 payment capabilities into A2A multi-agent systems./ap2-agent-authorizationImplement the AP2 Agent Authorization Framework — open vs closed mandates, the two-phase delegation/authorization process, the cryptographic authorization chain, Key Binding JWTs, and human-present vs human-not-present signing. Use when designing how a user authorizes an agent to act, before touching any specific mandate type./ap2-challenge-stepupImplement AP2 challenge and step-up flows — 3DS2, OTP verification, redirect challenges, and trusted surface interactions. Use when building additional authentication steps during agentic payment processing./ap2-checkout-mandateImplement the AP2 Checkout Mandate — the credential authorizing completion of a checkout, in its open (constrained) and closed (merchant-verified) forms, with merchant-signed checkout payloads, checkout hashes, and user confirmation on a trusted surface. Formerly called the Cart Mandate. Use when building cart/checkout authorization, signing, and verification./ap2-credentials-providerBuild an AP2 Credentials Provider — the agent that manages payment credentials, provides payment methods to users, handles tokenization (DPAN), and facilitates secure payment between Shopping Agent and Payment Processor. Use when implementing the Credentials Provider role./ap2-cryptographic-signingImplement AP2 cryptographic signing — hardware-backed user signatures, merchant entity signatures, VDC integrity, key management, and attestation flows. Use when building the signing, verification, and key management components of AP2 mandates.Other plugins' skills for the same job