agenticpay: Skill for Claude Code

.claude/skills/agenticpay/SKILL.md

agentpay is a skill for Claude Code from agenticpay-dev/agenticpay. It costs 100 tokens per session (1,631 once invoked), scanned A, original, MIT.

A toolkit for charging AI agents for MCP tool calls using x402 payments and USDC on the Solana network.

In plain words
What is it for?
Adding a payment wall to an MCP server, setting tool prices, configuring wallets and networks, running a command-line wallet, and hosting or using a payment facilitator.
Why use it?
It provides the payment flow needed when an AI agent must pay before accessing a tool, including payment verification and settlement.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: positional $N argument.

This is agenticpay-dev/agenticpay's own configuration. It tells Claude Code how to work on agenticpay itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agenticpay configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node packages/cli/dist/index.js wallet new --wallet ./recipient.json.

Reuse

Borrowing it

Nothing to install: this file belongs to agenticpay-dev/agenticpay. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/agenticpay-dev/agenticpay/main/.claude/skills/agenticpay/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/agenticpay-dev/agenticpay

Made for: Claude Code.

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 agentpay

README.md
[![agentmods](https://agentmods.dev/badge/skills/agenticpay-dev/agenticpay/agenticpay/github.svg)](https://agentmods.dev/skills/agenticpay-dev/agenticpay/agenticpay)
Your own site
<a href="https://agentmods.dev/skills/agenticpay-dev/agenticpay/agenticpay"><img src="https://agentmods.dev/badge/skills/agenticpay-dev/agenticpay/agenticpay/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 agentpay

Your own site · 80×15
<a href="https://agentmods.dev/skills/agenticpay-dev/agenticpay/agenticpay"><img src="https://agentmods.dev/badge/skills/agenticpay-dev/agenticpay/agenticpay.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,631 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00100 $0.01631
Opus 5.5 $0.00040 $0.00652
Sonnet 5.5 $0.00020 $0.00326
Haiku 4.5 $0.00010 $0.00163

Measured 2mo ago against content hash 5bc3731e80fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agentpay scanned grade A with 1 finding 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -i -X POST http://localhost:4021/tools/reverse \
.claude/skills/agenticpay/SKILL.md · 144 lines

How it starts

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

agentpay — pay-per-tool-call micropayments for AI agents

You are helping the user build, integrate, or troubleshoot agentpay, an open-source x402 payments stack for the MCP ecosystem on Solana.

Repo: https://github.com/krystiangw/agentpay (MIT) Hosted devnet facilitator: https://agentpay-facilitator-e9b20a5fee6a.herokuapp.com Landing page: https://krystiangw.github.io/agentpay/

Mental model

Three roles in every flow:

  • Payer — an AI agent or its harness. Holds USDC, signs payment payloads.
  • Resource server (mcp-server) — exposes paid tools behind an HTTP 402 paywall. Each tool declares a price (e.g. $0.001 USDC).
  • Facilitator — verifies signed payment payloads, submits the USDC transfer on-chain via Solana, pays the SOL fee on the payer's behalf.

The packages in the monorepo:

Package Role
@agenticpay/sdk USDC + wallet primitives, network config
@agenticpay/cli agentpay CLI: wallet, balance, send
@agenticpay/mcp-server Express server with x402 paywall middleware
@agenticpay/facilitator Self-hostable x402 facilitator (verify + settle)

Critical invariants (the day-1 footgun)

Network, asset, and RPC must be consistent. Mixing devnet network (solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1) with mainnet USDC mint (EPjFW...), or pointing the client at mainnet RPC while the facilitator runs on devnet, produces transaction_simulation_failed: BlockhashNotFound. Always verify all three line up.

Network ID (CAIP-2) USDC mint RPC
solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 (devnet) 4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU https://api.devnet.solana.com
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp (mainnet) EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v https://api.mainnet-beta.solana.com

For free experiments use devnet. The hosted facilitator at agentpay-facilitator-e9b20a5fee6a.herokuapp.com supports both.

Common tasks

"Help me monetize an MCP server"

Read the full file on GitHub · 144 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. 2mo ago First seen · 144 lines · 100 tokens per session scan A 5bc3731e80fa

Subscribe to this mod's changes

agentpay is a skill published in the GitHub repository agenticpay-dev/agenticpay (3 stars, last pushed 5d ago), licensed MIT. It adds 100 tokens to every session and 1,631 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

agentpay compared with skills from other repositories

agentpay next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agentpayagenticpay-dev/agenticpaySkill35d agoMITA100Claude Code
z-zero-paymentsDempty-glitch/Z-Zero-mcpSkill114d agoMITA55Claude Code
httpayerHTTPayer/mcpSkill26mo agononeA138Claude Code
telnyx-x402-paymentteam-telnyx/aiSkill224yesterdayMITA40Claude Code
nansen-dca-trackermoonpay/skillsSkill11217d agoMITA28Claude Code
x402tenequm/skillsSkill39yesterdayMITA63Claude Code, Codex
pnp-markets-solanainternet-court/internet-court-skillSkill7.1k11d agononeA89Claude Code