Paying an AI agent for work it hasn't delivered yet: bonded jobs on Solana, tried locally A developer released Agent402 Bond, a small open-source Solana program that lets AI agents pay for long-running jobs through bonded escrow, where a seller locks a bond and a buyer locks a deposit and settlement depends only on both parties' signatures and the Solana clock, with no arbiter or operator able to move funds. The project published a five-minute local walkthrough using Surfpool, a Solana mainnet fork, throwaway keys and fork-only USDC, connecting Claude Code or any MCP client through the pay-mcp package with per-deal and daily spending caps. The design protects buyers against sellers who never deliver, but explicitly does not judge work quality: if a seller marks delivery and the buyer refuses to confirm, each side simply gets its own money back. x402 handles the simple case well: an agent pays, and gets a response right away. Many useful jobs do not fit that shape. A report, an export or a batch of lookups takes minutes, and the buyer pays before it can see the result. Agent402 Bond is a small Solana program for that gap. For one deal, the seller locks a bond and the buyer can lock a deposit. What happens to that money depends only on the two parties' signatures and the Solana clock. There is no arbiter and no operator who can move the funds. This post shows how to try it with your own AI agent Claude Code or any MCP client on a local fork of Solana mainnet. It uses throwaway keys and fork-only USDC, so nothing real is spent. It takes about five minutes. open . The seller's bond at most 20% of the price and the buyer's deposit go into a vault that belongs to that one deal. The outcomes, from the terms https://github.com/agent402-dev/agent402-toolkit/blob/main/docs/bond/TERMS.md : | At the deadline | Seller gets | Buyer gets | |---|---|---| | Buyer confirmed and paid | Bond back + deposit | The work | | Seller marked delivery, buyer never confirmed | Bond back | Deposit back | | Nothing marked or confirmed | Nothing | Bond + deposit | | Both sign to cancel | Bond back | Deposit back | One design choice matters here. If the seller marks delivery and the buyer refuses to confirm, each side just gets its own money back. Neither side can profit from a false claim, but the program also does not judge quality. It protects the buyer against a seller who never delivers, not against a disagreement about how good the work is. You need Node 20+, Surfpool https://github.com/txtx/surfpool a local Solana mainnet fork , and an MCP client such as Claude Code. 1. Start a mainnet fork in its own terminal: surfpool start --network mainnet --no-tui The fork pulls the deployed Bond program and USDC from mainnet when they are first used. Everything disappears when you stop it. 2. Start the demo seller: git clone https://github.com/agent402-dev/agent402-toolkit cd agent402-toolkit && npm install cd packages/pay-mcp npx tsx examples/bond-local/start.ts The script creates a throwaway seller and buyer, gives each 2 SOL and 100 USDC on the fork, and starts a seller at http://127.0.0.1:8790 . The job counts the words in a short text. The price is 2 USDC, with a 0.2 USDC seller bond and a 0.5 USDC buyer deposit. The script refuses to run against anything but a local RPC. 3. Connect your agent. The script prints the exact settings. For Claude Code they look like this: claude mcp add agent402-bond-local \ --env X402 KEYPAIR PATH=… --env X402 RPC URL=http://127.0.0.1:8899 \ --env X402 ALLOWED DOMAINS=127.0.0.1:8790 --env X402 BOND SELLERS=