# ln.bot > Bitcoin Lightning wallet for AI agents. CLI, MCP Server, and REST API to send and receive sats. L402 paywall support for monetizing APIs. Every page below is also available as raw Markdown by adding .md to the URL (e.g. https://ln.bot/docs/quickstart.md). For the full expanded content of all pages, see https://ln.bot/llms-full.txt ## Docs - [Overview](https://ln.bot/docs) ([md](https://ln.bot/docs/overview.md)): ln.bot gives any application — or any AI agent — a Bitcoin Lightning wallet through APIs, SDKs, and an MCP server. - [Quick Start](https://ln.bot/docs/quickstart) ([md](https://ln.bot/docs/quickstart.md)): Four steps to a working Lightning wallet — install the CLI, create an invoice, make a payment, and check your balance. - [CLI](https://ln.bot/docs/cli) ([md](https://ln.bot/docs/cli.md)): Reference for the lnbot CLI covering setup, wallet management, payments, invoices, addresses, webhooks, keys, and MCP. - [MCP Server](https://ln.bot/docs/mcp) ([md](https://ln.bot/docs/mcp.md)): Model Context Protocol server for ln.bot — your AI agent discovers and calls Lightning wallet tools natively. - [REST API](https://ln.bot/docs/api) ([md](https://ln.bot/docs/api.md)): REST API reference for ln.bot covering accounts, wallets, invoices, payments, addresses, webhooks, events, and L402. - [SDKs](https://ln.bot/docs/sdks) ([md](https://ln.bot/docs/sdks.md)): Native SDK libraries for ln.bot — TypeScript, Python, Go, Rust, and C#. Plus L402 paywall middleware for Express.js and ASP.NET Core. ## Learn - [The Agent-to-Agent Economy: How AI Agents Trade Services](https://ln.bot/learn/agent-economy) ([md](https://ln.bot/learn/agent-economy.md)): AI agents are learning to specialize, discover each other's capabilities, and settle payments in real time. The protocols, economic patterns, and open questions behind the emerging machine economy. - [x402 vs L402: Stablecoins vs Lightning for APIs](https://ln.bot/learn/x402-vs-l402) ([md](https://ln.bot/learn/x402-vs-l402.md)): Compare x402 and L402 for API payments: USDC on EVM chains vs Bitcoin on Lightning, with different tradeoffs in speed, trust, and pricing. - [L402: Let Software Pay for Software](https://ln.bot/learn/l402-protocol) ([md](https://ln.bot/learn/l402-protocol.md)): How L402 connects HTTP 402 to Lightning payments using invoices, macaroons, and stateless verification for paid APIs. - [Lightning Wallet as a Service for Apps and Agents](https://ln.bot/learn/wallet-as-a-service) ([md](https://ln.bot/learn/wallet-as-a-service.md)): What wallet as a service means for Lightning apps, AI agents, and platforms that need programmable Bitcoin wallets. - [Lightning Address: What It Is and How to Get One](https://ln.bot/learn/lightning-address) ([md](https://ln.bot/learn/lightning-address.md)): What a Lightning address is, how it works, where to get one, and how to set up your own on any domain. - [Lightning Network: How Bitcoin Payments Scale](https://ln.bot/learn/lightning-network-explained) ([md](https://ln.bot/learn/lightning-network-explained.md)): How the Lightning Network makes Bitcoin payments instant and cheap, from channels and routing to wallets, invoices, and AI agents. ## Guides - [How to Build an AI Agent That Earns Bitcoin](https://ln.bot/guides/ai-agent-earns-money) ([md](https://ln.bot/guides/ai-agent-earns-money.md)): Sell AI agent skills for Bitcoin micropayments with L402. Gate endpoints, charge per request, and let agents earn sats. - [AI Agent Bitcoin Wallets: MCP, SDK, and L402](https://ln.bot/guides/ai-agent-payments) ([md](https://ln.bot/guides/ai-agent-payments.md)): Give an AI agent a Bitcoin wallet with ln.bot. Connect via MCP or SDK, send and receive sats, and pay L402 APIs automatically. - [Pay-Per-API-Call with Bitcoin Micropayments](https://ln.bot/guides/pay-per-api-call) ([md](https://ln.bot/guides/pay-per-api-call.md)): Monetize any API with L402 and Lightning micropayments. Charge per request with no signup flow, API keys, or Stripe fees. ## Compare - [Alby Alternative for Developers and AI Agents](https://ln.bot/compare/alby) ([md](https://ln.bot/compare/alby.md)): Looking for an Alby alternative? Compare Alby Hub and ln.bot for Lightning wallets, APIs, pricing, and AI agent support. - [OpenNode vs ln.bot for Lightning APIs](https://ln.bot/compare/opennode) ([md](https://ln.bot/compare/opennode.md)): Compare OpenNode and ln.bot for Lightning payments, wallet APIs, L402 support, and AI agent use cases. - [Strike API vs ln.bot for Lightning APIs](https://ln.bot/compare/strike-api) ([md](https://ln.bot/compare/strike-api.md)): Compare Strike API and ln.bot for Lightning payments, KYC requirements, fiat rails, wallet APIs, and AI agents. - [ZBD vs ln.bot: Lightning Developer API Comparison](https://ln.bot/compare/zbd) ([md](https://ln.bot/compare/zbd.md)): Compare ZBD and ln.bot for Lightning wallets, gaming payouts, L402 support, and AI agent use cases. ## Legal - [Privacy Policy](https://ln.bot/legal/privacy) ([md](https://ln.bot/legal/privacy.md)): What ln.bot collects, what it doesn't, and how data moves through the system. - [Terms of Service](https://ln.bot/legal/terms) ([md](https://ln.bot/legal/terms.md)): The rules of engagement for using ln.bot infrastructure, APIs, and wallets. ## MCP - [MCP Server](https://api.ln.bot/v1/wallets/{walletId}/mcp): Streamable HTTP MCP endpoint for AI agents - [MCP Discovery](https://ln.bot/.well-known/mcp.json): Server card and capability manifest ## Tools - [CLI](https://ln.bot/docs/cli): `lnbot` command-line tool for scripting and automation - [TypeScript SDK](https://www.npmjs.com/package/@lnbot/sdk): `npm install @lnbot/sdk` - [Python SDK](https://pypi.org/project/lnbot): `pip install lnbot` - [Go SDK](https://pkg.go.dev/github.com/lnbotdev/go-sdk): `go get github.com/lnbotdev/go-sdk` - [Rust SDK](https://crates.io/crates/lnbot): `cargo add lnbot` - [C# SDK](https://www.nuget.org/packages/LnBot): `dotnet add package LnBot` ## L402 Middleware - [TypeScript L402](https://www.npmjs.com/package/@lnbot/l402): `npm install @lnbot/l402` — Express.js paywall middleware - [C# L402](https://www.nuget.org/packages/LnBot.L402.AspNetCore): `dotnet add package LnBot.L402.AspNetCore` — ASP.NET Core paywall middleware ## Source - [GitHub](https://github.com/lnbotdev): Open source repositories - [TypeScript SDK repo](https://github.com/lnbotdev/typescript-sdk) - [Python SDK repo](https://github.com/lnbotdev/python-sdk) - [Go SDK repo](https://github.com/lnbotdev/go-sdk) - [Rust SDK repo](https://github.com/lnbotdev/rust-sdk) - [C# SDK repo](https://github.com/lnbotdev/csharp-sdk) - [TypeScript L402 repo](https://github.com/lnbotdev/typescript-l402) - [C# L402 repo](https://github.com/lnbotdev/csharp-l402)