Browser-redirect checkouts for AI agents are a joke. Here is how we solved machine-to-machine payments
Every "AI Agent payment rails" startup I see is just wrapping Stripe checkout in a WebView. It’s brain-dead. An autonomous agent is not going to open Chromium, fill a billing address, and solve a Cloudflare turnstile.
If we want real machine-to-machine economy, agents must transact programmatically, in-band, without humans in the loop.
We built MCPay to fix this. It leverages a strict HTTP 402 Challenge-Response flow:
The Block: Agent tries to write/call an API. Gateway returns HTTP 402 Payment Required + a signed challenge containing a spend cap, nonce, and payload hash.
The Signature: Agent signs the challenge using its scoped sub-key (Ed25519 capability chain).
The Execution: Agent retries the request with the cryptographic proof in the headers. Gateway verifies it in <2ms and releases the call.
If the agent mutates a single byte of the payload to bypass limits, the signature breaks and execution drops before any state changes.
No browser hops. No post-factum logging. Pure cryptographic pre-execution policy gating.
It's open-source. What did we miss?