AI AGENTS CAN NOW PAY OVER THE BITCOIN ⚡️ LIGHTNING NETWORK
A new open-source toolkit from Lightning Labs allows autonomous AI agents to operate natively on the Bitcoin Lightning Network.
This integration enables agents to perform instant, programmatic micropayments without the traditional hurdles of identity verification, API keys, or manual signup flows.
The release provides seven modular "skills" that create a full-stack financial environment for software:
Infrastructure: Tools for running Lightning nodes and isolating private keys via remote signers.
Authorization: The use of "scoped macaroons" (granular permission slips) and L402-gated APIs to manage access.
Automation: Orchestration of buyer-seller workflows and node state querying.
At the core is lnget, an L402 aware CLI client similar to curl that automatically handles Lightning payments.
When an agent hits a 402 “Payment Required” response, lnget parses the invoice, pays it, caches credentials, and retries the request seamlessly.
Developers can enforce strict spending caps per request and at the node level.
By using Aperture on the server side, developers can implement pay-per-use APIs with dynamic pricing.
This completes the Machine-to-Machine (M2M) commerce loop: one agent sells data or compute, another buys it, and the Lightning Network settles the transaction instantly and globally.
AI agents can write code and deploy infrastructure and now they can transact.
The machine payable web just moved one step closer.