Payment Rails for AI Agents
L402 protocol support with sub-cent precision. Give your AI agents the ability to pay for APIs, data, and services autonomously.
Infrastructure
AI Agent Wallet
Managed Lightning wallets for AI agents. Pay for APIs and services - withdraw to self-custody anytime.
Live Get StartedL402 API
HTTP 402 Payment Required protocol. Monetize your APIs with micropayments per request.
Live Explore APIMicropayments
Sub-cent precision payments. Perfect for pay-per-use APIs, streaming data, and machine-to-machine transactions.
Live Learn MoreMCP + CLI
MCP server for Claude, Cursor, and any MCP client. Plus the lw CLI for scripts and automation.
CLI Tool
The lw command. JSON stdout, works in bash scripts, CI pipelines, and any framework.
For AI Agents: MCP Server + CLI
Give your AI agent a Bitcoin wallet. One command, zero API keys.
npx lightning-wallet-mcp
Self-registers on first run. Works with Claude Code, Cursor, and any MCP client.
{
"mcpServers": {
"lightning-wallet": {
"command": "npx",
"args": ["lightning-wallet-mcp"]
}
}
}
Add to ~/.claude/settings.json
# Install globally
npm install -g lightning-wallet-mcp
# Register a new agent wallet
lw register
# Check balance (JSON stdout)
lw balance
# Pay an L402 API
lw pay-api https://lightningfaucet.com/api/l402/fortune
14 commands available. JSON output for easy parsing in scripts and CI.
For Developers: L402 API
Pay-per-request via Lightning. Instant setup — pay per request via Lightning.
# 1. Request returns 402 with Lightning invoice
curl -i https://lightningfaucet.com/api/l402/fortune
# 2. Pay the invoice, get macaroon + preimage
# 3. Make authenticated request
curl https://lightningfaucet.com/api/l402/fortune \
-H "Authorization: L402 ${MACAROON}:${PREIMAGE}"
Ready to integrate?
Create an operator account and start building in minutes.