/ap2-agentic-payments:ap2-agent-authorizationfrom ap2-agentic-payments
Implements the AP2 Agent Authorization Framework covering open vs closed mandates, two-phase delegation/authorization, cryptographic authorization chains, Key Binding JWTs, and human-present vs human-not-present signing. Use when designing how a user authorizes an agent to act.
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/ap2/agent_authorization/ for the framework itself — this is the foundational model everything else sits on.https://ap2-protocol.org/ap2/specification/ for the current mandate types and their schemas.https://ap2-protocol.org/glossary/ — AP2's terminology has changed across releases and the glossary is the fastest way to catch a rename.site:github.com google-agentic-commerce AP2 mandate open closed for reference types under code/.Terminology warning: AP2 renamed and restructured core objects between releases. Confirm the current names against the live glossary before writing any type. Never carry an object name forward from an older tutorial, blog post, or this skill.
Even well-behaving agents need to have their behavior tightly constrained above what a normal authorization model would require of human users.
A human authenticating to a site is authorizing themselves. An agent acting for a human is a delegation, and delegation needs an explicit, verifiable, bounded grant. The Agent Authorization Framework is that grant.
Mandates represent user-approved permissions delegated to an agent, and they chain cryptographically to prove authorization end to end. The framework defines two states:
| State | Bound to a transaction? | Contains | Bound to |
|---|---|---|---|
| Open | No | Constraints on what a valid closed mandate may contain | A particular agent |
| Closed | Yes — via Key Binding JWT | The specific action being authorized | A specific transaction, presented to a verifier |
Open and closed are not two different objects; they are two states of the same authorization, and the open→closed transition is where the agent's discretion gets spent.
The trusted surface in phase 1 is load-bearing. An agent conversation is not a trusted surface — see ap2-challenge-stepup for why the same principle governs challenges.
This is the cleanest way to hold the distinction:
So human-not-present is not "less authorization". It is the same authorization, expressed as constraints up front and resolved into a specific transaction later, with both signatures preserved for accountability.
Because closed mandates bind to open mandates which bind to a user signature, the chain answers the dispute question directly: was this specific purchase within what the user actually authorized? See ap2-dispute-accountability.
ap2-checkout-mandate (formerly cart mandate), ap2-payment-mandate, ap2-vdc-framework, ap2-human-present-flow, ap2-human-not-present-flow.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ap2, agent-authorization, mandates, cryptographic-chain, key-binding-jwt
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-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.Other plugins' skills for the same job