← Writing

Agents that pay each other

HTTP 402 has been a ghost in the spec since 1996. “Payment Required”, reserved for future use, never implemented, collecting dust in RFC 2616. The joke was that no one could figure out what it should actually do. Twenty-nine years later, Coinbase shipped x402 and gave it an answer: machine-readable payment instructions, stablecoin rails, no human in the loop.

That’s the short version. The longer one is why it matters for agents specifically.

what x402 actually is

The protocol is dead simple. A server receives a request from a client, an AI agent, a script, whatever, with no payment attached. The server responds with a 402 and a header describing what it wants: amount, asset, destination chain address. The client parses that, constructs a signed transaction, replays the request with proof of payment, and the server accepts it or rejects it. No API keys negotiated out of band, no billing portal, no monthly invoice. The payment is the authentication.

For humans this is a marginal improvement over a credit card. For agents it changes the architecture entirely. An agent can hit a new service it’s never seen before, pay for exactly what it used, and move on. No pre-configured accounts, no human approving the spend. The 402 response is the contract. The transaction is the handshake.

x402 launched in May, mostly quiet. It started picking up real usage mid-October, and by the time I shipped the integration into SAM it had a Foundation and a growing list of endpoints. The implementation on my side: SOL on Solana through PayAI (which handles the facilitator and SDK), plus EVM support and the Coinbase x402 facilitator for Base and other EVM chains. The multi-chain part matters less than it sounds. What matters is that a SAM agent can now encounter a 402 in the wild and resolve it without coming back to a human.

the agent-to-agent part

Multi-agent systems were already in SAM before this. The October update wired in the coordination layer, multiple agents splitting tasks, passing context. What x402 adds is the economic layer on top of that.

Think about what happens when one agent needs to pay another for a subtask. Right now most “agent economy” discourse treats this as a future thing, a thought experiment. It isn’t. The mechanism exists today: one agent holds a wallet, receives a 402 from a service endpoint run by another agent or a specialized node, pays it in SOL or USDC, and gets the result. No humans involved in the transaction, settlement is on-chain, the receipt is a signed transaction hash.

The interesting cases aren’t dramatic. An agent that manages a Hyperliquid perp position, paying a data agent for a volatility estimate before sizing a trade. A prediction-market agent, SAM already has Polymarket live and Kalshi rolling out, paying for a probability feed. An agent managing someone’s portfolio paying for execution against a liquidity endpoint. These are small, frequent, automated micropayments. The kind of thing that would be completely uneconomical with traditional payment rails and completely trivial on Solana.

I’ve been framing this as “AI-Fi” partly because it’s accurate and partly because it’s a useful shorthand. Autonomous agents, on-chain settlement, no custodian in the middle. The prediction-market integration fits here too: agents that reason about outcomes, express positions, and settle through the same wallet infrastructure. It’s a coherent stack.

how fast a real thing becomes a meme

The window between “useful protocol” and “timeline narrative” is getting shorter. x402 had been live for five months before most of crypto knew what it was. Then it had about a week.

The PayAI token went from obscure to $20M market cap in a day after the integration noise started. By the weekend, every project with “AI” in the name was posting about agent economies. Most of them had no implementation, just the framing borrowed from people who did. That’s the usual pattern, but it compressed hard this time. Tuesday it was a technical announcement. Friday it was a meta-narrative about the future of finance. By Monday it’ll be a meme nobody remembers shipping.

I don’t have strong feelings about this. It’s how the casino works. The signal is that x402 is a real spec with real implementations, the Foundation is independent, and the endpoint count is growing. That stuff survives the narrative cycle even if the narrative doesn’t.

What I’ll keep for SAM: the facilitator stays on PayAI because they did the integration work early and the SDK is clean. EVM support is through the Coinbase facilitator. The agent wallet layer was already there. Payments are just another tool in the registry, same as a Hyperliquid trade or a Polymarket position.

The frontend is still coming. Once it’s live, a non-technical user will be able to spin up an agent with a custom prompt, point it at a set of tools, perps, prediction markets, x402 endpoints, and let it run. If the agent performs well, it can earn through x402 payments from other users. That’s the marketplace model, and the payment protocol is the part that makes it not hypothetical.

For now it’s CLI, it works, and the agents are already sending transactions.