•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•

Lightning Labs has released an open-source toolkit that enables artificial intelligence agents to send and receive bitcoin payments independently through the Lightning Network.
The technology is designed to remove the need for human intervention, traditional accounts, and API authentication systems. Lightning Labs said it is a step toward autonomous machine commerce, where AI systems can purchase data, services, and computational resources without human oversight.
Lightning Labs said the toolkit addresses a limitation in current AI agent capabilities: while modern systems can write code, analyze information, and execute complex tasks, they cannot easily complete financial transactions.
Traditional payment methods typically require identity verification through credit cards, bank accounts, and regulated payment platforms. These approaches rely on personal documentation and manual approval processes that AI agents cannot navigate.
Lightning Labs said agents also face a practical barrier even when they can read documentation and call APIs effectively. The company noted that agents need to transact instantly and at massive scale—requirements it said are incompatible with conventional financial infrastructure.
The solution centers on L402, a protocol built on the HTTP 402 “Payment Required” status code. When an AI agent attempts to access paid content or services, the server responds with a Lightning invoice.
The agent pays the invoice and receives cryptographic proof of payment, which Lightning Labs described as an access credential that allows the agent to retrieve the requested resource.
Lightning Labs also introduced “lnget,” a command-line tool that automates the payment process. Lightning Labs said lnget handles invoice payment in the background when an agent encounters paid content, without requiring manual steps.
The tool supports multiple Lightning backend configurations, including direct connections to local nodes and encrypted tunnel access through Lightning Node Connect.
Lightning Labs said security is a core part of the toolkit’s design. The recommended configuration uses a remote signer architecture that separates private key storage from payment operations.
In this setup, the signing machine keeps private keys offline while the agent machine executes transactions. Lightning Labs said this separation helps ensure that compromised agent systems cannot expose private keys.
The toolkit uses a macaroon-based credential system to enable fine-grained permission control. Developers can create credentials limited to specific functions, such as payment-only or read-only access. Lightning Labs said these bearer tokens can be further restricted without issuing new credentials, and that the system supports five preset security roles tailored to different agent functions.
On the server side, Lightning Labs said Aperture enables developers to convert standard APIs into pay-per-use services. The reverse proxy handles L402 protocol negotiation and supports dynamic pricing based on resource consumption.
Lightning Labs said backend systems require no Lightning-specific modifications. It described the combined approach as a complete commerce loop in which one agent can host paid services while another consumes them.
Lightning Labs said the toolkit enables direct agent-to-agent transactions at scale, allowing AI systems to purchase premium data feeds, acquire computational resources, and sell services for bitcoin.
The company said the infrastructure supports micropayments that would be economically unfeasible with traditional payment rails. Lightning Labs positioned the technology as foundational infrastructure for an emerging machine economy in which autonomous agents conduct billions of programmatic transactions.
Premium gym chains are entering a “golden era” that is ending or already in decline, as rising operating costs collide with shifting consumer preferences toward more flexible, community-based ways to exercise. Long-term memberships are shrinking, margins are pressured by higher rents and facility expenses, and competition from smaller, more personalized…