Lightning Labs just handed AI coding agents a bitcoin wallet. The agent now pays for its own tokens, and nobody asks it for an API key.
pi402, announced Nov. 12, plugs into the Pi coding agent. Call a paid model and the server answers "402 Payment Required" with a Lightning invoice. The agent's built-in wallet pays it, and the receipt doubles as the login. Billing is per token, in fractions of a satoshi, with per-request and daily spending caps you set.
The pitch is chargebacks. Sell inference on credit cards, Lightning Labs argues, and "you aren't actually a merchant, you're a lender," waiting 60 to 120 days to learn if you got paid. A Lightning payment can't be reversed. Neither can the electricity.
One line on the project's own site: "There is no public seller yet." The wallet is open. The shop isn't.
Source: Lightning Labs: Announcing pi402
