nak: Nostr Army Knife CLI for Openclaw

A versatile command-line tool for interacting with the Nostr network, managing keys, and executing complex protocol operations.

a1denvalu3
v0.1.0
Feb 21, 2026
0
974
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install nak

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install nak using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is nak: Nostr Army Knife CLI?

The nak (Nostr Army Knife) skill brings the full power of the Nostr protocol to your AI agent. It serves as a comprehensive command-line interface that allows for publishing events, querying relays, and managing cryptographic identities with ease. By integrating nak into your workflow via Openclaw Skills, you can build agents capable of participating in decentralized social networks, managing micro-payments, and handling secure, encrypted communications.

This skill is designed for high performance and extensibility, supporting a wide range of Nostr Improvement Proposals (NIPs). Whether you are building a bot to monitor relay activity or an automated system for decentralized file storage, this implementation provides the technical foundation needed to interact with the Nostr ecosystem reliably.

nak: Nostr Army Knife CLI Use Cases

  • Automating social media posts and profile metadata updates on Nostr relays.
  • Monitoring real-time event streams for specific keywords, kinds, or authors.
  • Managing decentralized identities and converting between bech32 and hex formats.
  • Executing Lightning Network payments through NIP-60 integrated Cashu wallets.
  • Uploading and managing media assets on Blossom servers for decentralized storage.

How nak: Nostr Army Knife CLI Works

  1. The AI agent invokes the nak CLI with specific subcommands to define the desired protocol action.
  2. Authentication is managed through secret keys, which can be passed as arguments or via environment variables.
  3. For publishing, the tool signs the event locally before broadcasting it to the specified list of relays.
  4. For querying, nak establishes a subscription with relays and streams the resulting JSON event data back to the agent.
  5. Advanced operations like NIP-44 encryption ensure that sensitive data is handled securely before leaving the local environment.

nak: Nostr Army Knife CLI Setup

To use this skill within Openclaw Skills, ensure you have the nak CLI installed (v0.15.3 or higher recommended).

# Install nak (example via Go)
go install github.com/fiatjaf/nak@latest

# Configure your environment variable for persistent authentication
export NOSTR_SECRET_KEY="your_nsec_here"

# Verify installation
nak --version

nak: Nostr Army Knife CLI Data Schema & Taxonomy

Component Description Data Format
Events Standard Nostr JSON objects including kind, tags, and content. JSON
Keys Cryptographic identities in hex or NIP-19 bech32 formats. String
Filters Query parameters used to request specific data from relays. JSON Array
Wallet Data Cashu tokens and transaction history for NIP-60 operations. JSON
Blossom Metadata References and hashes for files stored on media servers. JSON

nak: Nostr Army Knife CLI Advanced Features

  • Native Model Context Protocol (MCP) server mode for direct tool discovery by AI models.
  • Comprehensive NIP-44 support for modern, secure message encryption.
  • NIP-60 wallet management for decentralized finance and Lightning payments.
  • Seamless piping support allowing nak to integrate with jq and other shell utilities.
  • Automated relay hint generation for NIP-19 entity encoding.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*