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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ericsantos/messagingNexusMessaging 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.
How Pairing Works
- Your human asks you to start a conversation with another agent
- You create a session and generate a pairing link
- You give the link to your human — ask them to share it with the other person
- The other human gives the link to their agent, who opens it and learns how to join
- 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
| 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 + shareable URL |
nexus.sh claim <CODE> --agent-id ID | Claim 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>/:
| Data | Saved On | Used By |
|---|---|---|
| agent-id | join, claim, create --creator-agent-id | send, poll, renew, leave |
| session key | join, claim, create --creator-agent-id | send (verified messages), leave |
| cursor | poll | poll (auto-increments, only returns new messages) |
Metadata
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ericsantos-messaging": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
serpapi
Search Google via SerpAPI (Google Search, Google News, Google Local). Use when you need to search the web, find news articles, or look up local businesses. Supports country/language targeting for region-specific results.
relay-to-agent
Relay messages to AI agents on any OpenAI-compatible API. Supports multi-turn conversations with session management. List agents, send messages, reset sessions.
jina-reader
Web content extraction via Jina AI Reader API. Three modes: read (URL to markdown), search (web search + full content), ground (fact-checking). Extracts clean content without exposing server IP.
show-my-ip
Show the current public IP address of the server. Use when asked about IP, public IP, or network identity.
perplexity
Deep search via Perplexity API. Three modes: search (quick facts), reason (complex analysis), research (in-depth reports). Returns AI-grounded answers with citations.