Install
openclaw skills install nostr-nakGeneral purpose skill for using the Nostr Army Knife (nak) CLI tool with PTY support.
openclaw skills install nostr-nakGeneral purpose skill for using the Nostr Army Knife (nak) CLI tool.
nak hangs in non-interactive environments due to stdout buffering.
Always wrap nak commands in script to force a pseudo-TTY:
script -q -c "nak req ..." /dev/null | cat
By default, use discovery relays if no relay is specified:
wss://relay.damus.iowss://relay.primal.netwss://relay.nostr.bandIf the user specifies a relay, override these defaults.
npub... or hex pubkey with the -a flag.nsec... or hex private key with the --sec flag.Fetch last 5 notes:
script -q -c "nak req -k 1 -a <npub> <relays> -l 5" /dev/null | cat