Bitcoin forAI agents.

A Lightning wallet your agent uses from the CLI, over MCP or through the API. It can pay, get paid and charge for its own API.

Try it here: type lnbot init in and you have a wallet.

SYN lnbot/v1Interactive
[SYN] lnbot/v1 → lightning.network
[ACK] MCP server ready
[ACK] REST API ready
[ACK] CLI ready
[EST] Session established
Type 'help' or 'lnbot init' to begin

No node. No channels.

One command creates a wallet, its API key and a Lightning address that any Lightning wallet can pay. We run the nodes and the channels.

EXEC lnbot initOne command
$ lnbot init
Registering account and creating wallet...
✓ Account and wallet created
Wallet: wal_c7i0hnuoxxupuwej
Address: x4k7m2@ln.bot
API key: uk_3jx9a7q2m4w...k1q7
Recovery passphrase, shown only once. Keep it safe:
••••• ••••• ••••• ••••• ••••• •••••
Try 'lnbot balance' or 'lnbot invoice create --amount 1000'

Agents find it themselves.

The MCP server is built in. Any AI model discovers the payment tools on its own, without custom integration: Claude, Cursor, or an agent of your own.

Discovery: ln.bot/.well-known/mcp.json

MCP api.ln.bot/v1/wallets/{walletId}/mcp12 tools
Agent → initialize
ln.bot 1.0.0 · streamable-http · tools, logging
Agent → tools/list
12 tools
get_walletcreate_invoice
quote_paymentsend_payment
list_invoiceslist_payments
list_transactionslist_addresses
buy_addresscreate_l402_challenge
pay_l402_challengeverify_l402_token
Agent → tools/call send_payment
{ "target": "r7vq3np@ln.bot", "amount": 500 }
✓ Settled · ₿500 · Fee ₿0

Agent to agent: instant and free.

Payments between ln.bot wallets settle in under a second and cost nothing. Receiving from any Lightning wallet is free too.

Amounts follow BIP 177: ₿1 is one sat, the smallest unit of bitcoin.

PAY r7vq3np@ln.botSettled
$ lnbot pay r7vq3np@ln.bot --amount 1000
Checking fees...
Amount: ₿1,000
Fees: ₿0 (to an ln.bot wallet)
Total: ₿1,000
Pay r7vq3np@ln.bot ₿1,000?
(y/N) y
Sending...
✓ Payment settled: -₿1,000
Fees: ₿0
# Wallet to wallet: ₿0 in fees

Same two calls, any language.

SDKs for TypeScript, Python, Go, Rust and C#, plus the CLI and plain HTTP. Each tab makes the same two calls: create an invoice, then pay another agent.

PAYLOAD lnbot/v1CLI · 5 SDKs · HTTP
# Create an invoice
$ lnbot invoice create --amount 1000 --memo "AI task"
  Amount:  ₿1,000
  BOLT11:
  lnbc10u1pn...

# Pay another agent
$ lnbot pay r7vq3np@ln.bot --amount 500
  ✓ Payment settled: -₿500
  Fee:     ₿0
Installcurl -fsSL https://ln.bot/install.sh | bash

Paywall any API.

Put a price on any route with L402 middleware. A caller gets HTTP 402 with an invoice, pays it and retries with proof of payment, and each payment buys one request. Your customers need no account, and you hand out no API keys.

@lnbot/l402 on npmLnBot.L402 on NuGetHow L402 works

SERVER l402.paywallPay per request
import express from "express"
import { l402, LnBot } from "@lnbot/l402"

const app = express()
const ln = new LnBot({ apiKey: "uk_..." })

// Paywall any route: ₿10 per request
app.use("/api/premium", l402.paywall(ln, {
  walletId: "wal_...",
  price: 10,
  description: "API access"
}))

app.get("/api/premium/data", (req, res) => {
  res.json({ data: "premium content" })
})
Installnpm install @lnbot/l402

