/install agent-wallet-nwc-bridge
agent-wallet-nwc-bridge (skill)
This skill provides a small, self-hosted Nostr Wallet Connect (NIP-47) bridge that lets an NWC client (e.g. Stacker.News) send make_invoice / pay_invoice requests to a local @moneydevkit/agent-wallet.
It is intended to be run as a systemd user service.
What you get
index.jsbridge implementation- portable
agent-wallet-nwc-bridge.serviceunit (uses%h) - installer script
install_systemd_user.sh - env + state files (
nwc.env,state.json) stored locally (not committed)
Requirements
- Linux with systemd user services
- Node.js + npm
- Nostr relay access (default example uses
wss://nos.lol)
Install
git clone https://github.com/kristapsk/agent-wallet-nwc-bridge
cd agent-wallet-nwc-bridge
npm install
cp -n nwc.env.example nwc.env
# initialize state + create wallet service pubkey
node index.js init --relay wss://nos.lol
# install + start as user service
./install_systemd_user.sh
# follow logs
journalctl --user -u agent-wallet-nwc-bridge.service -f
Configure
Edit nwc.env:
NWC_RELAYS— comma-separated relay list (e.g.wss://nos.lol,wss://relay.damus.io)NWC_STATE— defaults tostate.json(relative to WorkingDirectory)NWC_AUTO_REGISTER—0recommended (use explicit URIs/permissions)NWC_DEFAULT_BUDGET_SATS— default spending cap when generating URIs
Security note: state.json contains NWC connection secrets. Do not commit it.
Typical usage flow (Stacker.News)
- Run the bridge.
- Generate an NWC URI for receive and attach it in SN wallets UI.
- Generate a separate NWC URI for send (spending permission) and attach it.
- Verify end-to-end:
- SN
make_invoicerequests appear in bridge logs - SN
pay_invoicerequests appear and result in a paid invoice
- SN
Operations
Restart after changes:
systemctl --user restart agent-wallet-nwc-bridge.service
Disable:
systemctl --user disable --now agent-wallet-nwc-bridge.service
Publishing to ClawHub
- Ensure
README.md,SKILL.md, andpackage.jsonare present. - Keep secrets out of git (
nwc.env,state.json,node_modules/are ignored by default).
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agent-wallet-nwc-bridge - 安装完成后,直接呼叫该 Skill 的名称或使用
/agent-wallet-nwc-bridge触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Nostr Wallet Connect (NWC) bridge for mdk-agent-wallet, which is self-custodial Bitcoin Lightning wallet for AI agents. 是什么?
Expose a local @moneydevkit/agent-wallet as a Nostr Wallet Connect (NIP-47) wallet-service (systemd user service). 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1002 次。
如何安装 Nostr Wallet Connect (NWC) bridge for mdk-agent-wallet, which is self-custodial Bitcoin Lightning wallet for AI agents.?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-wallet-nwc-bridge」即可一键安装,无需额外配置。
Nostr Wallet Connect (NWC) bridge for mdk-agent-wallet, which is self-custodial Bitcoin Lightning wallet for AI agents. 是免费的吗?
是的,Nostr Wallet Connect (NWC) bridge for mdk-agent-wallet, which is self-custodial Bitcoin Lightning wallet for AI agents. 完全免费(开源免费),可自由下载、安装和使用。
Nostr Wallet Connect (NWC) bridge for mdk-agent-wallet, which is self-custodial Bitcoin Lightning wallet for AI agents. 支持哪些平台?
Nostr Wallet Connect (NWC) bridge for mdk-agent-wallet, which is self-custodial Bitcoin Lightning wallet for AI agents. 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Nostr Wallet Connect (NWC) bridge for mdk-agent-wallet, which is self-custodial Bitcoin Lightning wallet for AI agents.?
由 kristapsk(@kristapsk)开发并维护,当前版本 v1.0.0。