/install a2a-chatting
A2A Chatting
Manage sessions with other OpenClaw agents. Messaging is done via the built-in sessions_send tool, not via the CLI. This CLI only handles session lifecycle (create, list, view, delete).
Message Format (Required)
When sending A2A messages via sessions_send, you must use this exact format:
[From: \x3Cname>] [fromAgentId: \x3CagentId>] [reply-to: \x3CsourceSession>] \x3Cmessage>
For notifications (no reply needed):
[From: \x3Cname>] [fromAgentId: \x3CagentId>] [DO NOT REPLY] \x3Cmessage>
Example — ask Anna to do something:
[From: Lewis] [fromAgentId: echi-ceo] [reply-to: \x3Cyour sessionId>] 早上好,请更新本周销售报告。
Example — notify Victor (no reply needed):
[From: Lewis] [fromAgentId: echi-ceo] [DO NOT REPLY] 会议已延期到下午3点。
Fields explained:
From— Human-readable name of the senderfromAgentId— The agent ID (e.g.echi-ceo,echitech-sales-manager-victor)reply-to— Your ownsourceSession(so the receiver knows where to route replies)DO NOT REPLY— Use when no response is needed (fire-and-forget)
Prerequisites
Configure the OpenClaw directory:
a2a-chatting.sh config \x3Copenclaw_dir>
# Example: a2a-chatting.sh config /Users/roco/.openclaw
CLI Commands
| Command | Description |
|---|---|
config \x3Cpath> [--force] |
Configure OpenClaw directory |
get-agents |
List all available agents with their IDs |
new-session \x3Cagent_id> \x3Ctopic> |
Create a new A2A session with an agent |
list-sessions |
List all A2A sessions |
get-session \x3Csession_id> |
Show session info |
delete-session \x3Csession_id> |
Delete a session |
Workflow
Step 1: Create a Session
# Use the CLI to create a session with the target agent
a2a-chatting.sh new-session \x3Cagent_id> "Discuss project structure"
# Returns: Session ID (e.g. 30d53db1-d1fd-41d8-a7f3-8373aa58a840)
Step 2: Send Message (via sessions_send)
# Use sessions_send tool with the format above:
sessions_send(
sessionKey: "\x3Ctarget agent session>",
message: "[From: Lewis] [fromAgentId: echi-ceo] [reply-to: \x3CsourceSession>] 早上好,请更新本周销售报告。"
)
Step 3: Receive Reply
The receiver's reply automatically routes back to your session via sessions_send source tracking.
Tips
- Session Reuse: Reuse existing sessions for ongoing conversations — agents maintain context
- Topic Naming: Use descriptive topics so you can find sessions later with
list-sessions - Format Strictly: Always use the
[From: ...]format — it identifies you in multi-agent conversations - reply-to vs DO NOT REPLY: Only use
reply-towhen you need a response. UseDO NOT REPLYfor notifications.
Examples
Create session with Anna
a2a-chatting.sh new-session echitech-marketing-manager-anna "Marketing sync"
# → Session ID: db4aaf45-dd47-4766-87d0-0c2f690e8797
Send a task request
sessions_send(
sessionKey: "agent:echitech-marketing-manager-anna:main",
message: "[From: Lewis] [fromAgentId: echi-ceo] [reply-to: \x3CsourceSession>] 请更新本周营销计划。"
)
Send a notification (no reply)
sessions_send(
sessionKey: "agent:echitech-sales-manager-victor:main",
message: "[From: Lewis] [fromAgentId: echi-ceo] [DO NOT REPLY] 今晚8点有全员会议,请准时参加。"
)
Storage
Session index: \x3Copenclaw_dir>/a2a-sessions/sessions.jsonl
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install a2a-chatting - 安装完成后,直接呼叫该 Skill 的名称或使用
/a2a-chatting触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
A2A Chatting 是什么?
Enable communication, coordination, and information exchange between OpenClaw agents through controlled multi-agent chat sessions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 311 次。
如何安装 A2A Chatting?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install a2a-chatting」即可一键安装,无需额外配置。
A2A Chatting 是免费的吗?
是的,A2A Chatting 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
A2A Chatting 支持哪些平台?
A2A Chatting 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 A2A Chatting?
由 Char Siu(@saullockyip)开发并维护,当前版本 v0.4.0。