You pay when bitcoin leaves.

Moving bitcoin between ln.bot wallets is free, and so is receiving it from anywhere on Lightning. Sending it out to Lightning costs 0.25%, at least ₿1, plus the routing fee. You see both before you pay. There's no subscription and no tier to pick.

FEES lnbot/v1No tiers
ln.bot → ln.bot
Free
ln.bot → Lightning
0.25% + network fee
Lightning → ln.bot
Free
Minimum service fee: ₿1
Network fee: Lightning routing
No subscription, no monthly fee
You pay only when you move bitcoin off-network
# ₿100,000 out to Lightning: ₿250 + network fee (routing)
SYN lnbot/v1Interactive
 ██╗     ███╗   ██╗   ██████╗  ██████╗ ████████╗
 ██║     ████╗  ██║   ██╔══██╗██╔═══██╗╚══██╔══╝
 ██║     ██╔██╗ ██║   ██████╔╝██║   ██║   ██║
 ██║     ██║╚██╗██║   ██╔══██╗██║   ██║   ██║
 ███████╗██║ ╚████║██╗██████╔╝╚██████╔╝   ██║
 ╚══════╝╚═╝  ╚═══╝╚═╝╚═════╝  ╚═════╝    ╚═╝
[SYN] lnbot/v1 → lightning.network
[ACK] MCP server ready
[ACK] REST API ready
[ACK] CLI ready
[EST] Session established
Type 'help' or 'lnbot init' to begin
$ lnbot init
Registering account and creating wallet...
✓ Account and wallet created
Wallet: wal_c7i0hnuoxxupuwej
Address: x4k7m2@ln.bot
API key: uk_3jx9a7q2m4w...k1q7
Recovery passphrase, shown only once. Keep it safe:
••••• ••••• ••••• ••••• ••••• •••••
Try 'lnbot balance' or 'lnbot invoice create --amount 1000'
Agent → initialize
ln.bot 1.0.0 · streamable-http · tools, logging
Agent → tools/list
12 tools
get_walletcreate_invoice
quote_paymentsend_payment
list_invoiceslist_payments
list_transactionslist_addresses
buy_addresscreate_l402_challenge
pay_l402_challengeverify_l402_token
Agent → tools/call send_payment
{ "target": "r7vq3np@ln.bot", "amount": 500 }
✓ Settled · ₿500 · Fee ₿0
$ lnbot pay r7vq3np@ln.bot --amount 1000
Checking fees...
Amount: ₿1,000
Fees: ₿0 (to an ln.bot wallet)
Total: ₿1,000
Pay r7vq3np@ln.bot ₿1,000?
(y/N) y
Sending...
✓ Payment settled: -₿1,000
Fees: ₿0
# Wallet to wallet: ₿0 in fees
# Create an invoice
$ lnbot invoice create --amount 1000 --memo "AI task"
  Amount:  ₿1,000
  BOLT11:
  lnbc10u1pn...

# Pay another agent
$ lnbot pay r7vq3np@ln.bot --amount 500
  ✓ Payment settled: -₿500
  Fee:     ₿0
Installcurl -fsSL https://ln.bot/install.sh | bash
import express from "express"
import { l402, LnBot } from "@lnbot/l402"

const app = express()
const ln = new LnBot({ apiKey: "uk_..." })

// Paywall any route: ₿10 per request
app.use("/api/premium", l402.paywall(ln, {
  walletId: "wal_...",
  price: 10,
  description: "API access"
}))

app.get("/api/premium/data", (req, res) => {
  res.json({ data: "premium content" })
})
Installnpm install @lnbot/l402
ln.bot → ln.bot
Free
ln.bot → Lightning
0.25% + network fee
Lightning → ln.bot
Free
Minimum service fee: ₿1
Network fee: Lightning routing
No subscription, no monthly fee
You pay only when you move bitcoin off-network
# ₿100,000 out to Lightning: ₿250 + network fee (routing)

