Give Claude Code a Lightning Wallet
Get Claude Code paying Lightning invoices and accessing L402 APIs in under 3 minutes.
For the full MCP setup guide (all clients, all wallet options), see MCP Quickstart.
Step 1: Get a Strike API Key
Strike is the fastest way to get started — no infrastructure required.
- Go to developer.strike.me and log in with your Strike account
- Click Generate API Key and copy the key
Strike requires zero infrastructure, supports L402 (returns preimage), and handles custody. Other options: NWC wallets (CoinOS, Alby Hub, CLINK) or LND (self-hosted).
Step 2: Install the MCP Server
# .NET (recommended)
dotnet tool install -g LightningEnable.Mcp
# Or Python
pip install lightning-enable-mcp
Step 3: Configure Claude Code
Edit ~/.claude/claude_desktop_config.json (macOS/Linux) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
.NET:
{
"mcpServers": {
"lightning-enable": {
"command": "dotnet",
"args": ["tool", "run", "lightning-enable-mcp"],
"env": {
"STRIKE_API_KEY": "your-strike-api-key"
}
}
}
}
Python:
{
"mcpServers": {
"lightning-enable": {
"command": "uvx",
"args": ["lightning-enable-mcp"],
"env": {
"STRIKE_API_KEY": "your-strike-api-key"
}
}
}
}
Restart Claude Code after saving.
Step 4: Test It
Check my Lightning balance
Claude will call check_wallet_balance and show your Strike balance. Try also:
Pay this Lightning invoice: lnbc...Fetch data from https://agent-commerce.store/api/weather/forecast?lat=40.71&lon=-74.00Buy me a Lightning Enable t-shirt from store.lightningenable.com
Spending Limits
Create ~/.lightning-enable/config.json to protect yourself:
{
"currency": "USD",
"tiers": {
"autoApprove": 0.10,
"logAndApprove": 1.00,
"formConfirm": 10.00
},
"limits": {
"maxPerPayment": 50.00,
"maxPerSession": 20.00
}
}
Available Tools
23 tools total. 15 work out of the box, 8 require a Lightning Enable API key.
Out-of-the-box tools (15) — no API key required:
| Tool | What It Does |
|---|---|
pay_invoice | Pay any BOLT11 Lightning invoice |
check_wallet_balance | Check wallet balance |
get_payment_history | View recent payments |
get_budget_status | Check spending limits |
configure_budget | Adjust spending limits |
create_invoice | Generate invoices to receive payments |
check_invoice_status | Check if an invoice was paid |
access_l402_resource | Auto-pay L402 APIs |
pay_l402_challenge | Pay an L402 challenge manually |
discover_api | Search the L402 API registry or fetch a specific API's manifest |
get_btc_price | Real-time BTC price |
get_all_balances | All currency balances (Strike) |
exchange_currency | Convert between currencies (Strike) |
send_onchain | Send Bitcoin on-chain |
confirm_payment | Confirm a pending payment |
Producer tools (2) — require LIGHTNING_ENABLE_API_KEY:
| Tool | What It Does |
|---|---|
create_l402_challenge | Create a Lightning invoice + macaroon to sell access to your agent's services |
verify_l402_payment | Verify an L402 token to confirm payment before granting access |
Agent Service Agreement (ASA) tools (6) — require LIGHTNING_ENABLE_API_KEY:
Shipped 2026-04-18. Live at wss://agents.lightningenable.com / nostrwolfe.com. These tools enable agent-to-agent L402 term negotiation over Nostr with Lightning settlement. Entry point is negotiate_l402_terms plus 5 related negotiation/counter/accept/reveal tools.
Next Steps
- MCP Quickstart — Full setup guide for all MCP clients
- Spending Security — Advanced budget controls
- Wallet Options — NWC, LND, and other wallets
- Agent Commerce Store — L402 APIs to test with