Monetize your API for
AI agents.

Software paying software, per request, over Lightning. Drop into your existing API — your subscriptions, rate limits, and API keys stay exactly as they are.

For API builders: create L402 producer endpoints and get paid per request. For agents: install the free, open-source MCP with Strike or NWC — no hosted MCP, no Lightning node required.
⚡ Run the agent Start free trial
Real Lightning · 1 sat per call · ~1 second settlement

Watch an agent buy from this API.

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.

What you just saw, in one sentence

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.

Two sides of the same rail.

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.

For agents

Free, open-source MCP.

  • Free open-source MCP (MIT)
  • Connect Strike or NWC
  • Pay and access L402 APIs
  • Works from MCP hosts like Hermes
  • No hosted MCP or Lightning node required
Install the MCP
For API builders

Get paid per request.

  • Create L402 producer endpoints
  • Return HTTP 402 challenges
  • Accept Lightning payment
  • Verify the macaroon proof
  • Serve paid access
Create a producer endpoint

AI agents are starting to buy.

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. Stripe assumes 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.

An additional revenue stream — not a replacement.

Gate a route. Get paid.

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 });
Install: dotnet add package L402Server.AspNetCore
Reference app: github.com/refined-element/l402-example-aspnet

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.

Configured from your dashboard.

Set per-endpoint pricing, watch revenue accrue in real Bitcoin, and manage every API you've monetized — without touching code.

Lightning Enable dashboard home — total proxies, active proxies, total requests, total revenue in sats, and a Recent Proxies table
One-screen overview. Total revenue, request volume, and your active APIs in a single view.
Lightning Enable proxies list — every L402 proxy with its target URL, price in sats, request count, revenue, and a live status toggle
Every API in one list. Upstream target, sat price, requests, and revenue per proxy — toggle any of them live or off in place.
Lightning Enable proxy overview — proxy details, request and revenue statistics, quick actions, and the hosted endpoint with a copy-paste example L402 request
Copy-paste integration. Each proxy gets a hosted endpoint and a ready-made example request — stats and quick actions on the same screen.
Lightning Enable proxy pricing tab — every endpoint with its individual sat price, manifest visibility, and L402 status
Per-endpoint pricing. Different routes, different rates — set in the UI, applied at runtime.

Agents find you.

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.

Registry: api.lightningenable.com/api/manifests/registry
Marketplace: agent-commerce.store

Live infrastructure, used today.

Real Lightning, this page

The demo above isn't a mock. Real Bitcoin, real Lightning, same producer API your customers' agents will hit.

Live merchant integrations

L402 ecommerce on Shopify and Kentico. 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 or Kentico store →

In the agent ecosystem

MCP clients, agent frameworks, and developer integrations across the Lightning Network. Our MCP server (24 tools) 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.

Open-source downloads
24,000+ and counting
Agents hiring agents

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.

Pricing.

A flat monthly subscription, never a percentage of your revenue. Lightning Enable is middleware and never holds your funds — your provider (Strike or OpenNode) custodies and settles every payment.

Start three ways.

Free Producer Sandbox is a no-card way to prove L402 works. L402 Fast Lane unlocks the full Individual trial with a 100-sat Lightning payment instead of a card. Stripe Trial is the conventional 30-day card trial. All three are live today — pick the on-ramp that fits.

Free Producer Sandbox

No card · 3 endpoints · 200 challenges/mo

Create your first L402 producer endpoints and prove the basics.

Start free →
L402 Fast Lane

No card · 100 sats → 30-day Individual trial

Pay a 100-sat L402 challenge to unlock the full trial. Signup runs on L402: 402 → pay → macaroon proof → activated.

Activate with Lightning →
Stripe Trial

Card · 30-day Individual trial

A conventional 30-day trial through Stripe Checkout. No charge until it ends.

Start trial →

Production plans.

Agentic Commerce — Individual
$99/mo

For solo API builders, indie SaaS, and side-project APIs going to production.

  • Unlimited L402 endpoints — gate every route on every API you own
  • Strike as settlement provider
  • Per-endpoint pricing — different routes can charge different rates
  • Live dashboard + per-request payment feed
  • 30-day free trial — card required (or go card-free via L402 Fast Lane)
Agentic Commerce — Business
$299/mo

For teams and platforms with multiple APIs or anyone who wants hands-on onboarding help.

  • Everything in Individual
  • Strike or OpenNode as settlement provider
  • White-glove onboarding — we help you get set up
  • Direct founder access — no ticket queues, talk to the team that built this
  • 30-day free trial — card required (or go card-free via L402 Fast Lane)

Lightning Enable does not hold funds. Your chosen settlement provider (Strike or OpenNode) custodies every payment.

Onboarding FAQ.

The free open-source MCP, the Free Producer Sandbox, and L402 Fast Lane are all live — here's how they work.

Is the MCP free?

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.

What is the Free Producer Sandbox?

A no-card way to create your first L402 producer endpoints. It includes 3 endpoints, limited monthly challenge volume, and a 100-sat max challenge price — 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.

What is L402 Fast Lane?

A Bitcoin-native signup path. Pay a 100-sat L402 challenge to activate a 30-day Individual 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).

Why use L402 Fast Lane if the Free Sandbox exists?

Free is the sandbox. Fast Lane is the no-card full trial. The Free Sandbox lets you create a few L402 endpoints with limited usage. Fast Lane unlocks the full Individual plan for 30 days without a credit card.

How is Fast Lane different from "Pay with Bitcoin — 10% off"?

They're two different things. Pay with Bitcoin — 10% off means paying an actual subscription with Bitcoin instead of a card, for a discount. L402 Fast Lane means paying a 100-sat L402 challenge to activate a no-card 30-day trial.

Why require a Lightning payment for the no-card 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.

What happens after the L402 Fast Lane trial?

Add billing to keep Individual features. Otherwise, the account automatically moves to the Free Producer Sandbox.

What if I already have an account?

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.