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.
npx skills add romudille-bit/agentpay --skill agentpay-sessiongit clone --depth 1 https://github.com/romudille-bit/agentpayWrote 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.
[](https://agentmods.dev/skills/romudille-bit/agentpay/agentpay-session)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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.
- 2mo ago Changed c6b0e605418f
- 3mo ago First seen · 50 lines · 78 tokens per session scan A 8f1c99cb20e0
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.
agentpay-session compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agentpay-sessionromudille-bit/agentpay | Skill | 4 | yesterday | MIT | A | 78 | Claude Code |
| stipendstipend-sh/stipend | Skill | 1 | 3d ago | Apache-2.0 | A | 76 | Claude Code, Codex |
| token-reportaaronjmars/aeon-agent | Skill | 12 | 1mo ago | MIT | A | 19 | Claude Code, Codex |
| CTRLaaronjmars/aeon-agent | Skill | 12 | 1mo ago | MIT | A | 46 | Claude Code, Codex |
| holdingsaaronjmars/aeon-agent | Skill | 12 | 1mo ago | MIT | A | 39 | Claude Code, Codex |
| distribute-tokensaaronjmars/aeon-agent | Skill | 12 | 1mo ago | MIT | A | 46 | Claude Code, Codex |
| defi-overviewaaronjmars/aeon-agent | Skill | 12 | 1mo ago | MIT | A | 46 | Claude Code, Codex |