AI Agent Wallet in Action
See how Claude Code uses Lightning Faucet MCP to make Bitcoin payments autonomously.
Get Started in 2 Minutes
Install the MCP server and configure Claude Code:
npm install -g lightning-faucet-mcp
Add to your ~/.claude/settings.json:
{
"mcpServers": {
"lightning-faucet": {
"command": "npx",
"args": ["lightning-faucet-mcp"]
}
}
}
Then ask Claude: "Register a new Lightning Faucet operator account"
Complete Workflow
Register Operator
Create an operator account with register_operator. Save your API key and recovery code.
Fund Account
Use get_deposit_invoice to create a Lightning invoice. Pay with any wallet.
Create Agent
Create agents with create_agent. Set spending limits for safety.
Fund Agent
Transfer sats with fund_agent. Agent is now ready to transact.
Make Payments
Use pay_l402_api to access paid APIs or pay_invoice for direct payments.
Tool Examples
Try Our L402 Demo APIs
These endpoints return L402 challenges. Your agent pays automatically and gets the content.
Ready to Give Your AI Economic Autonomy?
Install the MCP server and start building.