BTCSOS

Lightning Labs launches pi402: AI Agents can use BTC to pay

2026-11-13 23:34 · 3 sources

On November 12, 2026, Lightning Labs launched the open-source extension pi402, allowing AI coding agents to pay inference fees in Bitcoin via the Lightning Network. The tool is based on the L402 protocol, requires no account registration or credit card, and bills based on actual Token consumption. Different sources differ on price details and deployment methods.

Event Timeline

Background and Impact

On November 12, 2026, Lightning Labs released the open-source extension pi402, enabling AI coding agents to pay inference fees through the Bitcoin Lightning Network. The tool is designed specifically for Pi coding agents. Users do not need to register an account, provide an API key, or use a credit card; after the agent sees the price, it can directly pay the invoice to resume work. pi402 combines the L402 protocol with the HTTP 402 response mechanism to implement a per-Token billing model, with payments processed by the Ark-based Wavelength wallet. According to Crypto Briefing, the demo price is approximately $0.375 per million input Tokens and $1.50 per million output Tokens. This technology breaks through the traditional API payment model and directly links cryptocurrency settlement with AI computing demand.

The pi402 tool launched by Lightning Labs, a Bitcoin Lightning Network developer, combines HTTP 402 responses with Lightning Network invoices so that AI Agents can autonomously complete the payment process. Users do not need to run a Lightning node; both buyers and sellers accept payments through the Aperture and Lightmeter tools. The solution supports agents in automatically completing payment and identity verification, but the specific pricing mechanism is disputed. Odaily 星球日报 mentions the instant settlement feature, while 吴说 emphasizes that model service providers need to deploy or connect to charging infrastructure themselves, and does not clearly state whether the price calculation method is uniform.

The launch of pi402 may affect how AI computing resources are paid for, making developers and users more inclined to use exchanges that support the Lightning Network. However, it has not yet been mentioned whether specific platforms are compatible with the tool, such as the registration and APP download status of exchanges including Gate.io, Bitget, 币安binance, OKX, or 火币HTX. Technically, pi402 relies on the Wavelength wallet to process payments, but different sources describe price details inconsistently, and it is not stated whether other AI frameworks are supported. This innovation may promote the application of Bitcoin in the AI field, but its actual implementation effect remains to be observed.

FAQ

### Does pi402 support other AI frameworks?

Currently, it is only explicitly mentioned as targeting Pi coding agents; whether it is compatible with other AI frameworks is not stated, and the specific scope of support needs further confirmation.

### Does paying with pi402 require a specific exchange?

Payments are processed by the Wavelength wallet, but no direct association with platforms such as Gate.io, Bitget, 币安binance, OKX, or 火币HTX is mentioned.

### Does the price difference affect practical application?

Source 1 provides specific price data, while other sources do not mention it; the difference may be due to different deployment methods or billing models.

Sources

Explore super grid strategies Range-bound grid trading with automatic entry and exit rules. Open Browse the strategy market Templates, copy trading and community strategies. Open