a2a-payments

a2a-payments is a skill for Claude Code, Codex from Lord1Egypt/awesome-skill-forge. It costs 30 tokens per session (716 once invoked), scanned A, original, MIT.

A skill for paying service providers with USDC, a digital dollar token, through the APay system on the Base blockchain. It covers balances, budgets, service payments, cost estimates, payment history, and streaming payment channels.

In plain words
What is it for?
Use it to list or inspect services, pay for them, check balances and limits, review spending, estimate fees, or open and monitor a USDC streaming channel.
Why use it?
It helps an agent check whether it can afford a payment and manage service spending in one workflow. It also handles both direct and signed payments described by the input.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to list or inspect services, pay for them, check balances and limits, review spending, estimate fees, or open and monitor a USDC streaming channel.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lord1egypt/awesome-skill-forge/a2a-payments
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 Lord1Egypt/awesome-skill-forge --skill a2a-payments
Clone the repo
git clone --depth 1 https://github.com/Lord1Egypt/awesome-skill-forge

Made for: Claude Code, Codex.

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 a2a-payments

README.md
[![agentmods](https://agentmods.dev/badge/skills/lord1egypt/awesome-skill-forge/a2a-payments/github.svg)](https://agentmods.dev/skills/lord1egypt/awesome-skill-forge/a2a-payments)
Your own site
<a href="https://agentmods.dev/skills/lord1egypt/awesome-skill-forge/a2a-payments"><img src="https://agentmods.dev/badge/skills/lord1egypt/awesome-skill-forge/a2a-payments/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for a2a-payments

Your own site · 80×15
<a href="https://agentmods.dev/skills/lord1egypt/awesome-skill-forge/a2a-payments"><img src="https://agentmods.dev/badge/skills/lord1egypt/awesome-skill-forge/a2a-payments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 716 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.00030 $0.00716
Opus 5 $0.00015 $0.00358
Sonnet 5 $0.00006 $0.00143
Haiku 4.5 $0.00003 $0.00072

Measured 12d ago against content hash 89615373da79, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

a2a-payments 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 12d 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.

community/clawhub/a/a2a-payments/SKILL.md · 114 lines

How it starts

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

A2A Payments (APay)

Blockchain-native USDC payments for AI agents on Base chain. Pay for services, manage budgets, and handle micropayments.

Quick Start

Check your balance:

Use apay_check_balance to see my USDC balance

Pay a service:

Use apay_pay_service with serviceId "svc-123" and amount "0.50"

Available Tools

Balance & Budget

Tool Description
apay_check_balance Check USDC balance, daily budget, spending limits
apay_budget_check Verify if a specific amount is affordable
apay_spending_history Get spending analytics and history

Payments

Tool Description
apay_pay_service Pay a service (agent pays gas)
apay_pay_signed Gasless signed payment (server submits on-chain)
apay_estimate_cost Estimate cost including 0.5% platform fee

Services

Tool Description
apay_list_services List available APay services
apay_get_service Get detailed service info

Payment Channels (Streaming)

Tool Description
apay_channel_status Check channel status
apay_stream_open Open channel with USDC deposit
apay_stream_pay Sign off-chain micropayment
apay_stream_close Close channel (refund unspent)

x402 Protocol

Tool Description
apay_x402_fetch Fetch URL with automatic x402 payment on HTTP 402

Workflows

Pay for a tool execution

  1. apay_budget_check — verify affordability
  2. apay_estimate_cost — see total with fees
  3. apay_pay_service — execute payment
  4. Receive payment receipt with tx hash

Streaming micropayments

For services that charge per-request (API calls, data feeds):

  1. apay_stream_open — deposit USDC into channel
  2. apay_stream_pay — sign micropayments (off-chain, instant)
  3. apay_stream_close — settle on-chain, refund remainder

x402 auto-payment

For services using the HTTP 402 payment protocol:

Read the full file on GitHub · 114 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. 12d ago First seen · 114 lines · 30 tokens per session scan A 89615373da79

Subscribe to this mod's changes

a2a-payments is a skill published in the GitHub repository Lord1Egypt/awesome-skill-forge (2 stars, last pushed 3mo ago), licensed MIT. It adds 30 tokens to every session and 716 once invoked, about $0.0002 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-31.