All writings
AGENTS2 min read

I Gave My AI Agent a Wallet

Everyone's building agents that can browse, code, and call APIs. Cool. But the second one hits a paywall with an empty wallet, it just… stops. So I built the money rails for the machine economy.

I Gave My AI Agent a Wallet

We're all hyped about autonomous agents. They can browse, write code, call tools, chain twenty steps together. Genuinely wild.

Then the agent hits an HTTP 402 Payment Required and the whole demo dies.

Because here's the thing nobody wants to say out loud: agents can act, but they can't pay. They have no credit history, no card, no bank willing to underwrite a bot. And when one agent pays another agent, there's zero protection if the work comes back wrong. The "agent economy" everyone tweets about is missing its two most boring, most important pieces: credit and settlement.

So I built them.

Credit: Fund402

When an agent hits a 402 with an empty wallet, Fund402 fronts the micropayment from an on-chain liquidity pool on Casper, settles it, and records the loan + the agent's reputation on-chain. No human in the loop. The agent repays later; the fee becomes yield for the liquidity providers.

It's literally a credit card for the machine economy — the agent version of "buy now, the pool will spot you."

Settlement: Clawback

Okay, but if my agent pays your agent for a deliverable and the deliverable is garbage — then what? On the current internet, nothing. You eat it.

Clawback holds agent-to-agent payments in escrow against a stated spec. Good delivery → released. Bad delivery → disputed, and a Groq AI verifier adjudicates the refund. Chargebacks, but for bots. Reputation follows every agent so the scammers get priced out.

Payment as a proof: null-402

And because I can't help myself, I made a private version: x402 where the payment is a zero-knowledge proof. The agent escrows once, then pays per API call with a Groth16 proof — no wallet, no amount, no endpoint revealed. Just a nullifier so it can't double-spend.

Why this matters

The agent hype cycle is all about capabilities — reasoning, tools, memory. But an economy runs on trust and money, and right now agents have neither. Whoever builds those rails builds the plumbing everything else sits on.

I'd rather build the plumbing. It's less glamorous and way more important.

Read next

Privacy Is the Whole Point