Most x402 tutorials start with "create a wallet and fund it". That is a lot to ask before you know whether anything useful is on the other side. This one starts with nothing: no wallet, no keys, no funds. Your agent reads live sellers and real prices, and it cannot pay anything.
1. Add the MCP server with one allowed domain and no wallet
claude mcp add a402-try \ -e X402_ALLOWED_DOMAINS=agent402-tx-receipts.agent402-ebc.workers.dev \ -- npx -y @agent402-dev/pay-mcp Other MCP clients: command npx, args ["-y", "@agent402-dev/pay-mcp"], the same env.
Without X402_KEYPAIR_PATH there is no wallet, and without X402_TRUSTED_PAY_TO every payment is refused before signing.
2. Ask your agent to find sellers
"Run bond_find_sellers." It reads an open directory of job URLs and each seller's live terms: price, seller bond, buyer deposit, delivery time, review window. For each seller it also says which of your settings would refuse the deal. Today the directory lists two small sellers run by the toolkit developer (Solana transaction receipts and wallet activity CSV), marked as developer-run.
3. Ask for a price
"Run x402_quote on https://agent402-tx-receipts.agent402-ebc.workers.dev/x402/receipts?signatures=". The server answers HTTP 402 with its price (0.05 USDC). pay-mcp shows it and answers refused, because no recipient is trusted yet. Nothing is signed.
4. When you want to pay for real
Create a small wallet just for the agent (npx -y @agent402-dev/pay-mcp init), fund it with a few USDC, and add the recipient and limits you choose. Bonded jobs (the seller locks a bond, you lock a deposit, you accept after checking a hash of the result) use the bond_v2_* tools. The Bond v2 program has no upgrade authority; it was reviewed internally and is not independently audited.
Links
- Getting started: https://github.com/agent402-dev/agent402-toolkit/blob/main/docs/getting-started.md
- Previous post: https://dev.to/agent402dev/bonded-jobs-for-ai-agents-on-solana-x402-for-the-instant-part-a-bond-for-the-rest-dkn
- Sell your own job: the Cloudflare Workers template in packages/pay-server/examples/bond-seller-worker
Not related to agent402.tools or other similarly named projects. Not investment advice.
Originally published in the Agent402 toolkit repository: Getting started.