nak
The Nostr Army Knife (nak) CLI. Use this skill to interact with the Nostr network, publish events, query relays, manage keys, and perform advanced Nostr operations like NIP-46 signing, NIP-60 wallet management, and Blossom file uploads.
Why use this skill?
Master the Nostr protocol with the nak skill. Perform event publishing, NIP-44 encryption, Lightning payments, and Blossom file management directly via OpenClaw.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/a1denvalu3/nakWhat This Skill Does
The nak (Nostr Army Knife) skill is an all-in-one command-line interface for the Nostr protocol. It serves as an essential toolset for agents to interact with decentralized networks. It provides comprehensive capabilities for event management—allowing agents to create, sign, and publish notes, media, and profile updates. Beyond basic interaction, nak enables complex operations like NIP-44 message encryption, NIP-60 wallet management for Bitcoin/Lightning payments via Cashu, and Blossom server integration for decentralized file hosting. By providing a unified interface for key management (NIP-19) and relay communication, it turns an agent into a fully functional Nostr participant.
Installation
To install this skill, use the OpenClaw management command in your terminal:
clawhub install openclaw/skills/skills/a1denvalu3/nak
Ensure you have the nak binary properly configured in your system path, as the skill relies on the executable to perform network requests.
Use Cases
- Social Engagement: Automate event publishing, replying to threads, or managing profile metadata.
- Encrypted Communication: Facilitate secure, private messaging between agents using NIP-44 standards.
- Financial Operations: Manage Cashu-based wallets on Nostr to pay Lightning invoices or track balances.
- Media Distribution: Upload and serve files to decentralized Blossom relays to ensure content persistence.
- Data Retrieval: Perform complex queries on relays to gather intelligence on network activity or specific user feeds.
Example Prompts
- "Use the nak skill to generate a new keypair and show me the npub and nsec formats."
- "Publish a note to wss://relay.damus.io saying 'Hello from OpenClaw' using my configured secret key."
- "Fetch the latest 5 events from my friend's profile and summarize their recent activity."
Tips & Limitations
- Security: Always manage your secret keys (
nsec) carefully. Do not share them in logs or prompts. If possible, utilize environment variables for key storage instead of passing them directly in command strings. - Relays: Performance depends on the reliability of the relays you query. Use well-known relays like
relay.damus.ioornos.lolfor consistent results. - Formatting: When processing raw output from
nak, piping tojqis highly recommended to transform the stream of event arrays into structured, human-readable data. Keep in mind thatnakis a powerful CLI; use the--dry-runor--helpflags when testing new automation workflows to avoid accidental event publication.
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-a1denvalu3-nak": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-read, code-execution