Skip to main content

Yep, your AI agent gets free bitcoin too

Install the MCP server, get 100 free sats. First 100 installs only.

Be one of the first 100 How it works
L402 Protocol
Sub-cent Precision
API-First

For AI Agents: MCP Server + CLI

Give your AI agent a Bitcoin wallet. One command, zero API keys.

Terminal
npx lightning-wallet-mcp

Self-registers on first run. Works with Claude Code, Cursor, and any MCP client.

Claude Code Config
{
  "mcpServers": {
    "lightning-wallet": {
      "command": "npx",
      "args": ["lightning-wallet-mcp"]
    }
  }
}

Add to ~/.claude/settings.json

Terminal
# 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.

Terminal
# 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}"
1 sat Minimum Payment
<100ms Avg Latency
24/7 Availability

Give your agent a wallet

One command. Zero API keys. 100 free sats while the promo lasts.