← 返回
开发者工具 中文

Nostr Nak

General purpose skill for using the Nostr Army Knife (nak) CLI tool with PTY support.
通用技能,用于使用 Nostr Army Knife (nak) CLI 工具,支持 PTY。
samthomson
开发者工具 clawhub v1.0.2 1 版本 99856.2 Key: 无需
★ 0
Stars
📥 1,389
下载
💾 10
安装
1
版本
#latest

概述

nostr-nak

General purpose skill for using the Nostr Army Knife (nak) CLI tool.

Critical Technical Note (PTY Requirement)

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

Relay Logic

By default, use discovery relays if no relay is specified:

  • wss://relay.damus.io
  • wss://relay.primal.net
  • wss://relay.nostr.band

If the user specifies a relay, override these defaults.

Identity Handling

  • Querying: Use npub... or hex pubkey with the -a flag.
  • Posting: Use nsec... or hex private key with the --sec flag.

Usage Examples

Fetch last 5 notes:

script -q -c "nak req -k 1 -a -l 5" /dev/null | cat

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-28 23:20 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,475
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,387
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,535