Install
openclaw skills install lnbitsManage LNbits Lightning Wallet (Balance, Pay, Invoice)
openclaw skills install lnbitsEnable the assistant to safely and effectively manage an LNbits Lightning Network wallet.
balance before pay to prevent errors.If the user does not have an LNbits wallet, you can create one for them on the demo server.
python3 {baseDir}/scripts/lnbits_cli.py create --name "My Wallet"
Action:
adminkey (Admin Key) and base_url (defaults to https://demo.lnbits.com)."I've created a new wallet! Please add these to your Moltbot configuration or
.envfile:export LNBITS_BASE_URL=https://demo.lnbits.comexport LNBITS_API_KEY=<adminkey>"
Get the current wallet balance in Satoshis.
python3 {baseDir}/scripts/lnbits_cli.py balance
Generate a Bolt11 invoice to receive funds.
python3 {baseDir}/scripts/lnbits_cli.py invoice --amount 1000 --memo "Pizza"
⚠️ REQUIRES CONFIRMATION: Decode first, verify balance, ask user, then execute.
# Step 1: Decode to verify amount/memo
python3 {baseDir}/scripts/lnbits_cli.py decode <bolt11_string>
# Step 2: Pay (Only after user CONFIRMS)
python3 {baseDir}/scripts/lnbits_cli.py pay <bolt11_string>
If the CLI returns a JSON error (e.g., {"error": "Insufficient funds"}), summarize it clearly for the user. Do not show raw stack traces.