ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified communication Safety 3/5

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/a1denvalu3/nak
Or

What 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

  1. "Use the nak skill to generate a new keypair and show me the npub and nsec formats."
  2. "Publish a note to wss://relay.damus.io saying 'Hello from OpenClaw' using my configured secret key."
  3. "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.io or nos.lol for consistent results.
  • Formatting: When processing raw output from nak, piping to jq is highly recommended to transform the stream of event arrays into structured, human-readable data. Keep in mind that nak is a powerful CLI; use the --dry-run or --help flags when testing new automation workflows to avoid accidental event publication.

Metadata

Stars1524
Views1
Updated2026-02-26
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-a1denvalu3-nak": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#nostr#decentralized#networking#crypto#cli
Safety Score: 3/5

Flags: network-access, file-read, code-execution