Software paying software, per request, over Lightning. Drop into your existing API — your subscriptions, rate limits, and API keys stay exactly as they are. Or tell your own agent to set it up: account, wallet, priced endpoint, no human in the payment plumbing.
Click the button. An autonomous agent on our server hits a paid endpoint, gets a 402 with a Lightning invoice, pays it from a pre-funded wallet, and retries with proof of payment — all in under two seconds. This is exactly what your customers' agents will do against your API once you integrate.
Pick an endpoint:
Demo only — enter just the city name (e.g. "Miami", not "Miami, FL"). Major cities work best; not every city is in the upstream geocoder.
L402 turns payment into authorization. The agent paid the invoice, retried the same request with the preimage as proof, and your API checked the proof and served the response. No accounts, no sign-up, no card on file — just a tiny payment, a cryptographic receipt, and the response.
Building the agent side? Install the MCP server —
dotnet tool install -g LightningEnable.Mcp or
pip install lightning-enable-mcp — and follow the
MCP quickstart.
Lightning Enable is the easiest way to make agents and APIs speak L402 — no node, no hosted MCP, just Strike or NWC. Agents need something to pay for; builders need agents that can pay. Both sides run on the same rail.
Every step of the producer side is an MCP tool call, so your agent can stand up the selling side on its own. You supply a funded Lightning wallet, a spend ceiling, the API, and the price. Nothing else needs a human in the payment plumbing.
# What you say
Set me up to sell my API over Lightning at 5 sats per call.
create_lightning_enable_account, pays a
~100-sat L402 challenge from your wallet, and gets a merchant API
key with a 30-day Agentic Commerce trial. No card, no checkout page.
l402_producer action configure_receive
points Lightning Enable at your own wallet over Nostr Wallet
Connect. No Strike or OpenNode account to open — the sats
arrive in the wallet you already run.
create_proxy, add_endpoint, and
publish gate your API and price each route. The proxy
serves an OpenAPI 3.1 description carrying x-payment,
so a buying agent reads the price before it calls.
l402_producer actions ship in the free, open-source
MCP server, and the producer-setup Claude Skill walks
an agent through the whole sequence in one go.
You keep the boundaries: which wallet it may use, how much it may spend, which API it may sell, and at what price. Lightning Enable does not hold funds — the wallet (or payment provider) facilitates custody and settlement.
They book travel. They search the web. They run workflows. They call APIs. They pay for tools.
But card rails aren't built for them. Card processors assume a human identity, a checkout flow, a billing address, a fraud history. Agent workflows have none of those — so today, agent traffic gets eaten by the API provider or blocked at the gate.
Lightning per-request payments fit. The agent hits your endpoint, gets a 402, pays in under a second, and retries with proof of payment. You get paid. The agent gets in.
A new buyer class is forming. The cost of ignoring it grows as fast as the agents do.
The middleware is a tiny wrapper around our hosted producer API. Pick your stack, install one package, gate a route with an attribute or a config line.
// .NET 8 / ASP.NET Core minimal API
using L402Server.AspNetCore;
builder.Services.AddL402AspNetCore(opts =>
opts.ApiKey = builder.Configuration["LightningEnable:ApiKey"]);
app.UseL402();
app.MapGet("/api/data", () => data)
.WithMetadata(new L402Attribute { PriceSats = 100 });
dotnet add package L402Server.AspNetCore
Prefer to mint challenges yourself? The
L402 Producer API
creates and verifies challenges directly —
POST /api/l402/challenges returns a Lightning invoice +
macaroon for any resource, and
POST /api/l402/challenges/verify checks the proof before
you serve the response.
Set per-endpoint pricing, watch revenue accrue in real Bitcoin, and manage every API you've monetized — without touching code.
Every gated API gets a machine-readable manifest at
/.well-known/l402-manifest.json and can be listed in the
public L402 registry.
Agents running our MCP server find it with discover_api,
see your endpoints and prices, then pay and call — no signup. Prefer
to browse? agent-commerce.store is a live
marketplace of the same listings.
The demo above isn't a mock. Real Bitcoin, real Lightning, same producer API your customers' agents will hit.
L402 ecommerce on Shopify. Live storefronts: Great Ghee, Salt of the Earth, and our own Lightning Enable Store — agents and bitcoin-aligned customers checking out in sats. Run this on your Shopify store →
MCP clients, agent frameworks, and developer integrations across the Lightning Network. Our MCP server and HTTP clients are MIT, published on every major registry — and agent-commerce.store is a live L402 API marketplace built on the same rails.
Agent Service Agreements are live: agents
discover, hire, and pay each other over Nostr — discover,
request, settle, attest — on our public relay
NostrWolfe
at wss://agents.lightningenable.com.
A flat monthly subscription, never a percentage of your revenue. Lightning Enable is middleware and does not hold funds — the wallet (or payment provider) you connect facilitates custody and settlement.
For solo API builders, indie SaaS, and teams putting an API into production.
For teams that want onboarding help and a direct line to the people building this.
Lightning Enable does not hold funds. The wallet (or payment provider) you connect — your own wallet over Nostr Wallet Connect, Strike, or OpenNode — facilitates custody and settlement.
Full plan details and the Free Producer Sandbox limits: lightningenable.com/pricing.
Have an agent? It can activate the same trial itself with a 100-sat Lightning payment, no card, and set up the selling side for you — see Sell with your agent. Either trial ends the same way: add billing to stay on Agentic Commerce, or the account moves to the Free Producer Sandbox (3 endpoints, 200 challenges/mo, 1,000 sats max per challenge, no card, does not expire). Just want to poke at it first? Start in the Free Producer Sandbox.
The free open-source MCP, the Free Producer Sandbox, and L402 Fast Lane are all live — here's how they work.
Yes. The Lightning Enable MCP server is open-source (MIT) and free to install. Connect Strike or NWC and your agent can pay and access L402 APIs — no hosted MCP and no Lightning node required.
Yes. With the MCP server it opens the account, connects your Lightning wallet over Nostr Wallet Connect, publishes the priced endpoint, and starts collecting sats — see Sell with your agent. You still provide the funded wallet, the spend ceiling, the API, and the price. Lightning Enable does not hold funds — the wallet (or payment provider) facilitates custody and settlement.
A free-forever, no-card way to create your first L402 producer endpoints. It includes 3 endpoints, 200 challenges a month, and 1,000 sats max per challenge — free enough to prove L402 works, paid when it becomes production infrastructure. Sandbox limits may change as the product evolves; existing users get notice before material changes.
A Bitcoin-native signup path. Pay a 100-sat L402 challenge to activate a 30-day Agentic Commerce trial without a credit card. The signup flow itself runs on L402: 402 → Lightning payment → macaroon proof → account activated. See Activate with Lightning for the exact steps (MCP, dev CLI, or raw protocol).
Free is the sandbox, and it stays free. Fast Lane is the no-card full trial. The Free Sandbox lets you create 3 L402 endpoints with limited usage, for as long as you want. Fast Lane unlocks the full Agentic Commerce plan for 30 days without a credit card.
They're two different things. Pay with Bitcoin means paying the actual subscription in Bitcoin instead of with a card. L402 Fast Lane means paying a 100-sat L402 challenge to activate a no-card 30-day trial.
It proves wallet and payment capability, reduces low-effort abuse, and lets you experience the same L402 flow your own users and agents will use. Use Lightning to activate the Lightning-native trial.
Add billing to keep the Agentic Commerce features. Otherwise, the account automatically moves to the Free Producer Sandbox — you keep the account either way.
Sign in first. Fast Lane is for creating or activating an account; paying with an email that already belongs to an account will not create a second account.