AI 代理的比特币闪电钱包
简介
基于 Breez SDK 的 AI 代理自托管比特币钱包,支持闪电网络与链上交易,适合自动化支付场景。
原始描述
Self-custodial Bitcoin and Lightning wallet for AI agents. Send and receive sats via Lightning Network, Spark, or on-chain Bitcoin. Use when: checking bitcoin balance, sending/receiving payments, generating Lightning invoices, managing wallet operations. Requires the BreezClaw plugin and a Breez API key.
通过你的 Agent 添加
安装目录:bitcoin-wallet-using-breez-spark-sdk/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
slug: breezclaw
name: BreezClaw
description: "Self-custodial Bitcoin and Lightning wallet for AI agents. Send and receive sats via Lightning Network, Spark, or on-chain Bitcoin. Use when: checking bitcoin balance, sending/receiving payments, generating Lightning invoices, managing wallet operations. Requires the BreezClaw plugin and a Breez API key."
version: 1.0.0
author: onesandzeros-nz
keywords: bitcoin, lightning, wallet, breez, spark, sats, payments, self-custodial, breezclaw
homepage: https://github.com/onesandzeros-nz/BreezClaw
BreezClaw
Self-custodial Bitcoin and Lightning wallet for AI agents. Powered by Breez SDK Spark.
Install
# Clone plugin
cd ~/.openclaw/extensions
git clone https://github.com/onesandzeros-nz/BreezClaw.git breezclaw
# Install dependencies and build
cd breezclaw
npm install
npm run build
Configure
1. Get Breez API Key
# Clone plugin
cd ~/.openclaw/extensions
git clone https://github.com/onesandzeros-nz/BreezClaw.git breezclaw
# Install dependencies and build
cd breezclaw
npm install
npm run build
1. Get Breez API Key
Sign up at https://breez.technology/sdk/
2. Add to OpenClaw Config
Edit ~/.openclaw/openclaw.json:
{
"plugins": {
"entries": {
"breezclaw": {
"enabled": true,
"config": {
"breezApiKey": "YOUR_BREEZ_API_KEY",
"network": "mainnet"
}
}
}
}
}
3. Restart
openclaw gateway restart
Tools
Tool
Description
wallet_status
Check wallet exists and connection state
wallet_connect
Connect or create wallet from mnemonic
wallet_balance
Get balance in sats and BTC
wallet_receive
Generate payment request
wallet_prepare_send
Prepare payment with fee estimate
wallet_send
Execute confirmed payment
wallet_transactions
List transaction history
wallet_info
Detailed wallet info
wallet_backup
Retrieve mnemonic (sensitive!)
wallet_disconnect
Clean disconnect
Receive Methods
spark — Reusable Spark address (default)
spark_invoice — Spark invoice with amount
lightning — BOLT11 invoice
bitcoin — On-chain address
Payment Flow
openclaw gateway restart
| Tool | Description |
|---|---|
wallet_status |
Check wallet exists and connection state |
wallet_connect |
Connect or create wallet from mnemonic |
wallet_balance |
Get balance in sats and BTC |
wallet_receive |
Generate payment request |
wallet_prepare_send |
Prepare payment with fee estimate |
wallet_send |
Execute confirmed payment |
wallet_transactions |
List transaction history |
wallet_info |
Detailed wallet info |
wallet_backup |
Retrieve mnemonic (sensitive!) |
wallet_disconnect |
Clean disconnect |
Receive Methods
spark — Reusable Spark address (default)
spark_invoice — Spark invoice with amount
lightning — BOLT11 invoice
bitcoin — On-chain address
Payment Flow
spark — Reusable Spark address (default)spark_invoice — Spark invoice with amountlightning — BOLT11 invoicebitcoin — On-chain addressAlways two-step:
wallet_prepare_send→ Show fees- User confirms →
wallet_send(confirmed=true)
Security
- Never expose mnemonic unless explicitly requested
- Always show fees before sending
- Require explicit confirmation for sends
- Wallet data:
~/.openclaw/breezclaw/
Examples
"What's my balance?" → wallet_balance
"Invoice for 1000 sats" → wallet_receive(method="lightning", amount_sats=1000)
"Send 500 sats to user@wallet.com" → resolve LNURL → wallet_prepare_send → confirm → wallet_send
~/.openclaw/breezclaw/"What's my balance?" → wallet_balance
"Invoice for 1000 sats" → wallet_receive(method="lightning", amount_sats=1000)
"Send 500 sats to user@wallet.com" → resolve LNURL → wallet_prepare_send → confirm → wallet_send
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。