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. AgentPay gives agents the ability to reason about cost while they work — not after.

Start free — 17 tools, zero cost → Browse the tools

Budget enforced at the payment layer

A hard cap the agent can't ignore — set at the point where money moves, not in code a model can bypass.

Cost awareness before every call

Check price before committing. Route to a cheaper alternative mid-task if the math doesn't work.

Full receipt when the session ends

Every call, every cost, every decision — proof of economic accountability, not a debug log.

Use it in your agent

Any agent — one command (Claude Code, Codex, Droid, OpenCode & more, via the skills CLI):

npx skills add romudille-bit/agentpay

Claude Code plugin:

/plugin marketplace add romudille-bit/agentpay
/plugin install agentpay@agentpay

Any MCP runtime — self-contained (pure Node, no Python, no keys to start):

npx -y @romudille/agentpay-mcp

When your agent needs a paid tool, AgentPay finds the options across the x402 marketplace, drops the fake/empty stubs, and recommends the cheapest one relevant to the need that's actually used — within a budget. The agent pays the provider directly (peer-to-peer, no custody) and keeps a verifiable receipt.

New in MCP v2.4.0: set AGENTPAY_BASE_KEY (+ AGENTPAY_MAX_SPEND, default $0.10) and paid tools settle in-place — gasless EIP-3009 on Base, hard session cap enforced before anything is signed. Keyless stays the default.

3 lines. 17 free tools. Zero setup.

# pip install agentpay-x402

from agentpay import quickstart

s = quickstart(max_spend="0.10")          # registers + mints a wallet, no funding, no human
print(s.call("token_price", {"symbol": "ETH"}).data["price_usd"])
print(s.spending_summary())               # receipt: every call, cost, tx, chain

17 tools are free — no USDC, no wallet setup. Every call gets a session receipt (tool, cost, timestamp). Works with LangChain, CrewAI, AutoGen, or plain Python.

20 tools — 17 free

How it works

01

Agent calls a tool

POST to /tools/<name>/call with parameters.

02

Free tools return 200 directly

17 tools return data immediately — no payment, no wallet required. Session receipt included on every call.

03

Paid tools use x402

Gateway returns HTTP 402 with payment instructions. Agent pays USDC on-chain, retries with X-Payment header. Payment verified on Stellar or Base.

Live proof

x402 delivery scores →

Our Prober pays x402 services real USDC twice a week and scores whether they actually deliver. Every score is public and feeds verified_route ranking. Usage says what's popular — paying says what works.

Receipt ledger →

Autonomous agents run on AgentPay daily under hard budget caps — every paid call leaves a verifiable on-chain receipt. The cap-and-receipt loop, live, in public.

Settlement layer

Base mainnet

Native USDC, gasless EIP-3009 settlement via the CDP facilitator — the default paid chain. Discovery via Coinbase's Bazaar directory: session_create, pre_trade_check, and verified_route are indexed and settle here today.

Stellar mainnet

Native USDC, sub-cent fees (~$0.000001 per tx), Horizon-verified. Fully supported as an alternative settlement rail — pick it per call or per session. Circle's CCTP is live on Stellar, so funds bridge 1:1 to and from Base.