LNbits Wallet
/install lnbits
LNbits Wallet Manager
Enable the assistant to safely and effectively manage an LNbits Lightning Network wallet.
🛑 CRITICAL SECURITY PROTOCOLS 🛑
- NEVER Expose Secrets: Do NOT display Admin Keys, User IDs, or Wallet IDs.
- Explicit Confirmation: You MUST ask for "Yes/No" confirmation before paying.
- Format: "I am about to send [Amount] sats to [Memo/Dest]. Proceed? (y/n)"
- Check Balance First: Always call
balancebeforepayto prevent errors.
Usage
0. Setup / Create Wallet
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:
- Run the command.
- Capture the
adminkey(Admin Key) andbase_url(defaults to https://demo.lnbits.com). - IMPORTANT: Instruct the user to save these credentials securely:
"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=\x3Cadminkey>"
1. Check Balance
Get the current wallet balance in Satoshis.
python3 {baseDir}/scripts/lnbits_cli.py balance
2. Create Invoice (Receive)
Generate a Bolt11 invoice to receive funds.
- amount: Amount in Satoshis (Integer).
- memo: Optional description.
python3 {baseDir}/scripts/lnbits_cli.py invoice --amount 1000 --memo "Pizza"
3. Pay Invoice (Send)
⚠️ REQUIRES CONFIRMATION: Decode first, verify balance, ask user, then execute.
# Step 1: Decode to verify amount/memo
python3 {baseDir}/scripts/lnbits_cli.py decode \x3Cbolt11_string>
# Step 2: Pay (Only after user CONFIRMS)
python3 {baseDir}/scripts/lnbits_cli.py pay \x3Cbolt11_string>
Error Handling
If the CLI returns a JSON error (e.g., {"error": "Insufficient funds"}), summarize it clearly for the user. Do not show raw stack traces.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install lnbits - 安装完成后,直接呼叫该 Skill 的名称或使用
/lnbits触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
LNbits Wallet 是什么?
Manage LNbits Lightning Wallet (Balance, Pay, Invoice). 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1756 次。
如何安装 LNbits Wallet?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install lnbits」即可一键安装,无需额外配置。
LNbits Wallet 是免费的吗?
是的,LNbits Wallet 完全免费(开源免费),可自由下载、安装和使用。
LNbits Wallet 支持哪些平台?
LNbits Wallet 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 LNbits Wallet?
由 talvasconcelos(@talvasconcelos)开发并维护,当前版本 v1.0.0。