agentpay-session

agentpay-session is a skill for Claude Code from romudille-bit/agentpay. It costs 78 tokens per session (631 once invoked), scanned A, original, MIT.

A payment-control session for an AI agent that limits spending in USDC, a digital currency tied to the US dollar, and records receipts.

In plain words
What is it for?
Use it to enforce a spending limit, track autonomous payments, and produce an audit trail with verifiable receipts.
Why use it?
It prevents paid tool or API calls from exceeding a set budget and keeps a ledger of spending for checking later.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the agentpay plugin — 2 skills, 1 MCP server shipped together

Good fit Use it to enforce a spending limit, track autonomous payments, and produce an audit trail with verifiable receipts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/romudille-bit/agentpay/agentpay-session
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 romudille-bit/agentpay --skill agentpay-session
Clone the repo
git clone --depth 1 https://github.com/romudille-bit/agentpay

Made for: Claude Code.

Or install agentpay, the plugin that ships this one along with the rest of its 2 skills, 1 MCP server.

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-session

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/romudille-bit/agentpay/agentpay-session"><img src="https://agentmods.dev/badge/skills/romudille-bit/agentpay/agentpay-session.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 631 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.00078 $0.00631
Opus 5.5 $0.00031 $0.00252
Sonnet 5.5 $0.00016 $0.00126
Haiku 4.5 $0.00008 $0.00063

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

Security

Grade A, and why

agentpay-session 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 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.

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.

plugins/agentpay/skills/agentpay-session/SKILL.md · 50 lines

How it starts

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

AgentPay — budget-capped session + receipts

Once the agent has chosen a paid tool (see the agentpay-route skill), wrap the payment in an AgentPay session so spend stays under a hard cap and every call leaves a verifiable receipt. This is the spend-governance layer: budget enforcement + receipts + a running ledger across calls, multi-chain (USDC on Base or Stellar, sBTC on Stacks), peer-to-peer (AgentPay never holds funds).

When to use

  • Enforce a hard USDC cap across an agent's paid calls.
  • Track / audit what the agent spent (per call: cost, tx, chain).
  • Produce a receipt or ledger for autonomous payments.

How

pip install agentpay-x402
from agentpay import Session, AgentWallet
s = Session(AgentWallet(secret_key="S...", base_key="0x..."), max_spend="0.05")

s.remaining_usd()                  # budget left, before committing to a call
r = s.call("<provider-url-or-tool>", {...})   # pays within the cap; raises if over budget
print(s.spending_summary())        # receipt: each call's cost + tx + chain + remaining

Zero-setup variant for the free tools / trying it: from agentpay import quickstart; s = quickstart(max_spend="0.10").

No-Python variant — the AgentPay MCP's built-in cap. If the agent runs through the AgentPay MCP (npx -y @romudille/agentpay-mcp), set AGENTPAY_BASE_KEY (dedicated small-balance EVM key) + AGENTPAY_MAX_SPEND (default $0.10) in the server's env: paid calls settle in-place (gasless EIP-3009 on Base) and are refused BEFORE signing once the cap is hit — the same budget story, enforced inside the MCP.

Principles (honor these)

  • The hard cap is SDK/session-enforced (client-side); the gateway issues the session id, receipts, and ledger. Don't claim wallet-level or server-side enforcement.
  • Base is the default paid chain, Stellar the automatic fallback (prefer_chain="stellar" to override). Free ($0) tools never settle on-chain and need no wallet.
  • Peer-to-peer: the agent pays the provider directly; AgentPay caps + receipts, never custodies.

Read the full file on GitHub · 50 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 Changed c6b0e605418f
  2. 3mo ago First seen · 50 lines · 78 tokens per session scan A 8f1c99cb20e0

Subscribe to this mod's changes

agentpay-session is a skill published in the GitHub repository romudille-bit/agentpay (4 stars, last pushed yesterday), licensed MIT. It adds 78 tokens to every session and 631 once invoked, about $0.0003 per session on Opus 5.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.

Related

agentpay-session compared with skills from other repositories

agentpay-session next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agentpay-sessionromudille-bit/agentpaySkill4yesterdayMITA78Claude Code
stipendstipend-sh/stipendSkill13d agoApache-2.0A76Claude Code, Codex
token-reportaaronjmars/aeon-agentSkill121mo agoMITA19Claude Code, Codex
CTRLaaronjmars/aeon-agentSkill121mo agoMITA46Claude Code, Codex
holdingsaaronjmars/aeon-agentSkill121mo agoMITA39Claude Code, Codex
distribute-tokensaaronjmars/aeon-agentSkill121mo agoMITA46Claude Code, Codex
defi-overviewaaronjmars/aeon-agentSkill121mo agoMITA46Claude Code, Codex