Home / News

Big Cap13/11 05:51 UTC+7

Lightning Labs launches pi402 so AI agents can buy inference with Bitcoin

Source: Crypto Briefing — Read the original ↗

RelatedBTC $61,043.00 +3.0%prices as of last site update (CoinGecko)

Summary

Lightning Labs released pi402, an open-source extension that lets AI coding agents pay for their own inference in Bitcoin over the Lightning Network. Unveiled on Nov. 12, 2026 for the Pi coding agent, it requires no account signup, API key or credit card. It runs on L402, which pairs the HTTP 402 Payment Required response with a Lightning invoice, so an agent hitting a paid endpoint pays the invoice and continues. Authentication uses macaroon tokens, and billing is pay-per-token instead of a monthly plan or prepaid credits.

Key points

  • pi402 is open source and built for the Pi coding agent.
  • Agents pay Lightning invoices returned with HTTP 402 responses.
  • Macaroons handle authentication without accounts or API keys.
  • Agents pay only for the tokens they use, request by request.

Why it matters: It is a working example of AI agents paying for compute directly in Bitcoin.

Tóm tắt

Lightning Labs phát hành pi402, tiện ích mã nguồn mở cho phép AI agent lập trình tự trả phí inference bằng Bitcoin qua Lightning Network. Ra mắt ngày 12/11/2026 cho agent Pi, công cụ này không cần đăng ký tài khoản, API key hay thẻ tín dụng. Nó chạy trên L402, kết hợp phản hồi HTTP 402 Payment Required với hóa đơn Lightning, nên khi agent gọi endpoint trả phí, nó thanh toán hóa đơn rồi tiếp tục làm việc. Xác thực dùng token macaroon, và tính phí theo từng token thay vì gói tháng hay nạp trước.

Điểm chính

  • pi402 là mã nguồn mở, xây cho agent lập trình Pi.
  • Agent thanh toán hóa đơn Lightning đi kèm phản hồi HTTP 402.
  • Macaroon lo xác thực mà không cần tài khoản hay API key.
  • Agent chỉ trả cho đúng số token đã dùng theo từng request.

Vì sao quan trọng: Đây là ví dụ thực tế về AI agent tự trả tiền tính toán bằng Bitcoin.

摘要

Lightning Labs 发布开源扩展 pi402,让 AI 编程代理可以通过闪电网络用比特币自行支付推理费用。该工具于 2026 年 11 月 12 日面向 Pi 编程代理推出,无需注册账户、API 密钥或信用卡。它基于 L402 协议,将 HTTP 402 Payment Required 响应与闪电发票结合,代理访问付费接口时支付发票即可继续工作。认证使用 macaroon 令牌,计费按 token 用量结算,而非月费或预付额度。

要点

  • pi402 开源,专为 Pi 编程代理打造。
  • 代理支付随 HTTP 402 响应返回的闪电发票。
  • macaroon 负责认证,无需账户或 API 密钥。
  • 代理按请求只为实际消耗的 token 付费。

为何重要: 这是 AI 代理直接用比特币购买算力的实际案例。

Original summary written by VolumeVein from the publisher’s article; no full text is republished. Facts belong to the original report — read it for full context. Not financial advice.

Read the full article on Crypto Briefing ↗