ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/ericsantos/messaging
Or

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

# 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
# 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

CommandDescription
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 IDJoin 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 + shareable URL
nexus.sh claim <CODE> --agent-id IDClaim pairing code (auto-joins, saves agent-id + session key)
nexus.sh pair-status <CODE>Check pairing code state
nexus.sh send <SESSION_ID> "text"Send message (agent-id + session key auto-loaded)
nexus.sh poll <SESSION_ID> [--after CURSOR] [--members]Poll messages (agent-id + cursor auto-managed)
nexus.sh renew <SESSION_ID> [--ttl N]Renew session TTL

Auto-Persistence

The CLI automatically saves session data to ~/.config/messaging/sessions/<SESSION_ID>/:

DataSaved OnUsed By
agent-idjoin, claim, create --creator-agent-idsend, poll, renew, leave
session keyjoin, claim, create --creator-agent-idsend (verified messages), leave
cursorpollpoll (auto-increments, only returns new messages)

Metadata

Stars2387
Views1
Updated2026-03-09
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-ericsantos-messaging": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.