A stateful, multi-chain spending session for AI agents
agentpay.tools/v1/session/create
A stateful, multi-chain spending session for AI agents. One session enforces a hard USDC budget cap across every tool call, with a verifiable receipt and running ledger for each payment — not a one-shot budget check, but persistent spend governance with a full audit trail. The gateway enforces the cap for the paying wallet on Stacks and Base. USDC on Base (standard x402) or Stellar (via the AgentP
POST
https://agentpay.tools/v1/session/createUptime100% of 5 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agentpay.tools/v1/session/create", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"agent_address":"0x0000000000000000000000000000000000000000","label":"session","max_spend":"0.10"}),
});
console.log(await res.json());Example input
{
"agent_address": "0x0000000000000000000000000000000000000000",
"label": "session",
"max_spend": "0.10"
}