CoinSwage

Lightning Labs’ pi402 lets Pi coding agents pay inference bills over Lightning

Originally reported by Odaily on November 13, 2026, at 08:28 (UTC+8). Lightning Labs released pi402, an open-source extension for Pi coding agents, on November 12, according to Odaily’s report.

The extension lets an agent pay for AI inference with bitcoin over the Lightning Network. When the agent encounters a price, it can pay an invoice and resume work without registering an account or supplying an API key or credit card. Odaily says billing is based on tokens actually consumed.

Pi402 uses the L402 protocol to pair an HTTP 402 “Payment Required” response with a Lightning invoice. According to the report, sellers can accept payments through Aperture and Lightmeter, while an Ark-based Wavelength wallet handles payment. Neither buyer nor seller needs to run a Lightning node.

Source: odaily.news (originally published 2026-11-13 08:28 UTC+8)

Further reading