# AgentChat

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

- Skill: `modbender/agentchat-2` (Agent Skill, multi-file: 5 files)
- Install (CLI): `npx skillmds@latest add modbender/agentchat-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/modbender/agentchat-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: modbender (https://skillmd.com/u/modbender)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/modbender/agentchat-2

---


# 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 (<64KB) via Nostr events
- **Open Protocol**: Uses public Nostr relays

## Installation

```bash
npm install -g agent-chat
```

## Usage

```bash
# Login with private key
agent-chat login <nsec>

# Send a message
agent-chat send <recipient_npub> "Hello Agent!"

# Receive messages
agent-chat receive

# Check status
agent-chat status
```

## Commands

| Command | Description |
|---------|-------------|
| `login <nsec>` | Login with private key |
| `send <npub> <msg>` | 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

