· Bryan Schwab

An agent paid for its own debate

On November 5, an agent with a wallet and no Pressure account asked our API for a debate room. The API answered with a price, the agent paid one dollar in a stablecoin on Tempo, a blockchain built for payments, sent the same request again, and got its room. The topic was tabs versus spaces, and Claude and Grok ended up arguing about braille displays. That agent was ours, running a test, but any agent with a funded Tempo wallet can do the same.

Why let agents pay

Pressure is built for agents. You ask your coding agent to pressure-test a plan, and it opens a room against an opponent from another lab. Until now a person still had to sign up, pick a plan, and hand the agent a key.

The Machine Payments Protocol (MPP) puts payment into HTTP. The server answers an unpaid request with 402 Payment Required and a challenge that names the price. The client pays, then sends the request again with proof of payment. An agent that holds a wallet can buy a room when it needs one, with no account, API key, or subscription.

People still sign in. If you have an account or an integration key, you never see a payment challenge, and your plan covers the room.

How a payment works

  1. The agent sends an ordinary create request with no Authorization header.
  2. The API answers 402 with one challenge per accepted coin. Each challenge names the amount, the token, our receiving wallet, the chain, and a deadline.
  3. The agent sends a transferWithMemo on Tempo, with the memo bound to the challenge it picked.
  4. The agent sends the same request again, carrying the transaction hash. We check the transfer on chain and return the room id and a relay token, which the agent uses to play its side.

An MPP client does all four steps for you. With the mppx CLI it’s one command once the wallet is funded:

npx -y mppx@0.17.0 account create -a pressure
npx -y mppx@0.17.0 https://api.pressure.dev/room -a pressure --network mainnet \
  -J '{"topic":"SQLite vs Postgres","context":"early MVP","agents":["claude","grok"],"host":{"agent":"grok","provider":"grok"}}'

A room costs $1.00. Your agent plays one side of a debate, research, or design review room (Claude played it in our first room), and we host the other side: Grok, Codex, or Gemini, on any model in our hosted catalog, including the ones that otherwise need a Pro plan. The dollar covers up to 20 hosted turns and a pinned summary at the end. The room page shows an MPP badge that links the settlement on Tempo’s block explorer. Gas on that first payment came to about $0.00003.

The replay hole we fixed before mainnet

We ran MPP on testnet for a few months before taking real money, and a security review found a hole in how we checked payments. Every paid room shows its settlement transaction on its page, on purpose, so anyone can verify the payment. Our verifier only checked that a hash was a confirmed transfer of enough USDC to our wallet; nothing tied the payment to the request that asked for it. Room creation is keyed on the transaction hash so that a retry never charges twice, which meant a copied hash presented with a fresh request led back to the original room and its relay token. Whoever held that token could play the paying side of someone else’s room.

We turned the payment rail off until it was fixed. The fix uses the memo field: a Tempo transferWithMemo carries 32 bytes, and mppx fills them with an attribution memo. This is the memo from that first mainnet room:

ef1ed712                   tag: first 4 bytes of keccak256("mpp")
01                         version
5582bf48f5c4c711bf55       hash of the server's realm
00000000000000000000       client fingerprint (none)
8668d18db3b99f             hash of the challenge id

The challenge id is an HMAC over the price, token, recipient, chain, deadline, and a random nonce, so nobody can mint a challenge that matches someone else’s payment. Each payment now answers exactly one challenge. A copied hash under a fresh challenge gets a new 402, and only the payer’s own retry, with its original challenge, reaches the room.

If you’re building an MPP server, check this yourself. The version of the Tempo charge draft we built against didn’t require the binding. The mppx SDK adds it on the client side, and the server only gets the protection if it verifies the memo.

Accepting OUSD too

Funding that first test wallet took a detour. USDC sent from an exchange to Tempo Wallet arrives as OUSD, another dollar stablecoin, so we had to swap it to USDC.e (USDC bridged onto Tempo, the coin we accepted at first) before the agent could pay. That afternoon we started accepting both: the 402 now offers one challenge per coin, and the agent pays in whichever coin its wallet holds. The first OUSD room argued monorepo versus polyrepo for a 10-person startup.

Try it

The agent payments guide covers the challenge format, picking a coin, and why retries are safe. Point an agent with a funded Tempo wallet at https://api.pressure.dev/room and it can buy its own room.

All posts