# Send LNBits Wallet wtih QR Code to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "lnbits-with-qrcode",
    "name": "LNBits Wallet wtih QR Code",
    "source": "tencent",
    "type": "skill",
    "category": "内容创作",
    "sourceUrl": "https://clawhub.ai/JamesTsetsekas/lnbits-with-qrcode",
    "canonicalUrl": "https://clawhub.ai/JamesTsetsekas/lnbits-with-qrcode",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/lnbits-with-qrcode",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lnbits-with-qrcode",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "scripts/lnbits_cli.py",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "lnbits-with-qrcode",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T00:45:05.406Z",
      "expiresAt": "2026-05-07T00:45:05.406Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lnbits-with-qrcode",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lnbits-with-qrcode",
        "contentDisposition": "attachment; filename=\"lnbits-with-qrcode-1.0.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "lnbits-with-qrcode"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/lnbits-with-qrcode"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/lnbits-with-qrcode",
    "downloadUrl": "https://openagent3.xyz/downloads/lnbits-with-qrcode",
    "agentUrl": "https://openagent3.xyz/skills/lnbits-with-qrcode/agent",
    "manifestUrl": "https://openagent3.xyz/skills/lnbits-with-qrcode/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/lnbits-with-qrcode/agent.md"
  }
}
```
## Documentation

### LNbits Wallet Manager

Enable the assistant to safely and effectively manage an LNbits Lightning Network wallet.

### 🛑 CRITICAL 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 balance before pay to prevent errors.
ALWAYS Include Invoice + QR: When generating an invoice, you MUST: (a) show the payment_request text for copying, and (b) output MEDIA: followed by the qr_file path on ONE line. NEVER skip this.

### 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. The CLI prints JSON containing adminkey and base_url to stdout (visible in the terminal).
NEVER Expose Secrets (applies here): Do NOT repeat, quote, or display the adminkey or any secret from the output in your chat response. The user sees the command output in their terminal; that is the only place the key should appear.
Instruct the user in plain language only, e.g.:

"A new wallet was created. The command output above contains your adminkey and base_url. Copy those values from the terminal and add them to your configuration or .env as LNBITS_API_KEY and LNBITS_BASE_URL. Do not paste the adminkey here or in any chat."

### 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. QR code is always included by default.

amount: Amount in Satoshis (Integer).
memo: Optional description.
--no-qr: Skip QR code generation (if not needed).

# Invoice with QR code (default)
python3 {baseDir}/scripts/lnbits_cli.py invoice --amount 1000 --memo "Pizza"

# Invoice without QR code
python3 {baseDir}/scripts/lnbits_cli.py invoice --amount 1000 --memo "Pizza" --no-qr

⚠️ MANDATORY RESPONSE FORMAT: When generating an invoice, your response MUST include:

Invoice text for copying: Show the full payment_request string so user can copy it
QR code image: Output MEDIA: followed by the qr_file path on ONE line

EXACT FORMAT (follow precisely):

Here is your 100 sat invoice:

lnbc1u1p5abc123...

MEDIA:./clawd/.lnbits_qr/invoice_xxx.png

CRITICAL: The MEDIA: and file path MUST be on the SAME LINE. This sends the QR code image to the user.

### 2b. Generate QR Code from Existing Invoice

Convert any Bolt11 string to a QR code image file.

python3 {baseDir}/scripts/lnbits_cli.py qr <bolt11_string>

Returns: {"qr_file": "./.lnbits_qr/invoice_xxx.png", "bolt11": "..."}

### 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 <bolt11_string>

# Step 2: Pay (Only after user CONFIRMS)
python3 {baseDir}/scripts/lnbits_cli.py pay <bolt11_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.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: JamesTsetsekas
- Version: 1.0.2
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T00:45:05.406Z
- Expires at: 2026-05-07T00:45:05.406Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/lnbits-with-qrcode)
- [Send to Agent page](https://openagent3.xyz/skills/lnbits-with-qrcode/agent)
- [JSON manifest](https://openagent3.xyz/skills/lnbits-with-qrcode/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/lnbits-with-qrcode/agent.md)
- [Download page](https://openagent3.xyz/downloads/lnbits-with-qrcode)