← 返回 Skills 市场
671
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install wangwu-agent-chat
功能描述
Command-line tool for encrypted agent-to-agent messaging and small file sharing over public Nostr relays using npub/nsec authentication.
安全使用建议
This implementation appears to do what it says (a Nostr CLI), but it saves the private key you pass to login directly to ~/.agent-chat/config.json in plaintext and the code has inconsistent handling of nsec vs hex keys. Before installing or using it: (1) Do NOT use a real/important private key — test with a throwaway/ephemeral key. (2) Inspect the published npm package (publisher, repository, package contents) to confirm it matches this source; the skill's Source/Homepage are unknown. (3) If you must use it, consider modifying the code to store only a decoded hex key or, better, store the key encrypted or in the OS keyring rather than plaintext. (4) Run the CLI in a sandbox or isolated account if you want to try it. (5) If you're not comfortable reviewing or changing the code, avoid installing globally on a machine with sensitive keys.
功能分析
Type: OpenClaw Skill
Name: wangwu-agent-chat
Version: 0.0.1
The skill is classified as suspicious due to a significant vulnerability: the Nostr private key (`nsec`) is stored in plaintext within `~/.agent-chat/config.json` by the `saveConfig` function in `src/index.ts`. While the code's primary purpose aligns with Nostr messaging and there's no explicit evidence of intentional exfiltration or other malicious actions, this insecure storage method exposes the private key to any process with read access to the user's home directory, making it a critical vulnerability that could enable credential theft. The `SKILL.md` instructions are benign and do not contain prompt injection attempts.
能力评估
Purpose & Capability
Name, description, SKILL.md, package.json, and source code are consistent: this is a Nostr-based agent-to-agent messaging CLI using nostr-tools and public relays.
Instruction Scope
SKILL.md shows login/send/receive/status commands but does not disclose that the login command saves the provided nsec value into ~/.agent-chat/config.json in plaintext. The runtime instructions therefore omit an important, sensitive side-effect (persisting private keys to disk).
Install Mechanism
No remote download/install hooks in the skill bundle. The README suggests npm install -g (standard for a Node CLI) and package.json depends on the expected nostr-tools package — nothing unusually risky in install metadata included here.
Credentials
The skill requests no environment variables, but it writes the user's nsec (private key) into a config file under the home directory (~/.agent-chat/config.json) without encryption. Persisting a private key in plain text is disproportionate risk for any user who cares about key confidentiality. Additionally, the code appears inconsistent about the private-key format (storing 'nsec' but later treating the stored value as hex), which may cause incorrect behavior or accidental leakage.
Persistence & Privilege
The skill creates and uses a per-user config directory (~/.agent-chat) and stores credentials there; it does not request elevated system privileges nor set always:true. Writing its own config is expected for a CLI, but the sensitive content it stores is the concern, not the persistence itself.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install wangwu-agent-chat - 安装完成后,直接呼叫该 Skill 的名称或使用
/wangwu-agent-chat触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.0.1
Initial release of wangwu-agent-chat.
- Nostr-based CLI for agent-to-agent messaging and file sharing.
- Supports identity/authentication via npub and nsec keys.
- Encrypted private messages and small file transfer (<64KB) using Nostr events.
- Simple commands for login, sending, receiving, and checking status.
- Uses public Nostr relays for communication.
- MIT licensed.
元数据
常见问题
AgentChat 是什么?
Command-line tool for encrypted agent-to-agent messaging and small file sharing over public Nostr relays using npub/nsec authentication. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 671 次。
如何安装 AgentChat?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install wangwu-agent-chat」即可一键安装,无需额外配置。
AgentChat 是免费的吗?
是的,AgentChat 完全免费(开源免费),可自由下载、安装和使用。
AgentChat 支持哪些平台?
AgentChat 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 AgentChat?
由 wangwu-30(@wangwu-30)开发并维护,当前版本 v0.0.1。
推荐 Skills