← 返回 Skills 市场
jamestsetsekas

LNBits Wallet wtih QR Code

作者 James Tsetsekas · GitHub ↗ · v1.0.2
cross-platform ✓ 安全检测通过
21452
总下载
6
收藏
20
当前安装
3
版本数
在 OpenClaw 中安装
/install lnbits-with-qrcode
功能描述
Manage LNbits Lightning Wallet (Balance, Pay, Invoice)
安全使用建议
Install only if you are comfortable giving the assistant access to an LNbits admin key. Use a dedicated low-balance wallet, verify decoded invoice details before confirming payment, keep the adminkey out of chat and shared terminals, and set LNBITS_BASE_URL to the LNbits server you intend to use.
功能分析
Type: OpenClaw Skill Name: lnbits-with-qrcode Version: 1.0.2 The skill is designed to manage an LNbits Lightning Wallet and includes robust, explicit instructions in SKILL.md for the AI agent to follow critical safety protocols, such as never exposing secrets, requiring explicit user confirmation before making payments, and checking the balance first. The `scripts/lnbits_cli.py` script uses environment variables for API keys, communicates only with the specified LNbits API, and limits file system access to temporary QR code generation within the skill's working directory. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or prompt injection attempts against the agent; instead, the instructions actively guide the agent toward secure and responsible behavior.
能力评估
Purpose & Capability
The skill can check balances, create invoices, decode invoices, generate QR codes, create wallets, and pay Lightning invoices. These are high-impact financial capabilities but are coherent with managing an LNbits wallet and are documented in SKILL.md and README.md.
Instruction Scope
Runtime instructions explicitly tell the agent not to expose secrets, to check balance before payment, to decode invoices, and to ask for yes/no confirmation before paying. The payment CLI itself has no built-in interlock, so users should rely on careful agent approval flow.
Install Mechanism
Install metadata discloses python3, qrcode[pil], and LNBITS_API_KEY/LNBITS_BASE_URL environment requirements. The Python dependency is unpinned, but no hidden install-time behavior was found.
Credentials
Reading an LNbits API key and sending requests to the configured LNbits server is sensitive but proportionate for a wallet manager. The default base URL is the public LNbits demo server if LNBITS_BASE_URL is not set.
Persistence & Privilege
The only local persistence found is temporary QR PNG output under .lnbits_qr in the working directory with cleanup of older PNG files. No background worker, privilege escalation, hidden credential storage, or unrelated file access was found.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lnbits-with-qrcode
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lnbits-with-qrcode 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Updated invoice QR code response: Change from using IMAGE: to MEDIA: followed by the file path, ensuring QR images are properly handled. - Adjusted expected QR file path for invoices from /tmp/lnbits_qr/ to ./.lnbits_qr/, standardizing location for QR code images. - Updated examples and instructions to align with new response format (MEDIA: and path on one line). - No changes to commands or protocol; only the output format and file paths for QR code delivery were updated.
v1.0.1
- Clarified wallet creation protocols: Do not repeat, quote, or display the adminkey or secrets in responses; users must copy secrets directly from command output in their terminal. - Updated setup instructions to emphasize never exposing secrets and using plain language guidance only. - No code or interface changes; documentation and critical protocols were refined for improved security and clarity.
v1.0.0
LNbits Wallet Manager Skill for OpenClaw Enable your OpenClaw assistant to safely and effectively manage an LNbits Lightning Network wallet. Features Check Balance: Get your current wallet balance in Satoshis. Create Invoice: Generate Bolt11 invoices to receive funds, with automatic QR code generation. Pay Invoice: Safely pay Bolt11 invoices after confirmation and balance checks. Decode Invoice: Inspect Bolt11 invoices to verify amount and memo. Generate QR Code: Create a QR code image from any Bolt11 invoice string. Create Wallet: Easily set up a new LNbits wallet on the demo server. 🛑 Critical Protocols for Safe Usage 🛑 To ensure secure and responsible handling of your LNbits wallet, this skill enforces strict protocols: NEVER Expose Secrets: The assistant is programmed to NEVER display Admin Keys, User IDs, or Wallet IDs in chat. Credentials are handled via environment variables. Explicit Payment Confirmation: The assistant MUST ask for "Yes/No" confirmation before sending any payment. Confirmation Format: "I am about to send [Amount] sats to [Memo/Destination]. Proceed? (y/n)" Balance Check Before Pay: The assistant will always check your wallet balance before attempting to pay an invoice to prevent failed transactions. Invoice + QR Output: When generating an invoice, the assistant will ALWAYS provide: The payment_request text string for easy copying. An IMAGE: link to the generated QR code file on a single line, allowing direct display of the QR code. Installation This skill requires the qrcode[pil] Python library. Install ClawHub CLI: npm i -g clawhub Install the Skill: clawhub install lnbits Configuration The skill uses environment variables for LNbits API credentials. It's recommended to add these to your OpenClaw configuration or your agent's .env file. LNBITS_BASE_URL: The base URL of your LNbits instance (e.g., https://legend.lnbits.com or your self-hosted URL). LNBITS_API_KEY: Your LNbits wallet's Admin Key. Example .env entries: export LNBITS_BASE_URL=https://legend.lnbits.com export LNBITS_API_KEY=YOUR_ADMIN_KEY_HERE Usage Examples Here's how you can use the lnbits skill with your OpenClaw assistant: 0. Setup / Create Wallet If you don't have an LNbits wallet, you can create one (defaults to the demo server for ease of setup): (User): Create a new lnbits wallet named "My OpenClaw Wallet" The assistant will provide you with the adminkey and base_url for your new wallet, which you should save securely in your environment variables. 1. Check Balance Ask your assistant for the current balance: (User): What's my lnbits balance? 2. Create Invoice (Receive Funds) Generate an invoice for receiving funds: (User): Create an invoice for 5000 sats for "Coffee" The assistant will provide the Bolt11 invoice string and a QR code image. 2b. Generate QR Code from Existing Invoice If you have a Bolt11 string and need a QR code: (User): Generate a QR code for this invoice: lnbc1u1p... 3. Pay Invoice (Send Funds) To pay an invoice, the assistant will first decode it and then ask for confirmation: (User): Pay this invoice: lnbc1u1p... The assistant will then prompt: "I am about to send [Amount] sats to [Memo/Dest]. Proceed? (y/n)" Error Handling The skill is designed to catch and summarize API errors from LNbits, providing clear feedback to the user without exposing raw technical details or stack traces. Developed for OpenClaw - The AI Orchestration Layer
元数据
Slug lnbits-with-qrcode
版本 1.0.2
许可证
累计安装 809
当前安装数 20
历史版本数 3
常见问题

LNBits Wallet wtih QR Code 是什么?

Manage LNbits Lightning Wallet (Balance, Pay, Invoice). 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 21452 次。

如何安装 LNBits Wallet wtih QR Code?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install lnbits-with-qrcode」即可一键安装,无需额外配置。

LNBits Wallet wtih QR Code 是免费的吗?

是的,LNBits Wallet wtih QR Code 完全免费(开源免费),可自由下载、安装和使用。

LNBits Wallet wtih QR Code 支持哪些平台?

LNBits Wallet wtih QR Code 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 LNBits Wallet wtih QR Code?

由 James Tsetsekas(@jamestsetsekas)开发并维护,当前版本 v1.0.2。

💬 留言讨论