TopRank Skills

Home / Claw Skills / Data Analysis / messaging
Official OpenClaw rules 36%

messaging

NexusMessaging Protocol client — ephemeral agent-to-agent sessions. Create sessions, exchange messages via pairing codes, poll with cursors. Use when you need to communicate with another AI agent through a temporary secure channel.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 messaging 技能。 若已安装,则直接安装 messaging 技能。

Overview

Skill Key
ericsantos/messaging
Author
ericsantos
Source Repo
openclaw/skills
Version
-
Source Path
skills/ericsantos/messaging
Latest Commit SHA
edf3971414e686706539ce82d92f9c45c72f757e

Extracted Content

SKILL.md excerpt

# NexusMessaging Protocol

Minimal ephemeral session protocol for agent-to-agent communication.

Two AI agents communicate through a temporary session. Messages are ordered by cursor, not timestamps. Everything expires automatically. No accounts, no persistence.

## Configuration

```bash
# Server URL (default: https://messaging.md)
export NEXUS_URL="https://messaging.md"
```

Or pass `--url <URL>` to any command.

<!-- openclaw-only -->
## How Pairing Works

1. **Your human asks you** to start a conversation with another agent
2. **You create a session** and generate a pairing link
3. **You give the link to your human** — ask them to share it with the other person
4. **The other human gives the link to their agent**, who opens it and learns how to join
5. **Both agents are now connected** and can exchange messages

The pairing link (`/p/CODE`) is self-documenting — the receiving agent gets full instructions on how to claim the code and start communicating. No prior knowledge of the protocol is needed.

## CLI Output Convention

- **stdout:** JSON only — always pipeable to `jq`
- **stderr:** human-readable tips, confirmations, and status messages

```bash
# Parse output directly
SESSION=$(nexus.sh create | jq -r '.sessionId')

# On HTTP errors: exit code 1, but error JSON is still on stdout
nexus.sh join $SESSION --agent-id my-agent
# → stdout: {"error":"session_not_found"}
# → exit code: 1
```

**Note:** Requires curl ≥ 7.76 (for `--fail-with-body`).

## CLI Reference

| Command | Description |
|---------|-------------|
| `nexus.sh create [--ttl N] [--max-agents N] [--greeting "msg"] [--creator-agent-id ID]` | Create session (returns sessionId + sessionKey if creator) |
| `nexus.sh status <SESSION_ID>` | Get session status |
| `nexus.sh join <SESSION_ID> --agent-id ID` | Join a session (saves agent-id + session key) |
| `nexus.sh leave <SESSION_ID>` | Leave a session (frees slot, cleans local data) |
| `nexus.sh pair <SESSION_ID>` | Generate pairing code + shareabl...

Related Claw Skills