ap2-credentials-provider

ap2-credentials-provider is a skill for Claude Code from OrcaQubits/agentic-commerce-skills-plugins. It costs 52 tokens per session (873 once invoked), scanned A, original, MIT.

A guide to building an AP2 Credentials Provider, the service that securely manages a user's payment methods and supplies an approved method to the payment flow. It also covers tokenization, which replaces sensitive payment details with safer tokens.

In plain words
What is it for?
Use it when implementing a digital wallet or payment-credential service for AP2, including payment-method listings, tokenization, authorization checks, and payment handoff.
Why use it?
It helps separate payment credential storage and release from the shopping agent, reducing the need to expose raw card details.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the ap2-agentic-payments plugin — 18 skills, 1 agent shipped together

Good fit Use it when implementing a digital wallet or payment-credential service for AP2, including payment-method listings, tokenization, authorization checks, and payment handoff.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/orcaqubits/agentic-commerce-skills-plugins/ap2-credentials-provider
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OrcaQubits/agentic-commerce-skills-plugins --skill ap2-credentials-provider
Clone the repo
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins

Made for: Claude Code.

Or install ap2-agentic-payments, the plugin that ships this one along with the rest of its 18 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ap2-credentials-provider

README.md
[![agentmods](https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/ap2-credentials-provider.svg)](https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/ap2-credentials-provider)
Your own site
<a href="https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/ap2-credentials-provider"><img src="https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/ap2-credentials-provider.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 873 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.00873
Opus 5 $0.00026 $0.00436
Sonnet 5 $0.00010 $0.00175
Haiku 4.5 $0.00005 $0.00087

Measured 8d ago against content hash 15dd44e80c3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ap2-credentials-provider scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ap2-agentic-payments/skills/ap2-credentials-provider/SKILL.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AP2 Credentials Provider Implementation

Before writing code

Fetch live docs:

  1. Fetch https://ap2-protocol.org/specification/ for Credentials Provider responsibilities
  2. Web-search site:github.com google-agentic-commerce AP2 samples roles credentials_provider for reference implementation
  3. Web-search site:github.com google-agentic-commerce AP2 credentials provider tokenization DPAN for tokenization details
  4. Fetch https://ap2-protocol.org/topics/privacy-and-security/ for security requirements

Conceptual Architecture

What the Credentials Provider Does

The Credentials Provider (CP) is the payment credentials custodian — a digital wallet that securely manages payment methods and handles tokenization:

  1. Stores payment credentials — User's payment methods (cards, wallets)
  2. Provides payment method listings — Returns available methods to Shopping Agent
  3. Handles tokenization — Converts real credentials to DPANs (Digitized Primary Account Numbers)
  4. Validates Payment Mandates — Verifies user authorization before releasing tokens
  5. Facilitates payment — Provides credentials to Merchant Payment Processor
  6. Manages user identity — Links user identity to payment methods

Critical Security Role

The Credentials Provider is the only entity that handles raw payment credentials:

  • Shopping Agents never see real card numbers
  • Merchants receive only tokenized references
  • PCI data stays within the CP's security boundary
  • This role-based separation is fundamental to AP2's privacy model

Agent Card

The Credentials Provider advertises:

  • AP2 extension support
  • Available payment method types
  • Tokenization capabilities
  • Authentication requirements (OAuth2 recommended)
  • Endpoint URL (reference: port 8002, path /a2a/credentials_provider)

Key Responsibilities

Payment Method Management
  • Store user payment methods securely (PCI DSS compliance)
  • Return available payment methods when queried by Shopping Agent
  • Include method details sufficient for user selection (last 4 digits, card type, expiry)
  • Never expose full card numbers to Shopping Agents

Read the full file on GitHub · 104 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 104 lines · 52 tokens per session scan A 15dd44e80c3a

Subscribe to this mod's changes

ap2-credentials-provider is a skill published in the GitHub repository OrcaQubits/agentic-commerce-skills-plugins (39 stars, last pushed 3mo ago), licensed MIT. It adds 52 tokens to every session and 873 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

internet-court

Entry point for Internet Court — the trust layer for agent-to-agent commerce. Use whenever an agent needs to transact with another agent or a paid service, or a user mentions agent payments, paid APIs (HTTP 402/x402), wallet custody or trust concerns, spending mandates, delegated permissions (ERC-7710/7715), escrow…

internet-court/internet-court-skill · 147 tokens

okx-agent-payments-protocol

Use when an agent hits HTTP 402 / payment-required, or the user mentions x402, x402Version, X-PAYMENT, PAYMENT-REQUIRED, PAYMENT-SIGNATURE, WWW-Authenticate: Payment, permit2, upto, metered billing, a payment channel / voucher / session, channelId / channelid, opening / closing / topping up / settling / refunding a…

internet-court/internet-court-skill · 231 tokens

okx-dapp-discovery

Plugin router for 20 third-party DeFi protocols (Polymarket, Aave, Hyperliquid, PancakeSwap, Morpho, Raydium, Curve, Compound, Pendle, Lido, ether.fi, GMX, Kamino, Orca, Meteora, Clanker, pump.fun, Uniswap) and their protocol-native tokens (HYPE, HLP, eETH, weETH, stETH, wstETH, LDO, GHO, CAKE, CRV, COMP, RAY, ETHFI…

internet-court/internet-court-skill · 351 tokens

jupiter-lend

Interact with Jupiter Lend Protocol. Read-only SDK (@jup-ag/lend-read) for querying liquidity pools, lending markets (jlTokens), and vaults. Write SDK (@jup-ag/lend) for lending (deposit/withdraw) and vault operations (deposit collateral, borrow, repay, manage positions).

internet-court/internet-court-skill · 68 tokens

lifi

LI.FI REST API for cross-chain and same-chain token swaps, bridging, DeFi deposits (Composer), yield discovery (Earn), and intent-based execution (Intents). USE THIS SKILL WHEN USER WANTS TO: Swap tokens between different blockchains (e.g., "swap USDC on Ethereum to ETH on Arbitrum") Bridge tokens to another chain…

internet-court/internet-court-skill · 299 tokens

x402-erc7710

Design and implement demos combining x402 HTTP payments with ERC-7710 smart contract delegations and ERC-7715 wallet permission requests for subscriptions, bounded agent budgets, recurring spend, pay-per-use APIs, and agentic commerce.

internet-court/internet-court-skill · 53 tokens