Interactive

One command. You're live.

Install the CLI, run lnbot init, and your AI agent has access to Bitcoin.

INSTALL lnbotCLI
$ lnbot init
✓ Account and wallet created
Address: x4k7m2@ln.bot

Rather not install anything yet?

Questions, answered.

What is ln.bot?

ln.bot is a Bitcoin Lightning wallet built for AI agents. Agents use it from the CLI, over MCP, through the REST API or with SDKs in five languages, to send and receive bitcoin and to charge for their own APIs with L402.

How do AI agents use ln.bot?

Agents connect via MCP (Model Context Protocol), REST API, or CLI. They get a wallet with an API key and can create invoices, make payments, and check balances through standard tool calls.

Do I need to run a Lightning node?

No. ln.bot runs the Lightning nodes, manages channel liquidity and handles routing. You make API calls; there is no node to run and no channels to manage.

How do I create a wallet?

Install the CLI and run lnbot init, or use Get API key on this page. Either way you get an account, a wallet with its own Lightning address, an API key and a recovery passphrase. There is no signup form and no identity check.

Is ln.bot free?

Transfers between ln.bot wallets are free. Outbound Lightning payments cost 0.25% (minimum ₿1) plus the routing fee. The API, the CLI and MCP quote both before you pay. Receiving from Lightning is free. No subscriptions or monthly fees.

Why are amounts written like ₿1,000?

We write amounts the way BIP 177 proposes: the ₿ sign and a whole number of Bitcoin's smallest unit, the one long called a satoshi, or sat. ₿1,000 is 1,000 of those units, which is 0.00001 BTC in the old notation. The API works in the same whole units.

Does every wallet get a Lightning address?

Yes. Every wallet gets an address like x4k7m2@ln.bot that any Lightning wallet in the world can pay. You can also claim a vanity name@ln.bot: ₿100 for five characters or more, ₿1,000 for four, ₿10,000 for three.

How does MCP integration work?

ln.bot exposes an MCP server at api.ln.bot/v1/wallets/{walletId}/mcp using streamable HTTP transport. AI clients discover it via ln.bot/.well-known/mcp.json. Tools include create_invoice, quote_payment, send_payment, get_wallet, list_invoices, list_payments, list_transactions, and list_addresses.

Which languages are supported?

There are SDKs for TypeScript, Python, Go, Rust and C#, plus the lnbot CLI, the REST API and the MCP server. L402 middleware is available for Express (TypeScript) and ASP.NET Core (C#).

Can I charge for my API with L402?

Yes. The L402 middleware puts a price on any route. A client that calls it gets HTTP 402 with a Lightning invoice, pays the invoice and retries with proof of payment, and each payment buys one request. There are no accounts to create and no API keys to hand out.

Can my agent pay for L402 APIs on its own?

Yes. The TypeScript and C# clients see the 402, check the invoice's amount against the per-request limit and the budget you set, pay it and retry. Agents on MCP have the pay_l402_challenge tool.

How do I know when a payment arrives?

Register a webhook with lnbot webhook create, or wait on the invoice's event stream: the API sends settled or expired over Server-Sent Events. lnbot invoice create waits for the payment for you.

Who holds the bitcoin?

ln.bot does: balances sit on the Lightning nodes we run, and we operate their channel liquidity. Each wallet is its own balance, reached with its API keys. Treat a wallet as an operational balance, a hot wallet for near-term spending, and keep what you don't need on infrastructure you control.

What happens if I lose my API key?

Restore access with the recovery passphrase you got at setup (lnbot restore recovery), or with a passkey if you registered one in the browser (lnbot restore passkey). If you lose both the key and the passphrase, the wallet can't be recovered.

What's the difference between user keys and wallet keys?

A user key (uk_) works for every wallet under your account. A wallet key (wk_) is limited to one wallet, which makes it the one to give an agent that only needs that wallet.

Your agent needs a wallet.