AgentPay — trust routing + spend caps for x402 agents
v2.9.2Buyer-side trust oracle + capped sessions for x402 agents: verified_route, receipts, 17 free tools.
Values you need
| Variable | What it is | |
|---|---|---|
AGENTPAY_BASE_KEY | optional secret | Optional EVM private key for wallet mode: settle paid tools in-place (gasless EIP-3009 on Base). Keyless free-tools mode works without it. |
AGENTPAY_ENABLE_PAID | optional | Set to 1 to settle paid tools from the wallet the server mints on first run (fund it with USDC on Base first). Off by default. |
AGENTPAY_MAX_SPEND | optional | Hard per-session spend cap in USD when wallet mode is enabled (default 0.10). |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add agentpay -- npx -y @romudille/agentpay-mcp@2.9.2Add to
claude_desktop_config.json{
"mcpServers": {
"agentpay": {
"args": [
"-y",
"@romudille/agentpay-mcp@2.9.2"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"agentpay": {
"args": [
"-y",
"@romudille/agentpay-mcp@2.9.2"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"agentpay": {
"args": [
"-y",
"@romudille/agentpay-mcp@2.9.2"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.agentpay]
command = "npx"
args = ["-y", "@romudille/agentpay-mcp@2.9.2"]Remote (hosted)
Run in a terminal
claude mcp add --transport http agentpay https://agentpay.tools/mcpAdd to
Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote){
"mcpServers": {
"agentpay": {
"args": [
"-y",
"mcp-remote",
"https://agentpay.tools/mcp"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"agentpay": {
"url": "https://agentpay.tools/mcp"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"agentpay": {
"type": "http",
"url": "https://agentpay.tools/mcp"
}
}
}Add to
~/.codex/config.toml[mcp_servers.agentpay]
command = "npx"
args = ["-y", "mcp-remote", "https://agentpay.tools/mcp"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: verified_route, route, estimate_plan, session_cap.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json