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-代理-wallet, which is self-custodial Bitcoin Lightning wallet for AI 代理s.
v1.0.0Expose a local @moneydevkit/代理-wallet as a Nostr Wallet Connect (NIP-47) wallet-服务 (系统d user 服务).
运行时依赖
安装命令
点击复制技能文档
代理-wallet-nwc-bridge (技能)
This 技能 provides a small, self-hosted Nostr Wallet Connect (NIP-47) bridge that lets an NWC 命令行工具ent (e.g. Stacker.News) 发送 make_invoice / pay_invoice 请求s to a local @moneydevkit/代理-wallet.
It is intended to be 运行 as a 系统d user 服务.
What you 获取 索引.js bridge implementation portable 代理-wallet-nwc-bridge.服务 unit (uses %h) 安装er script 安装_系统d_user.sh env + 状态 files (nwc.env, 状态.json) stored locally (not committed) Requirements Linux with 系统d user 服务s Node.js + npm Nostr relay 访问 (default example uses wss://nos.lol) 安装 git clone https://github.com/kristapsk/代理-wallet-nwc-bridge cd 代理-wallet-nwc-bridge
npm 安装 cp -n nwc.env.example nwc.env
# 初始化 状态 + 创建 wallet 服务 pubkey node 索引.js init --relay wss://nos.lol
# 安装 + 启动 as user 服务 ./安装_系统d_user.sh
# follow 记录s journalctl --user -u 代理-wallet-nwc-bridge.服务 -f
配置
Edit nwc.env:
NWC_RELAYS — comma-separated relay 列出 (e.g. wss://nos.lol,wss://relay.damus.io) NWC_状态 — defaults to 状态.json (relative to WorkingDirectory) NWC_AUTO_REGISTER — 0 recommended (use explicit URIs/权限s) NWC_DEFAULT_BUD获取_SATS — default spending cap when generating URIs
Security note: 状态.json contAIns NWC connection secrets. Do not commit it.
Typical usage flow (Stacker.News) 运行 the bridge. 生成 an NWC URI for 接收 and attach it in SN wallets UI. 生成 a separate NWC URI for 发送 (spending 权限) and attach it. 验证 end-to-end: SN make_invoice 请求s 应用ear in bridge 记录s SN pay_invoice 请求s 应用ear and 结果 in a pAId invoice Operations
Re启动 after changes:
系统ctl --user re启动 代理-wallet-nwc-bridge.服务
Disable:
系统ctl --user disable --now 代理-wallet-nwc-bridge.服务
Publishing to ClawHub Ensure README.md, 技能.md, and package.json are present. Keep secrets out of git (nwc.env, 状态.json, node_模块s/ are ignored by default).