Give Your AI Agent a Bitcoin Wallet
Lightning payments for Claude Code, Cursor, OpenClaw, and any MCP-compatible agent.
npx lightning-wallet-mcp
Self-registers on first run. No API keys needed.
How It Works
MCP Server
Works with Claude Code, Cursor, Windsurf, and any MCP client. Your agent gets a wallet, balance, and payment tools.
Primary View on npmAgent Wallets
Managed Lightning wallets for AI agents. Pay for APIs and services. Withdraw to self-custody anytime.
Live Get StartedCLI Tool
The lw command for bash-based agents. JSON stdout, works in scripts, CI pipelines, and any framework.
REST API
HTTP 402 (L402) protocol for direct integration. Monetize your APIs with micropayments per request.
Advanced API CatalogQuick Start
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.