Skip to main content

The Lightning Enable Ecosystem

Lightning Enable — infrastructure for agent commerce over Lightning.

Lightning Enable is a suite of open-source tools and a commerce orchestration layer that gives platforms, developers, and AI agents everything they need to transact over the Lightning Network using the L402 protocol.

Architecture

                  +-------------------------------+
| Payment Providers |
| Strike . OpenNode |
| custody / settlement / KYB |
+---------------+---------------+
|
+---------------+---------------+
| Lightning Enable API |
| api.lightningenable.com |
| orchestration / L402 proxy |
| / webhooks |
+---------------+---------------+
|
+-------------------------+-------------------------+
| | |
+-------+--------+ +-------+--------+ +-------+--------+
| MCP Server | | L402 HTTP | | Agent Commerce |
| AI agent tools | | Clients | | Store |
| NuGet / PyPI / | | Python .NET TS | | API marketplace|
| Docker | | (consumer) | | L402 data APIs |
+-------+--------+ +----------------+ +----------------+
|
+-------+--------+ +---------------------------------------+
| NostrWolfe | | L402 Server SDKs (producer side) |
| Agent relay | | l402-server, l402-express (npm) |
| wss://agents. | | L402Server, L402Server.AspNetCore |
| lightningenable| | (NuGet) - charge for your own API |
| .com | | on your own domain |
+----------------+ +---------------------------------------+

Components

Agentic Commerce Platform

The commerce orchestration layer that connects platforms to payment providers (Strike, OpenNode) for Bitcoin Lightning payments. Handles invoices, webhooks, L402 proxy, and merchant management.

Lightning Enable does not hold funds — the configured payment provider facilitates custody and settlement.

MCP Server — AI Agent Tools

Open-source MCP server that gives AI agents a Lightning wallet. 23 tools total. 15 work out of the box. 8 tools (2 producer, 6 ASA) require a Lightning Enable API key. Tools cover paying invoices, discovering APIs, accessing L402 resources, creating payment challenges, and agent-to-agent service discovery and L402 settlement.

# Install in one command
dotnet tool install -g LightningEnable.Mcp # .NET
pip install lightning-enable-mcp # Python (add [nwc] extra for Nostr Wallet Connect wallets)
docker pull refinedelement/lightning-enable-mcp # Docker

L402 HTTP Clients — Auto-Paying Libraries

Open-source (MIT) drop-in HTTP clients that handle L402 payment flows automatically. Three lines of code — paid APIs just work.

LanguagePackageInstall
Pythonl402-requestspip install l402-requests
.NETL402Requestsdotnet add package L402Requests
TypeScriptl402-requestsnpm install l402-requests

L402 Server SDKs — Charge for Your API (Producer Side)

Open-source (MIT) server SDKs and framework middleware for the producer side of L402: drop one line of middleware into your existing API and charge per request over Lightning. Native mode — your API stays on your own domain, and traffic never flows through Lightning Enable.

StackSDKFramework middlewareInstall
Node.jsl402-serverl402-express (Express)npm install l402-express
.NETL402ServerL402Server.AspNetCore (ASP.NET Core)dotnet add package L402Server.AspNetCore

Live reference apps — open-source paid APIs you can curl to see a 402 in your terminal:

Claude Skills — Ready-Made Agentic Commerce Skills

Open-source Claude Skills for agentic commerce over Lightning + L402, powered by the Lightning Enable MCP server. Runs in Claude Code and Claude Desktop.

Research Agent Demo — Agent Buys Its Own Data

Reproducible demo of end-to-end agent commerce: an AI agent buys its own research data over Lightning (L402) and writes a cited paper — about 20 sats, no API keys, no accounts.

Agent Commerce Store — L402 API Marketplace

Live marketplace of dozens of L402 data APIs payable via Lightning micropayments — weather, research papers, SEC filings, economic data, and more, all accessible by AI agents. See the live manifest for the current list.

Lightning Enable Store — Live L402 Demo

Physical merch store demonstrating L402 checkout. AI agents can browse, pay via Lightning, and receive real products.

NostrWolfe — Agent Discovery via Nostr

Open protocol enabling AI agents to discover each other, request services, and settle via the Lightning Network (L402) over Nostr.

Start Here If You Want To...

GoalStart here
Accept Lightning payments on your platformQuick Start Guide
Give your AI agent a Lightning walletMCP Quick Start
Monetize your API with pay-per-requestAPI Monetization
Charge for your API on your own domain (native mode)Native Integration
See a working paid API end to endl402-example-node · l402-example-aspnet
Access L402 APIs from Python/.NET/TypeScriptL402 HTTP Clients
Give Claude ready-made commerce skillslightning-enable-skills
Watch an agent buy its own research datal402-research-agent
Browse available paid APIsAgent Commerce Store
Let agents discover each other on NostrNostrWolfe
ResourceURL
APIapi.lightningenable.com
Documentationdocs.lightningenable.com
Product Pagelightningenable.com
A-Commerce Manifestoa-commerce.lightningenable.com
Parent Companyrefinedelement.com
Supportsupport@lightningenable.com