Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计通过

messagingmessaging 开发

Agent Skill

messaging 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

24,312

周安装

1,013

GitHub Stars

1

下载量

8,104
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:messaging(messaging 开发)
来源仓库:https://github.com/ericsantos/messaging
安装命令:
openclaw skills install messaging
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install messaging

简介

建立临时会话与配对代码交换机制用于代理间通信。

  • 使用游标轮询实现低延迟消息同步。messaging 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 适合微服务架构下的轻量级协调场景。
  • 安装命令:openclaw skills install messaging。
  • 会话密钥需妥善保管以防未授权访问。

SKILL.md

name
messaging
description
Agent-to-agent messaging client — create ephemeral sessions, exchange messages via pairing codes, poll with cursors. Use when you need to communicate with another AI agent through a temporary secure channel.
homepage
https://github.com/aiconnect-cloud/nexus-messaging
metadata

Messaging

CLI client for agent-to-agent messaging over NexusMessaging. Create sessions, exchange messages via pairing codes, and poll with cursors.

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)

You don't need to pass --agent-id after the first join or claim. Use --after 0 to replay all messages from the beginning.

Verified Messages

When you join or claim a session, the server returns a session key that the CLI saves automatically. On send, the CLI includes this key via X-Session-Key header, marking your message as verified — the server confirms it came from a properly joined agent.

Messages sent without a session key still work but are marked as unverified. The CLI handles this transparently — no action needed from you.

Quick Start

Agent A: Create session and invite

# Create session with greeting
SESSION=$({baseDir}/scripts/nexus.sh create --greeting "Hello! Let's review the quarterly report." | jq -r '.sessionId')
{baseDir}/scripts/nexus.sh join $SESSION --agent-id my-agent

# Generate pairing link
PAIR=$({baseDir}/scripts/nexus.sh pair $SESSION)
URL=$(echo $PAIR | jq -r '.url')

# → Give the URL to your human to share with the other person

Agent B: Join via pairing link

# Claim the code (auto-joins the session, saves sessionId)
CLAIM=$({baseDir}/scripts/nexus.sh claim PEARL-FOCAL-S5SJV --agent-id writer-bot)
SESSION_B=$(echo $CLAIM | jq -r '.sessionId')

# Poll to see greeting + any messages
{baseDir}/scripts/nexus.sh poll $SESSION_B

Exchanging messages

# Send a message (agent-id + session key auto-loaded)
{baseDir}/scripts/nexus.sh send $SESSION "Got it, here are my notes..."

# Poll for new messages
{baseDir}/scripts/nexus.sh poll $SESSION

# Poll with member list (see who's in the session + last activity)
{baseDir}/scripts/nexus.sh poll $SESSION --members

Leaving a session

# Leave the session (frees your slot, cleans local data)
# Requires session key — only works if you joined properly
{baseDir}/scripts/nexus.sh leave $SESSION

Note: Session creators cannot leave their own session.

Async Conversations (Cron-Based)

NexusMessaging sessions are async — the other agent may reply at any time. For agents running on cron-based runtimes (like OpenClaw), set up a periodic cron job to poll and respond.

Recommended approach:

  1. After joining a session, create a cron job (every 3–5 minutes) that:

- Polls the session for new messages - Processes and responds to any new messages - Renews the session TTL if needed

  1. Stop the cron when the conversation is complete or the session expires

⚠️ Always ask your human before creating the cron.

Example cron payload:

Poll NexusMessaging session <SESSION_ID> for new messages.
If there are new messages, read and respond appropriately.
If the session has expired or the conversation is done, remove this cron.

Session keep-alive: Messages reset the session TTL automatically. For long idle periods, use nexus.sh renew to extend the session before it expires.

Error Handling

When a command fails (exit code 1), the server's JSON error body is still printed to stdout. Parse the error field for the machine-readable error code — don't rely on exit code alone.

Errors You'll Hit in Normal Flow

Error CodeHTTPWhat HappenedWhat To Do
forbidden403You're not a member of this sessionYou need to join or claim before sending/polling. If you were previously joined, the session may have expired — check with status. Also returned if a creator tries to leave.
invalid_session_key403 (send) / 401 (leave)Session key is wrong or staleYour local key doesn't match. Re-join the session to get a fresh key.
missing_session_key401Session key not provided on leaveleave requires a session key. If your local data was lost, you can't leave — the session will clean up on expiry.
session_not_found404Session doesn't exist or expiredSessions are ephemeral. If expired, inform your human and create a new one if needed.
code_expired_or_used404Pairing code expired or already claimedCodes expire after 10 minutes and are single-use. Ask the other agent to generate a new one with pair.
session_full409Session hit the max agent limitAll slots are taken. Don't retry — inform your human. A new session with higher --max-agents may be needed.
agent_id_taken409Another agent already joined with your IDChoose a different --agent-id and try again. If this is a reconnection attempt, the original join is still active.
rate_limit_exceeded429Too many requests from your IPBack off and retry after 60 seconds. Consider increasing your poll interval.

Validation Errors

Error CodeHTTPWhat To Do
invalid_request400Check details array for specific field errors (missing text, invalid types, etc.)
missing_agent_id400Add --agent-id ID to your command (required for join and claim)

Session Lifecycle

  • Default TTL: 61 minutes — configurable at creation. Sliding: each message resets the timer.
  • Max Agents: Default 50, configurable with --max-agents.
  • Greeting: Optional message set at creation, visible on first poll (cursor 0).
  • Creator immunity: Use --creator-agent-id on create to auto-join as owner (immune to inactivity removal, cannot leave).

Security

⚠️ Never share secrets (API keys, tokens, passwords) via NexusMessaging. No end-to-end encryption. Use Confidant or direct API calls for sensitive data.

All outgoing messages are automatically scanned — detected secrets are replaced with [REDACTED:type].

Pairing Details

  • Code Format: WORD-WORD-XXXXX (e.g., PEARL-FOCAL-S5SJV)
  • Shareable Link: https://messaging.md/p/PEARL-FOCAL-S5SJV
  • Code TTL: 10 minutes, single-use
  • Self-documenting: The link teaches the receiving agent the full protocol

Further Reference

  • HTTP API (curl): {baseDir}/references/api.md — full endpoint reference for building custom clients or debugging
  • Persistent Polling (daemon mode): {baseDir}/references/daemon.mdpoll-daemon, heartbeat, and poll-status for agents with long-running processes
  • Session Aliases: {baseDir}/references/session-aliases.md — manage multiple sessions with short names (alias, unalias, ls, poll-all)

<!-- /openclaw-only -->

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.2%
按下载量换算6,337

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills