dagny-nostr-nak
Manage Nostr posting and engagement via the nak CLI. Use for creating notes, replying in threads, tagging npubs, checking replies/mentions, monitoring a relay (default wss://relay.primal.net), and publishing events with correct root/reply tags. Requires access to NOSTR_SECRET_KEY (nsec) for signing/publishing.
Why use this skill?
Integrate the nak CLI with OpenClaw to automate your Nostr presence, manage threaded replies, and monitor relays securely.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/edwardbickerton/dagny-nostr-nakWhat This Skill Does
The dagny-nostr-nak skill integrates the powerful 'nak' (Nostr Access Kit) CLI into the OpenClaw ecosystem, enabling autonomous interaction with the Nostr decentralized social network. It acts as a bridge for the AI agent to publish content, manage threaded conversations, monitor relays for engagement, and interact with specific Nostr events. By leveraging 'nak', the skill ensures that the agent follows standard Nostr protocols, including the correct handling of root and reply tags to maintain coherent conversation threads across various clients.
Installation
To install this skill, run the following command in your terminal: clawhub install openclaw/skills/skills/edwardbickerton/dagny-nostr-nak. Ensure you have the nak binary installed and accessible in your system path by following the instructions at https://github.com/fiatjaf/nak. For security, export your NOSTR_SECRET_KEY as an environment variable (export NOSTR_SECRET_KEY="nsec1...") to avoid hardcoding credentials in scripts or command lines.
Use Cases
- Automated Posting: Publish periodic updates or summary reports directly to your Nostr feed.
- Engagement Management: Have the AI agent monitor your mentions and replies, drafting responses or alerting you to important interactions.
- Threaded Participation: The agent can engage in complex discussions by correctly identifying root and reply event IDs, ensuring its contributions are correctly nested in the visual representation of the Nostr thread.
- Relay Monitoring: Track specific relays for new events or filter mentions to keep your social presence active without constant manual oversight.
Example Prompts
- "Post a new note to Nostr saying: 'Excited to be experimenting with autonomous AI agents on the Nostr protocol!'"
- "Check for any new replies to my post with ID [event_id] on relay wss://relay.primal.net and summarize them for me."
- "Reply to the latest mention in my feed with: 'Thanks for the mention! Let's discuss this further.' Ensure you include the correct root and reply tags."
Tips & Limitations
Always store your nsec (secret key) securely; never share it with untrusted parties. The skill defaults to 'wss://relay.primal.net', but you can specify other relays for broader reach. Ensure your shell environment is correctly configured to read the NOSTR_SECRET_KEY variable, as the skill relies on this to sign events. Keep in mind that relay latency can vary; if a post does not appear immediately, refresh your client or check the relay status.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-edwardbickerton-dagny-nostr-nak": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-read, code-execution