Inference is irreversible. A card payment is not.
One sentence holds the whole argument behind pi402, and everything else is implementation.
Your coding agent calls a paid model. A gateway answers 402 with a macaroon and a Lightning invoice. That macaroon commits to the invoice's payment hash. Pay it, and the preimage you receive completes the macaroon into a valid credential. Retry, and the same request goes through.
Payment is the login. Not a receipt issued after the fact, but the credential that authorizes the request.
Why anyone bothered: sell inference on credit cards and you are not a merchant, you are a lender. You burn GPU time now, for an amount you cannot know in advance, and you find out somewhere between 60 and 120 days later whether you were paid. Every signup wall, every invasive fraud check, every minimum top-up is an attempt to underwrite that loan. OpenCode's CEO posted a Stripe dashboard showing $323 million in blocked card fraud across a few days. This is the default rate arriving as a line item.
Lightning settles in seconds and settles finally. Either a preimage exists or it does not. Nothing to charge back, because nothing can be reversed. Payment is exactly as irreversible as the joules it bought.
Almost nobody is pricing the rate correctly. It is quoted in millisatoshis, not dollars: one msat per input token, two per output. At today's price that is 71 cents per million tokens coming in, $1.43 going out. At a bitcoin price of $80,500 it was 80 cents. Sellers are long bitcoin whether they meant to be or not, and the buyer's bill falls when bitcoin falls.
Two honest notes, because the enthusiasm is running ahead of the code. The package sits at v0.0.5 with zero releases, no hosted seller exists to point it at yet, and a fresh install defaults to regtest rather than mainnet. Also mind the name: there is an unrelated pi-402 on npm from another author. Install @lightninglabs/pi-402.
Every account, every API key, every card on file is a person that somebody can identify, bill, or cut off. An agent holding a wallet is none of those things. This shift does not need a marketing department to make the case.
