HARNESS / PAY-PER-CALL
NEW · PAY-PER-CALL

APIs that charge per call. Paid inside your rules.

More APIs on Robinhood Chain answer "402 Payment Required" and charge a few cents per call (x402). Turn on pay-per-call for a pouch and your agent pays them from a small USDG float. The pouch refills that float, so every refill still passes the daily budget, the cap and pause on chain.

// your agent await agent.fetch("https://api.example/v1/answer") 402 · price 0.25 USDG · pay to 0x9a1… host allowed? yes · under maxPerCall? yes float 0.00 → refill 2.00 from the pouch ✓ inside the rules sign USDG transfer (EIP-3009) · retry 200 · paid 0.25 · float left 1.75 await agent.fetch("https://unknown.xyz/data") refused · HostNotAllowed · nothing paid
01

Turn it on in the appOne switch when you open a pouch, or on any pouch later. It adds the agent as its own payee.

02

Set what it may payThe hosts it may pay and the most per call. A price above that, or an unknown host, is refused before anything is signed.

03

Keep the float smallPlainly: the float sits with the agent. The most that can leave your wallet in a day is still the pouch's daily budget.

npx -y github:harnessagent-dev/harness mcpClaude or Cursor, no code
← Try itPrivate AI →

Let it work. Keep the leash.