The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Agentpay listing page.
Most agent-payment tools are a wallet — they move money. AgentPay is the layer that decides whether to spend it at all.
AgentPay is the economic intelligence layer for MCP servers and AI agents.
Agents spend money. Most don't know how much, or why, until the session ends and the bill arrives.
AgentPay gives agents economic intelligence — the ability to reason about cost while they work, not after.
It starts with a budget. Every session opens with a hard cap enforced at the payment layer — not in code a model can ignore, but at the point where money moves. The agent knows from the first call exactly what it has to spend.
Before calling a tool, it knows what that call costs. Mid-task, it can check what's left and route to a cheaper alternative if the math doesn't work. When the session ends, a receipt captures every call, every cost, every decision — not a debug log, but proof of economic accountability.
The developer sees all of it: spending patterns per agent, anomaly flags when something loops or spikes, policy controls that enforce exactly which tools an agent can use and how much it can spend on each.
The result is an agent that doesn't just have a budget. It knows how to use one.
Start free: 20 tools (17 free), no USDC needed, no wallet setup required.
Live gateway: https://agentpay.tools
17 free tools. No USDC, no wallet, no API keys, no human. quickstart() registers
an agent, mints a wallet, and returns a ready, budget-capped session.
Set a hard budget, or bring your own funded wallet to pay for tools:
Every call is session-tracked, and the cap is enforced before any payment is signed.
Every call is session-tracked — you get a receipt showing every tool called, every cost, and every timestamp.
| Tool | Parameters | Returns |
|---|---|---|
url_reader | url | Clean markdown content of any web page |
web_search | query | Top 5 results with full content |
market_snapshot | — | S&P 500, Treasury yield, BTC, ETH, gas in one call |
token_price | symbol (BTC, ETH, SOL…) | price_usd, change_24h_pct, market_cap_usd |
gas_tracker | — | slow/standard/fast gwei, base_fee_gwei |
fear_greed_index | limit (days of history, default 1) | value 0–100, value_classification, history[] |
token_market_data | token_a, token_b | volume_24h_usd, market_cap_usd, price_usd |
wallet_balance | address, chain (ethereum/stellar) | token balances |
whale_activity | token, min_usd (default 100k) | large_transfers[] with direction, total_volume_usd |
defi_tvl | protocol (optional, e.g. "uniswap") | tvl, change_1d, change_7d, chains[] |
token_security | contract_address, chain | risk_level, is_honeypot, buy_tax, sell_tax |
open_interest | symbol (BTC, ETH…) | total_oi_usd, oi_change_1h/24h_pct, long_short_ratio |
orderbook_depth | symbol (e.g. ETHUSDT) | best_bid/ask, spread_pct, slippage at $10k/$50k/$250k |
funding_rates | asset (optional) | funding_rate_pct, annualized_rate_pct, sentiment per exchange |
crypto_news | currencies (e.g. "ETH,BTC"), filter | headlines[] with title, url, sentiment, score |
yield_scanner | token, chain (optional), min_tvl | top 10 pools by APY with protocol, tvl_usd, risk_level |
dune_query | query_id, limit, fast_only | rows[], columns[], row_count from Dune Analytics |
session_create | agent_address, max_spend, label | session_id, budget config, gateway_url, receipt — $0.01 |
pre_trade_check | symbol, size_usd, side, token_address? | one-call trade verdict (ok/caution/avoid): slippage at YOUR size, side-aware funding carry, OI crowding, optional security — $0.01 |
verified_route | need, budget_usd?, chain? | buyer-side trust oracle: sweeps the x402 marketplace, collapses sybil/factory clusters, ranks real providers by usage × delivery scores → one vetted recommendation + ready_to_pay challenge — $0.01 |
This is the economic intelligence layer in practice. The Session gives your agent — and you — real visibility into what happened, what it cost, and why.
Control exactly what your agent is allowed to do:
BudgetExceeded fires before any payment goes out if a tool would push you over the cap, isn't on the allowlist, or exceeds its per-tool limit.
Five free tools, one session, full receipt.
Installs the agentpay-route skill (find, judge, and pay for the best paid x402 tool
within a budget) and agentpay-session (hard spend cap + verifiable receipts) into
Claude Code, Codex, Droid, OpenCode, or any skills-CLI-compatible
runtime. Pair with the MCP below for keyless routing out of the box; add
AGENTPAY_BASE_KEY + AGENTPAY_MAX_SPEND for capped, in-place paid calls.
Installs the agentpay-route skill — your agent finds, judges, and pays for the best paid
x402 tool within a budget — plus the 17 free tools. No keys needed to route.
Self-contained — pure Node, no Python, no repo, no keys to start:
Exposes the 17 free tools plus verified_route (buyer-side trust oracle —
free preview keyless, full paid payload in wallet mode), route (legacy alias)
and estimate_plan (price a multi-tool plan before spending). Listed on
Glama.
Wallet mode (v2.4.0): add an EVM key and paid tools settle in-place — gasless EIP-3009 on Base (no ETH needed; nothing broadcast client-side, a rejected call moves no USDC) under a hard session cap:
Fund the key's address with USDC on Base mainnet; every paid call counts
against AGENTPAY_MAX_SPEND and is refused past the cap — the budget story,
enforced inside the MCP itself. Use a dedicated small-balance key.
When an agent needs a paid tool, AgentPay discovers the options across the x402 marketplace, drops the fake/empty stubs, ranks by real usage (not price), and recommends the cheapest one that actually works — within a budget. The agent pays the provider directly (peer-to-peer, no custody) and keeps a verifiable receipt.
Three tools cost money today. session_create opens a budget-capped session with a
hard max_spend limit — for autonomous agents that need spend enforcement across
multiple calls. pre_trade_check is the first outcome bundle: one call returns
an ok/caution/avoid trade verdict from live orderbook slippage at your size,
side-aware funding carry, open-interest crowding, and an optional contract security
scan — with the per-factor breakdown and raw components embedded. verified_route
is the buyer-side trust oracle: "I need X, budget $Y — which x402 tool is
real?" It sweeps the whole marketplace, collapses sybil/factory clusters, keeps
only providers relevant to your need, ranks them by real unique-payer usage ×
the Prober's paid delivery scores, and returns
one vetted recommendation with a ready-to-pay challenge. All 17 data tools
remain free.
Price any plan before spending a cent (free, no wallet): POST /v1/plan/estimate,
or session.estimate_plan([...]) from the SDK.
When metered inference ships, it works through the same Session interface — your agent checks cost, decides if it's worth it, and pays in USDC on Base or Stellar (via the SDK).
To fund a wallet for session_create: send USDC to a Stellar wallet (S... key, issuer GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN) or a Base wallet (0x..., contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913).
AgentPay's flagship analyst agent (agents/analyst/) runs daily on these exact
rails as a real customer: it prices its plan with estimate_plan, gathers free
intel, buys pre_trade_check verdicts on the majors under a hard $0.25 cap, and
publishes a market note with an on-chain-verifiable receipt. The first best
customer is the house.
AgentPay is an x402 payment gateway and economic intelligence layer — agents call tools within a hard budget cap, pay USDC on-chain when tools cost money, and accumulate a full session receipt as they work. Free tools skip the payment step entirely; the session tracking and cost awareness are always on.
Base settles via the standard x402 exact scheme (gasless EIP-3009 through the
CDP facilitator) — any standard x402 client can pay AgentPay on Base, no AgentPay
SDK required.
Stellar settles as a classic payment + text memo verified directly on Horizon.
It is supported by the AgentPay SDK (pip install agentpay-x402) and by manual
payment per the 402 instructions — but it is not the standard @x402/stellar
scheme (which uses Soroban null-account templates, signed auth entries, and
facilitator settlement). A standard @x402/stellar client cannot pay AgentPay's
Stellar rail today; migrating to the standard Soroban scheme is on the v2 roadmap.
Standard clients should pay on Base — Circle CCTP bridges USDC 1:1 between the two.
AgentPay settles x402 micropayments in sBTC on Stacks — budget-capped, signed
sign-don't-broadcast, broadcast by the gateway. Testnet (Milestone 1 of the Stacks
Endowment grant) is demonstrated live; mainnet settles against agentpay.tools:
docs/stacks-mainnet.md — config, the one-liner, redeeming an uncertain settle, ledger verification.docs/stacks-m1.md — setup, known limitations, dependencies.examples/stacks_m1_demo.py — capped session → sBTC payment → receipt → over-cap rejection (STACKS_NETWORK=mainnet for mainnet).0xa5351bad… — sbtc-token::transfer, payer → gateway, status success (PoX-5 testnet, block 82215).| Directory | Status |
|---|---|
| PyPI | ✅ agentpay-x402 |
| x402scout | ✅ indexed, health-checked every 15min |
| Glama MCP | ✅ listed |
| awesome-x402 | ✅ listed |
| npm | ✅ @romudille/agentpay-mcp |
| skills CLI | ✅ npx skills add romudille-bit/agentpay |
| 402index.io | ✅ domain verified, 17 tools synced |
| x402-list.com | ✅ listed 2026-09-07 — 3 paid endpoints, 14/14 x402 compliance, measured (never self-attested) score |
| Coinbase Bazaar | ✅ indexed via REST — session_create, pre_trade_check, verified_route (Base). ⚠️ NOT in the curated set: invisible on the MCP search_resources default (AGE-125) |
| Claude Code plugin | ✅ /plugin marketplace add romudille-bit/agentpay |
| MCP Registry | ✅ io.github.romudille-bit/agentpay v2.4.3 (official) |
| 402audit | ✅ audited — score 100, verdict "proprietary" |
| signal402 | ✅ auto-indexed from Bazaar (6h refresh) |
| x402.fuchss.app | ✅ listed — grade recovering post-AGE-123 |
| dropped — redundant with Bazaar (SPA mirror) |
Agent-readable endpoints:
| Endpoint | Purpose |
|---|---|
/.well-known/agentpay.json | AgentPay manifest |
/.well-known/agent.json | A2A agent card |
/llms.txt | LLM-readable service description |
/.well-known/l402-services | 402index.io discovery format |