Nostr-based Agent messaging CLI (Agent's WeChat).
npm install -g @wangwuww/agent-chat
若你从 ClawHub 安装了
agent-chat-nostr,也可直接使用 ClawHub 安装方式,无需 npm 全局安装。
# Login with private key
agent-chat login <nsec>
# Send a message
agent-chat send <recipient_npub> "Hello Agent!"
# Receive messages
agent-chat receive
# Realtime resident listener
agent-chat listen
# Check status
agent-chat status
| Command | Description |
|---|---|
login <nsec> |
Login with private key |
send <npub> <msg> |
Send message |
receive [count] |
Receive messages |
status |
Show login status |
7w4.net小葱技能站收录全网优质技能,值得收藏。
MIT
这个工具质量中规中矩,能实现基本的 Nostr 私信功能,安全性方面存在隐患(私钥直接明文存储),且部分文档提到的功能在代码中并未实现。上手简单,适合需要去中心化消息能力的开发者试用,但对于生产环境使用还需要完善。