Lightning Labs has released a groundbreaking suite of open-source tools that allow artificial intelligence (AI) agents to run Bitcoin Lightning nodes and make autonomous payments over the Lightning Network — a major milestone in enabling machine-to-machine commerce on Bitcoin’s fastest payment layer.
The toolkit — dubbed lightning-agent-tools — equips developers and AI builders with a comprehensive set of composable “skills” that allow agents to handle Lightning Network operations, authenticate without traditional identities or API keys, and pay for services using micro-transactions without human intervention.
Lightning Labs’ agent tools provide seven key capabilities:
Running a Lightning Node: Agents can operate their own node and participate directly on the Lightning Network.
Scoped Spending Permissions: Using remote signers and macaroons (flexible authorization tokens), agents can pay only up to defined spending limits for security.
Native Payment Authentication (L402): The tools support the L402 payment protocol, a Lightning-specific standard that lets agents process pay-per-use API access and content without identity or API keys, responding directly to “402 Payment Required” challenges.
Automatic Invoice Payment: With the new command-line client lnget, agents can automatically process Lightning invoices and retry requests transparently, similar to how tools like wget or curl fetch data.
Buyer-Seller Workflows: The stack supports full commerce loops where one agent hosts a paid service and another agent purchases access via Lightning payments.
These features work with any agent framework that can execute shell commands, such as Claude, Codex or custom agent setups, and require no traditional sign-ups, API keys or identity systems — a breakthrough for truly autonomous onchain machine payments.
AI agents have rapidly evolved from simple assistants to fully autonomous tools that can code, schedule tasks, access data and automate complex workflows. But until now, agents lacked a native, machine-friendly payments rail to pay for compute, premium data or API access in a scalable way. Traditional systems like credit cards and API keys don’t mesh with agent architecture, which requires instant, programmatic micropayments without human action.
By leveraging the Bitcoin Lightning Network — known for its instant, low-fee payments built on top of the Bitcoin blockchain — Lightning Labs’ tools fill that gap, enabling agents to settle tiny payments rapidly and globally on behalf of users or decentralized workflows.
Lightning Labs’ suite aims to unlock a new layer of agentic commerce where AI agents can transact, consume services, and even monetize APIs using native Bitcoin payments. With security-focused features like remote key signing and scoped credentials, developers can deploy agents that handle real economic activity while minimizing risk.
This release positions Bitcoin’s Lightning Network as a foundational payment layer not only for human transactions but also for the emerging machine economy, where autonomous agents pay and get paid in Bitcoin as they execute tasks, access resources and interact with decentralized protocols — a key step toward a programmable, autonomous financial future.
U.S. Senator Chris Murphy (D-Conn.) is calling for legislation to ban prediction markets that allow traders to bet…
The U.S. Internal Revenue Service (IRS) has proposed a new rule that would allow cryptocy brokers to deliver…
Global fintech powerhouse Revolut has filed an application for a U.S. banking license, a move that would allow…
A man accused of stealing tens of millions of dollars in cryptocy from U.S. government…
Intercontinental Exchange (ICE) — the parent company of the New York Stock Exchange — has taken a strategic…
A new study from the Bitcoin Policy Institute (BPI) found that leading artificial intelligence models overwhelmingly favor Bitcoin…