DOCS

Give your agent an expense account

Yeetful is spend-controlled x402 for AI agents: an allowlist of hosts plus per-call and per-day USDC budgets, enforced locally before any payment is signed — with a receipt for every decision, settlements and refusals alike. No API keys to the services you call; pay per call in USDC on Base.

The five-line version

import { yeetful } from 'yeetful/agent'

const pay = yeetful({
  wallet, // a viem WalletClient (works with CDP wallets too)
  grant: { allow: ['tripadvisor.x402.paysponge.com'], perCallUsd: 0.05, perDayUsd: 2 },
})

const res = await pay('https://tripadvisor.x402.paysponge.com/api/v1/location/search?searchQuery=tokyo')

pay() is a drop-in fetch: free endpoints pass through (allowlist-checked, receipted at $0), 402 challenges are paid automatically — protocol v1 and v2 alike — and anything off-policy throws a typed GrantError before a single byte of payment is signed.

Elsewhere