Skip to content
Back to skills

Agent Wallet Nwc Bridge

ASecurity

Expose a local @moneydevkit/agent-wallet as a Nostr Wallet Connect (NIP-47) wallet-service (systemd user service).

  • 21 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 7, 2026
businessbashnodegitsecurity

Works with

  • cli

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 7 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill agent-wallet-nwc-bridge --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Wallet Nwc Bridge?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent Wallet Nwc Bridge
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-agent-wallet-nwc-bridge/badge)](https://www.skillsdirectory.com/skills/modbender-agent-wallet-nwc-bridge)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-wallet-nwc-bridge
version: 0.1.0
description: Expose a local @moneydevkit/agent-wallet as a Nostr Wallet Connect (NIP-47) wallet-service (systemd user service).
repo: https://github.com/kristapsk/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.js` bridge implementation
- portable `agent-wallet-nwc-bridge.service` unit (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

```bash
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 to `state.json` (relative to WorkingDirectory)
- `NWC_AUTO_REGISTER` — `0` recommended (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)

1. Run the bridge.
2. Generate an NWC URI for *receive* and attach it in SN wallets UI.
3. Generate a separate NWC URI for *send* (spending permission) and attach it.
4. Verify end-to-end:
   - SN `make_invoice` requests appear in bridge logs
   - SN `pay_invoice` requests appear and result in a paid invoice

## Operations

Restart after changes:

```bash
systemctl --user restart agent-wallet-nwc-bridge.service
```

Disable:

```bash
systemctl --user disable --now agent-wallet-nwc-bridge.service
```

## Publishing to ClawHub

- Ensure `README.md`, `SKILL.md`, and `package.json` are present.
- Keep secrets out of git (`nwc.env`, `state.json`, `node_modules/` are ignored by default).

Files in this skill

  • README.md2.1 KB
  • SKILL.md2.5 KB
  • agent-wallet-nwc-bridge.service603 B
  • index.js14.5 KB
  • install_systemd_user.sh944 B
  • package-lock.json4 KB
  • package.json306 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.