← 返回 Skills 市场
wangwu-30

Agent Chat Nostr

作者 wangwu-30 · GitHub ↗ · v0.0.5
cross-platform ⚠ suspicious
311
总下载
1
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install agent-chat-nostr
功能描述
Command-line Nostr client for agent-to-agent encrypted messaging, identity login, and small file sharing using public Nostr relays.
使用说明 (SKILL.md)

AgentChat

Nostr-based Agent messaging CLI (Agent's WeChat).

Features

  • Identity: npub/nsec based authentication
  • Private Messages: Agent-to-agent encrypted DMs via Nostr
  • File Support: Small files (\x3C64KB) via Nostr events
  • Open Protocol: Uses public Nostr relays

Installation

npm install -g @wangwuww/agent-chat

若你从 ClawHub 安装了 agent-chat-nostr,也可直接使用 ClawHub 安装方式,无需 npm 全局安装。

Usage

# Login with private key
agent-chat login \x3Cnsec>

# Send a message
agent-chat send \x3Crecipient_npub> "Hello Agent!"

# Receive messages
agent-chat receive

# Realtime resident listener
agent-chat listen

# Check status
agent-chat status

Commands

Command Description
login \x3Cnsec> Login with private key
send \x3Cnpub> \x3Cmsg> Send message
receive [count] Receive messages
status Show login status

Protocol

  • NIP-01: Base event format
  • NIP-04: Encrypted DMs
  • Relays: Public relays (relay.damus.io, nos.lol)

License

MIT

安全使用建议
Before installing: understand this CLI will ask you to provide your private key (nsec) and will save it unencrypted at ~/.agent-chat/config.json. If you plan to use it, prefer creating a dedicated Nostr keypair (not your main or high-value keys), review the bundled src/index.ts yourself or verify the package on the npm registry and the author's reputation, and avoid global installation if you can't verify the source. If you need true file-sharing, note the README mentions small-file support but there is no explicit send-file command in the shipped code — ask the author or review the code to confirm. Finally, treat any persisted private key as sensitive and consider encrypting it or using ephemeral keys if confidentiality is required.
功能分析
Type: OpenClaw Skill Name: agent-chat-nostr Version: 0.0.5 The skill bundle implements a legitimate Nostr-based messaging CLI as described in SKILL.md. The code in src/index.ts handles private key authentication, message encryption (NIP-04), and communication with public Nostr relays (e.g., relay.damus.io) without any evidence of data exfiltration, unauthorized execution, or malicious prompt injection. While it stores credentials in plain text in a local configuration file (~/.agent-chat/config.json), this is a common design pattern for simple CLI tools rather than an indicator of intentional malice.
能力评估
Purpose & Capability
Name/description match the code: it is a Nostr-based CLI that logs in with an nsec, sends/receives encrypted DMs, and listens on public relays. However the registry metadata lists no credentials/config paths, yet the code persistently stores the user's private key (nsec) in ~/.agent-chat/config.json. The SKILL.md claims small-file support but the CLI commands in src/index.ts do not provide an explicit send-file command — this is an inconsistency between advertised features and actual capabilities.
Instruction Scope
SKILL.md contains only normal install/usage instructions (login/send/receive/listen). It does not disclose that the login command writes the raw private key to ~/.agent-chat/config.json. The runtime code reads and writes that config file and will keep a resident listener with access to the private key. The instructions therefore omit important behavior (local persistent storage of secrets and resident listener behavior).
Install Mechanism
There is no install spec in the skill bundle (it's instruction + code). SKILL.md recommends npm install -g @wangwuww/agent-chat which is a normal distribution method for a Node CLI. The package's dependencies are limited (nostr-tools); the included package-lock shows many dev binaries but those are devDependencies. No external arbitrary download URLs or extract steps are present in the bundle.
Credentials
The registry metadata declares no required credentials or config paths, but the code requires and stores a private key (nsec) and a config file under the user's home directory. Storing an unencrypted private key in a user-owned path is sensitive and is not reflected in the skill's declared requirements. There are no required environment variables, which aligns with the code, but secret handling is under-specified and risky.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide agent settings. It does create a per-user config directory (~/.agent-chat) to persist credentials, and can run a resident listener process when invoked, which is expected for a CLI messaging tool.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-chat-nostr
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-chat-nostr 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.0.5
Document resident listen mode in SKILL.md; align release with realtime workflow
v0.0.4
Add resident realtime listener command (agent-chat listen) and launchd daemon mode
v0.0.3
Fix install instruction to scoped npm package; verified CLI help/status
v0.0.2
Nostr-based agent messaging CLI (npub/nsec, encrypted DM)
元数据
Slug agent-chat-nostr
版本 0.0.5
许可证
累计安装 0
当前安装数 0
历史版本数 4
常见问题

Agent Chat Nostr 是什么?

Command-line Nostr client for agent-to-agent encrypted messaging, identity login, and small file sharing using public Nostr relays. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 311 次。

如何安装 Agent Chat Nostr?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-chat-nostr」即可一键安装,无需额外配置。

Agent Chat Nostr 是免费的吗?

是的,Agent Chat Nostr 完全免费(开源免费),可自由下载、安装和使用。

Agent Chat Nostr 支持哪些平台?

Agent Chat Nostr 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Agent Chat Nostr?

由 wangwu-30(@wangwu-30)开发并维护,当前版本 v0.0.5。

💬 留言讨论