As reported on November 13, 2026, Lightning Labs had released pi402, an open-source extension for Pi coding agents, on November 12. According to Crypto Briefing, the extension lets an agent pay for its AI inference usage in bitcoin over the Lightning Network.
The payment flow starts when the agent encounters a price. pi402 uses the L402 protocol to pair an HTTP 402 “Payment Required” response with a Lightning invoice. The agent can pay the invoice and resume work without registering an account or providing an API key or credit card. Charges are based on tokens consumed rather than a fixed subscription. In the demonstration, prices were approximately $0.375 per million input tokens and $1.50 per million output tokens.
Sellers can use Aperture and Lightmeter to accept payments. According to the report, an Ark-based Wavelength wallet handles payments, so neither buyer nor seller needs to run a Lightning node. The reported demonstration prices are not a claim that those rates apply to every seller.


