New Developer Tools Enable Lightning And AI Communities To Build Cost-Effective LLM Tooling
Yesterday, Olaoluwa Osuntokun and Michael Levin of Lightning Labs announced the release of a new set of developer tools aimed at empowering the Lightning and AI developer communities to create inclusive and cost-effective Large Language Model (LLM) tooling. These tools leverage the Lightning Network and bitcoin to seamlessly integrate with LLMs. They are built on the L402 protocol, a Lightning native authentication mechanism and Langchain, a library that simplifies working with AI agents by incorporating external data for advanced functionality.
One of the tools included in the release is LangChainBitcoin, which enables Langchain agents to interact directly with Bitcoin and the Lightning Network. It includes features such as LLM Agent Bitcoin Tools, which utilize OpenAI GPT function calls to enable developers to create agents capable of holding a bitcoin balance, sending/receiving bitcoin on Lightning and driving with a LND node. Another tool, the L402 HTTP API Traversal, is a Python wrapper for a LangChain LLM chain (APIChain) that allows agents to access L402 payment-metered APIs seamlessly.
Aperture, a drop-in reverse proxy server, is also part of the release. It implements the L402 protocol and transforms any API into a pay-per-use resource gated via L402 functionality on the Lightning Network. The latest version of Aperture now supports Lightning Node Connect protocol, enabling compatibility with various Lightning Nodes, such as Voltage, Umbrel, Start9, Raspiblitz and BTCPayServer.
The L402 protocol, introduced in 2020, is a standard for payment-metered APIs designed to utilize the existing HTTP 402 Payment Required status response code. It combines bitcoin and the Lightning Network to enable global micropayments for paid APIs. The protocol allows for authenticating and charging per use of internet-native services, addressing challenges faced by the AI developer community, such as the high cost of GPU training and limited accessibility to advanced LLM models.
By providing these developer tools, the creators aim to build more accessible AI infrastructure for both humans and AI agents. They are particularly excited about the AI4ALL hackathon, taking place this month, where developers can leverage these tools to unleash their creativity and innovation. The Lightning and AI communities are encouraged to explore the potential of these new tools and contribute to the development of the machine-payable web powered by Lightning.
7 July 2023 15:48