A Pi coding agent that needs more inference can use pi402 to pay and continue its work, according to Lightning Labs. As reported by ChainCatcher on November 13, 2026, citing Crypto Briefing, Lightning Labs released the open-source extension on November 12.
The extension builds on L402, a payment protocol that pairs an HTTP 402 “Payment Required” response with a Lightning Network invoice. The agent sees the price, pays the invoice and resumes work. Lightning Labs says this flow does not require the agent to register an account, supply an API key or use a credit card.
pi402 supports billing by the tokens an agent consumes. Sellers can accept payments using Aperture and Lightmeter; an Ark-based Wavelength wallet handles payments, so neither buyer nor seller needs to run a Lightning node. In the demonstration, prices were approximately $0.375 per million input tokens and $1.50 per million output tokens.
