← Writing

2026-10-15 · Guide

How to build an agent economy from zero

The complete field guide — every step, every pitfall, the whole bill. Written after three days of doing it for real.

Three days ago I started building an agent that could get paid on its own. As of today, three strangers have paid it — $0.025 in total. Tiny money; a complete loop. This is the full route: every step, every pitfall, the whole bill.

What you need: a server, one real asset (data or a capability), a crypto wallet. No funding round, no team. My total cash spend so far: about seven cents.

Step 1 — Turn an asset into a service

Agents don’t shop like humans. They don’t browse pages, they don’t read marketing — they read interfaces. Your asset has to exist as a machine-readable API.

I took a market-data pipeline I already had and made three services out of it, priced $0.005–$0.01 per call. The pricing rule is one line: cheap enough that no agent has to schedule a meeting about it.

Every service must describe itself — price, parameters, response shape — inside the interface itself, not inside your landing-page copy.

Step 2 — Install payment rails (x402)

x402 is a checkout counter designed for plain HTTP. The logic is two sentences:

  • No payment? Reply 402 with a bill — price, chain, receiving address, all in the response.
  • Paid? Reply 200 with the data.

Clients sign and settle automatically; no human touches a checkout page. Our rails run on Base with USDC — this is the machine world’s tap-to-pay.

Engineering notes: self-custody your wallet and keep the key out of the codebase, forever. If the wallet lacks gas, a USDC→ETH swap can be done through CoW Swap without ever leaving the browser session.

Don’t want to rediscover the pitfalls? They’re all turned into guards in an open-source starter: x402-seller-starter — preflight checks, proxy-buffer example, discovery checklist.

Step 3 — Make the world find you

A shop belongs on a busy street. The x402 world has five streets worth paving, ten minutes each:

  1. CDP Bazaar — Coinbase’s public directory (pro tip: a settlement automatically triggers its crawler to index you)
  2. MCP Registry — reaches clients that speak MCP
  3. ERC-8004 — your on-chain agent identity (ours is #117683)
  4. A2A agent-card — the self-introduction machines read when they knock
  5. Virtuals ACP — a commerce platform where you can take subscription-shaped orders

Indexing is asynchronous — expect hours, not seconds. Re-check with a script on a schedule; never conclude from a single look.

Step 4 — Make machines trust you

Machines do due diligence before buying. Two moves:

Dogfood. Buy your own service with a separate buyer wallet, daily. It proves the whole chain works and feeds activity into the directories.

Get audited by someone who pays their own money. vet402 — a service that buys x402 endpoints and publishes what it measures — paid $0.005 for our data, confirmed delivery (L1 ✓), and published an ALLOW in its pre-payment check. That record is worth more than any self-promotion.

And the iron rule: only show numbers you can verify. Never invent “99.9% uptime” — with agents, honesty isn’t a virtue, it’s an asset.

Step 5 — Wait for the first stranger

Overnight on day two, with nobody watching, settled.tools paid $0.005. On day three, vet402 paid too. Three-day total: $0.025.

The amount is not the point. The point is the loop — discovery → payment → delivery → reconciliation — with no human anywhere in it.

Pitfalls (all of these are real)

Pitfall Lesson
Metadata description too long (>500 chars) It breaks payment validation — metadata is part of the payment surface
Rich metadata inflating the challenge past 4 KB A proxy buffer can truncate the bill — raise the buffers
HEAD requests They bypassed the paywall and leaked data size — intercept them explicitly
“No body = no leak” intuition The leak lives in headers (content-length, ETag) — treat every byte like it’s money
Concluding “not indexed” from one check Indexing is async — re-scan the full directory
Self-tests bleeding into the external ledger Keep two books — your numbers must survive third-party scrutiny

The bill

  • Time: 3 days
  • Spent: ~$0.07 (experiment purchases + gas)
  • Earned: $0.025 (3 independent payers, 4 settled payments)
  • Verdict: this is options logic — buy process evidence cheap, then let exposure compound

Closing

You don’t need permission, and you don’t need to feel ready. Set up the till, make the goods real, walk onto the street. The first visitor may be an auditor instead of a customer — welcome that too. Being verified is its own currency.

Full numbers live on the /agent/ page — every digit is verifiable on-chain.