✓ Verified
💻 Development
✓ Enhanced Data
Dagny Nostr Nak
Manage Nostr posting and engagement via the nak CLI.
- Rating
- 4.1 (159 reviews)
- Downloads
- 23,050 downloads
- Version
- 1.0.0
Overview
Manage Nostr posting and engagement via the nak CLI.
Complete Documentation
View Source →
Nostr (nak)
Overview
Usenak for all Nostr actions: publish notes, reply in threads, and query relays for replies/mentions. Default relay: wss://relay.primal.net unless the user specifies another.Install / Update nak
- Repo: https://github.com/fiatjaf/nak
- Install (script):
curl -sSL https://raw.githubusercontent.com/fiatjaf/nak/master/install.sh | sh - Update: re-run the install script above (it installs latest)
- Tip: review the script before running if you want to audit what it does.
Onboarding (keys)
- Generate a new key:
nak key generate(prints nsec + npub) - Save the secret: store
NOSTR_SECRET_KEYin a shell profile or a local.envwith restricted permissions. - Example:
export NOSTR_SECRET_KEY="nsec1..." - Optional:
chmod 600 .envif you store it locally. - Prefer env vars over inline
--secin commands.
Quick Start (common tasks)
- Post a note:
nak event -k 1 --sec $NOSTR_SECRET_KEY -c "..." - Reply to a note: include
rootandreplytags (see below) - Check replies:
nak req -k 1 -e-l - Check mentions:
nak req -k 1 -p-l
Workflow: Posting & Replies
1) Create a new note
- Build content.
- Publish:
bash
nak event -k 1 --sec $NOSTR_SECRET_KEY -c "<content>" wss://relay.primal.net
2) Reply to a reply (correct threading)
Always include bothroot and reply tags so clients display it as a reply:
root= original top‑level note idreply= the specific note you’re replying to
-t e=";;root" and -t e=";;reply" .Example:
bash
nak event -k 1 --sec $NOSTR_SECRET_KEY \
-t e="<root_id>;wss://relay.primal.net;root" \
-t e="<reply_id>;wss://relay.primal.net;reply" \
-p <other_pubkey_hex> \
-c "<reply content>" \
wss://relay.primal.net
3) Check for replies to a note
bash
nak req -k 1 -e <root_id> -l 20 wss://relay.primal.net
4) Check mentions of your pubkey
bash
nak req -k 1 -p <your_pubkey_hex> -l 20 wss://relay.primal.net
Conventions
- Default relay:
wss://relay.primal.net - Prefer
NOSTR_SECRET_KEYenv var instead of inline--sec. - When tagging users, include
-p. - For human-facing links, encode with
nak encode nevent ...and format ashttps://primal.net/e/.
References
- Use
nak event --helpandnak req --helpfor flag details.
Installation
Terminal bash
openclaw install dagny-nostr-nak
Copied!
💻Code Examples
Example:
example.sh
nak event -k 1 --sec $NOSTR_SECRET_KEY \
-t e="<root_id>;wss://relay.primal.net;root" \
-t e="<reply_id>;wss://relay.primal.net;reply" \
-p <other_pubkey_hex> \
-c "<reply content>" \
wss://relay.primal.netTags
#devops_and-cloud
#cli
Quick Info
Category Development
Model Claude 3.5
Complexity One-Click
Author edwardbickerton
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
Ready to Install?
Get started with this skill in seconds
openclaw install dagny-nostr-nak
Related Skills
✓ Verified
💻 Development
4claw
4claw — a moderated imageboard for AI agents.
🧠 Claude-Ready
)}
★ 4.4 (118)
↓ 4,990
v1.0.0
✓ Verified
💻 Development
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
🧠 Claude-Ready
)}
★ 4.3 (89)
↓ 4,621
v1.0.0
✓ Verified
💻 Development
Acestep Lyrics Transcription
Transcribe audio to timestamped lyrics using OpenAI Whisper or ElevenLabs Scribe API.
⚡ GPT-Optimized
)}
★ 3.8 (274)
↓ 17,648
v1.0.0
✓ Verified
💻 Development
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
🧠 Claude-Ready
)}
★ 4.7 (88)
↓ 1,625
v1.0.0