Self-custodial Bitcoin Lightning wallet for AI agents. Use when the agent needs to send or receive bitcoin payments, check its balance, generate invoices, or...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install mdk-agent-wallet或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install mdk-agent-wallet⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/mdk-agent-wallet/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: agent-wallet description: Self-custodial Bitcoin Lightning wallet for AI agents. Use when the agent needs to send or receive bitcoin payments, check its balance, generate invoices, or manage its wallet. Supports bolt11, bolt12, LNURL, and lightning addresses. Zero config — one command to initialize. homepage: https://docs.moneydevkit.com/agent-wallet repository: https://github.com/moneydevkit/mdk-checkout metadata: { "openclaw": { "emoji": "₿", "requires": { "bins": ["node", "npx"] }, "install": [ { "id": "agent-wallet-npm", "kind": "npm", "package": "@moneydevkit/agent-wallet", "bins": ["agent-wallet"], "label": "Install @moneydevkit/agent-wallet (npm)", }, ], "security": { "secrets": ["~/.mdk-wallet/config.json (BIP39 mnemonic)"], "network": ["localhost:3456 (daemon HTTP server)", "MDK Lightning infrastructure via outbound connections"], "persistence": ["~/.mdk-wallet/ (config, payment history)"], "notes": "The wallet stores a BIP39 mnemonic to disk and runs a local daemon. The mnemonic controls real funds on mainnet. Back it up and restrict file permissions on ~/.mdk-wallet/." } }, } ---
Self-custodial Lightning wallet for AI agents, built by MoneyDevKit. One command to init. All output is JSON.
Source: @moneydevkit/agent-wallet on npm · GitHub
This skill runs @moneydevkit/agent-wallet — an npm package published by MoneyDevKit. What it does:
~/.mdk-wallet/config.json — this IS your private key. Treat it like a password.localhost:3456 — HTTP server for wallet operations. Binds to localhost only (not externally accessible).~/.mdk-wallet/.No data is sent to external servers beyond standard Lightning protocol operations. You can verify this by inspecting the source code or the published npm tarball.
Recommended: Pin a version (npx @moneydevkit/[email protected]) in production.
# Initialize wallet (generates mnemonic)
npx @moneydevkit/agent-wallet init
# Get balance
npx @moneydevkit/agent-wallet balance
# Create invoice
npx @moneydevkit/agent-wallet receive 1000
# Pay someone
npx @moneydevkit/agent-wallet send [email protected] 500
The CLI automatically starts a daemon on first command. The daemon:
localhost:3456~/.mdk-wallet/No webhook endpoint needed — the daemon handles everything locally.
npx @moneydevkit/agent-wallet init
This command:
~/.mdk-wallet/config.jsonThe wallet is ready immediately. No API keys, no signup, no accounts. The agent holds its own keys.
npx @moneydevkit/agent-wallet init --show
Returns { "mnemonic": "...", "network": "mainnet", "walletId": "..." }.
Note: init will refuse to overwrite an existing wallet. To reinitialize:
npx @moneydevkit/agent-wallet stop
rm -rf ~/.mdk-wallet # WARNING: backup mnemonic first!
npx @moneydevkit/agent-wallet init
All commands return JSON on stdout. Exit 0 on success, 1 on error.
| Command | Description | |---------|-------------| | init | Generate mnemonic, create config | | init --show | Show config (mnemonic redacted) | | start | Start the daemon | | balance | Get balance in sats | | receive | Generate invoice | | receive | Generate variable-amount invoice | | receive | Invoice with custom description | | receive-bolt12 | Generate a BOLT12 offer (variable amount, reusable) | | send | Pay bolt11, bolt12, lnurl, or lightning address | | payments | List payment history | | status | Check if daemon is running | | stop | Stop the daemon | | restart | Restart the daemon |
npx @moneydevkit/agent-wallet balance
→ { "balance_sats": 3825 }
# Fixed amount
npx @moneydevkit/agent-wallet receive 1000
# Variable amount (payer chooses)
npx @moneydevkit/agent-wallet receive
# With description
npx @moneydevkit/agent-wallet receive 1000 --description "payment for service"
→ { "invoice": "lnbc...", "payment_hash": "...", "expires_at": "..." }
npx @moneydevkit/agent-wallet receive-bolt12
→ { "offer": "lno1..." }
BOLT12 offers are reusable and don't expire — share one offer and receive unlimited payments to it. Unlike BOLT11 invoices, the payer chooses the amount.
npx @moneydevkit/agent-wallet send <destination> [amount_sats]
Destination auto-detection:
lnbc10n1... (amount encoded, no arg needed)lno1...[email protected]lnurl1...For lightning addresses and LNURL, amount is required:
npx @moneydevkit/agent-wallet send [email protected] 500
npx @moneydevkit/agent-wallet payments
→ { "payments": [{ "paymentHash": "...", "amountSats": 1000, "direction": "inbound"|"outbound", "timestamp": ..., "destination": "..." }] }
# Stop the running daemon
npx @moneydevkit/agent-wallet stop
# Run with @latest to pull the newest version
npx @moneydevkit/agent-wallet@latest start
Your wallet config and payment history in ~/.mdk-wallet/ are preserved across upgrades.
:3456. Auto-starts, persists to disk.Want to accept payments from customers? Use the moneydevkit skill to add checkouts to any website. Agent-wallet handles agent-to-agent payments; moneydevkit handles customer-to-agent payments. Together they give your agent full payment superpowers.
安装 agent-wallet 后,可以对 AI 说这些话来触发它
Send a Slack message to the #engineering channel about the deployment
Formats and sends the message with relevant context, tagging the right people
Summarize all unread messages in my inbox from today
Reads messages across connected channels and returns a prioritized summary
Draft a reply to this customer complaint and send it for review
Writes an empathetic, professional response and routes it to the approval queue
将技能文件夹放到 ~/.claude/skills/mdk-agent-wallet/ 目录(个人级,所有项目可用),或 .claude/skills/mdk-agent-wallet/(项目级)。重启 AI 客户端后,用 /mdk-agent-wallet 主动调用,或让 AI 根据上下文自动发现并使用。
agent-wallet 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
agent-wallet 可免费安装使用。请查阅仓库了解许可证信息。
Self-custodial Bitcoin Lightning wallet for AI agents. Use when the agent needs to send or receive bitcoin payments, check its balance, generate invoices, or...
agent-wallet 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。