← 返回 Skills 市场
ccccl8

Claw Crony

作者 ccccl8 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
106
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install claw-crony
功能描述
Install and configure the Claw Crony A2A Gateway plugin for cross-server agent communication. Use when: (1) setting up A2A between two or more OpenClaw insta...
使用说明 (SKILL.md)

A2A Gateway Setup

Configure the Claw Crony A2A Gateway plugin for cross-server agent-to-agent communication using the A2A v0.3.0 protocol.

Prerequisites

  • OpenClaw ≥ 2026.3.0 installed and running on each server
  • Network connectivity between servers (Tailscale recommended, LAN or public IP also work)
  • Node.js ≥ 22

Step 1: Install the Plugin

mkdir -p \x3CWORKSPACE>/plugins
cd \x3CWORKSPACE>/plugins
git clone https://github.com/ccccl8/claw-crony.git claw-crony
cd claw-crony
npm install --production

Replace \x3CWORKSPACE> with the agent workspace path. Find it with:

openclaw config get agents.defaults.workspace

Step 2: Register Plugin in OpenClaw

Get current allowed plugins first to avoid overwriting:

openclaw config get plugins.allow

Then add claw-crony to the existing array (do NOT drop existing plugin ids):

# Example only — include your existing plugins too
openclaw config set plugins.allow '["\x3Cexisting...>", "claw-crony"]'
openclaw config set plugins.load.paths '["\x3CABSOLUTE_PATH>/plugins/claw-crony"]'
openclaw config set plugins.entries.claw-crony.enabled true

Critical: Use the absolute path in plugins.load.paths. Relative paths will fail.

Step 3: Configure Agent Card

openclaw config set plugins.entries.claw-crony.config.agentCard.name '\x3CAGENT_NAME>'
openclaw config set plugins.entries.claw-crony.config.agentCard.description '\x3CDESCRIPTION>'
openclaw config set plugins.entries.claw-crony.config.agentCard.url 'http://\x3CREACHABLE_IP>:18800/a2a/jsonrpc'
openclaw config set plugins.entries.claw-crony.config.agentCard.skills '[{"id":"chat","name":"chat","description":"Bridge chat/messages to OpenClaw agents"}]'

URL field rules

Field Points to Example
agentCard.url JSON-RPC endpoint (default) http://100.x.x.x:18800/a2a/jsonrpc
peers[].agentCardUrl Agent Card discovery (preferred) http://100.x.x.x:18800/.well-known/agent-card.json

Do NOT confuse these two. agentCard.url tells peers where to send messages. agentCardUrl tells you where to discover the peer.

Note: this plugin also serves the legacy alias /.well-known/agent.json, but the official SDK default is /.well-known/agent-card.json.

Step 4: Configure Server

openclaw config set plugins.entries.claw-crony.config.server.host '0.0.0.0'
openclaw config set plugins.entries.claw-crony.config.server.port 18800

Step 5: Configure Security

TOKEN=$(openssl rand -hex 24)
echo "Save this token: $TOKEN"

openclaw config set plugins.entries.claw-crony.config.security.inboundAuth 'bearer'
openclaw config set plugins.entries.claw-crony.config.security.token "$TOKEN"

Share this token with peers who need to send you messages.

Step 6: Configure Routing

openclaw config set plugins.entries.claw-crony.config.routing.defaultAgentId 'main'

Step 7: Add Peers

openclaw config set plugins.entries.claw-crony.config.peers '[
  {
    "name": "\x3CPEER_NAME>",
    "agentCardUrl": "http://\x3CPEER_IP>:18800/.well-known/agent-card.json",
    "auth": {
      "type": "bearer",
      "token": "\x3CPEER_INBOUND_TOKEN>"
    }
  }
]'

For multiple peers, include all in one JSON array.

Step 8: Restart and Verify

openclaw gateway restart

# Verify Agent Card
curl -s http://localhost:18800/.well-known/agent-card.json | python3 -m json.tool

# Verify peer connectivity
curl -s http://\x3CPEER_IP>:18800/.well-known/agent-card.json | python3 -m json.tool

Step 9: Configure TOOLS.md

This step is critical. Without it, the agent won't know how to use A2A.

Read references/tools-md-template.md and append the A2A section to the agent's TOOLS.md, replacing placeholders with actual peer info.

For outbound messaging, use the SDK script (scripts/a2a-send.mjs).

To use the SDK script, ensure @a2a-js/sdk is installed in the plugin directory:

cd \x3CWORKSPACE>/plugins/claw-crony && npm ls @a2a-js/sdk

Step 10: End-to-End Test

node \x3CWORKSPACE>/plugins/claw-crony/skill/scripts/a2a-send.mjs \
  --peer-url http://\x3CPEER_IP>:18800 \
  --token \x3CPEER_TOKEN> \
  --message "Hello, what is your name?"

The script uses @a2a-js/sdk ClientFactory to auto-discover the Agent Card, handle authentication, and print the peer agent's response.

Async task mode (recommended for long-running prompts)

For prompts that may take longer than a typical request timeout (e.g., multi-round discussions, long summaries), use non-blocking mode + polling:

node \x3CWORKSPACE>/plugins/claw-crony/skill/scripts/a2a-send.mjs \
  --peer-url http://\x3CPEER_IP>:18800 \
  --token \x3CPEER_TOKEN> \
  --non-blocking \
  --wait \
  --timeout-ms 600000 \
  --poll-ms 1000 \
  --message "Discuss A2A advantages in 3 rounds and provide final conclusion"

This sends configuration.blocking=false and then polls tasks/get until the task reaches a terminal state.

Server-side timeout configuration (OpenClaw dispatch)

If you still see Request accepted (no agent dispatch available), the underlying OpenClaw agent run may be timing out. Increase:

  • plugins.entries.claw-crony.config.timeouts.agentResponseTimeoutMs (default: 300000)

Optional: Route to a specific OpenClaw agentId (OpenClaw extension)

By default, the peer will route inbound A2A messages to routing.defaultAgentId.

To route a single request to a specific agentId (e.g., coder) on the peer, pass --agent-id:

node \x3CWORKSPACE>/plugins/claw-crony/skill/scripts/a2a-send.mjs \
  --peer-url http://\x3CPEER_IP>:18800 \
  --token \x3CPEER_TOKEN> \
  --agent-id coder \
  --message "Run tests and summarize failures"

Note: this uses a non-standard message.agentId field understood by the Claw Crony A2A Gateway plugin. It is most reliable over JSON-RPC/REST. gRPC transport may drop unknown Message fields.

Network: Tailscale Setup (if needed)

When servers are on different networks, use Tailscale:

curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up
# Authenticate via the printed URL (use same account on all servers)
tailscale ip -4  # Get the 100.x.x.x IP

Use Tailscale IPs in all A2A configuration. Verify with:

ping \x3COTHER_SERVER_TAILSCALE_IP>

Mutual Peering Checklist

For two-way communication, repeat Steps 1-9 on BOTH servers:

  • Server A: plugin installed, Agent Card configured, token generated
  • Server B: plugin installed, Agent Card configured, token generated
  • Server A: has Server B in peers (with B's token)
  • Server B: has Server A in peers (with A's token)
  • Server A: TOOLS.md updated with Server B peer info
  • Server B: TOOLS.md updated with Server A peer info
  • Both: openclaw gateway restart done
  • Both: Agent Cards accessible (curl /.well-known/agent-card.json)
  • Test: A → B message/send works
  • Test: B → A message/send works

Troubleshooting

Symptom Cause Fix
"no agent dispatch available" (1) No AI provider configured, or (2) OpenClaw agent dispatch timed out Check openclaw config get auth.profiles; for long prompts use async mode (--non-blocking --wait) or increase config.timeouts.agentResponseTimeoutMs
"plugin not found: claw-crony" Load path missing or wrong Verify plugins.load.paths uses absolute path
Agent Card 404 Plugin not loaded Check plugins.allow includes claw-crony
Port 18800 connection refused Gateway not restarted Run openclaw gateway restart
Peer auth fails Token mismatch Verify peer config token matches target's security.token
Agent doesn't know about A2A TOOLS.md not configured Add A2A section from the template (Step 9)
安全使用建议
This skill appears to do what it claims (install an A2A gateway) but contains several red flags you should address before installing: (1) Review the repository contents before running git clone/npm install — prefer a pinned commit or official release and verify the repo owner. (2) Do not blindly paste bearer tokens into TOOLS.md or any file that agents or other users can read; use secrets storage or restrict file access. (3) Run the install in a sandbox or test environment first and inspect scripts under <WORKSPACE>/plugins/claw-crony/skill/scripts before executing them. (4) Ensure Node.js and the openclaw CLI are present and consider network isolation for the server while installing. (5) If you rely on this in production, ask the publisher for an auditable release (signed tarball or Git tag) and a security contact. If you cannot verify the source or review the code, avoid installing it on critical systems.
功能分析
Type: OpenClaw Skill Name: claw-crony Version: 1.0.2 The skill automates the setup of an Agent-to-Agent (A2A) gateway by cloning an external repository (github.com/ccccl8/claw-crony), executing 'npm install', and modifying system-wide OpenClaw configurations. It also encourages the use of 'curl | sh' for Tailscale installation and provides a template in 'references/tools-md-template.md' that grants the agent shell execution privileges to run network-active scripts. While these actions are aligned with the stated purpose of cross-server communication, the automated installation of external code and broad configuration changes represent significant security risks.
能力评估
Purpose & Capability
The skill's name and description align with the SKILL.md actions (installing/configuring an A2A plugin). However, the metadata declares no required binaries or env vars while the instructions require OpenClaw CLI and Node.js ≥22 and perform workspace/plugin file changes — a mismatch between claimed requirements and actual needs.
Instruction Scope
Runtime instructions tell the operator to git clone a third-party repository and run npm install, modify OpenClaw configuration, generate and share bearer tokens, and append peer tokens into TOOLS.md. Storing auth tokens in TOOLS.md (a file intended for agent tool descriptions) and instructing the agent to use exec to run scripts increases the chance of secrets being exposed or arbitrary code being executed.
Install Mechanism
There is no formal install spec, but the SKILL.md directs a git clone from https://github.com/ccccl8/claw-crony.git and npm install in-place. That downloads and installs remote code without pinning to a commit, tag, or checksum and without guidance to inspect code first — a moderate-to-high supply-chain risk.
Credentials
The skill declares no required env vars or config paths, yet it requires OpenClaw CLI, Node.js, the agent workspace path, and creates/shares bearer tokens. It also suggests placing peer tokens and connection details into TOOLS.md, which could be readable by other agents or humans — storing secrets in plaintext here is disproportionate and risky.
Persistence & Privilege
The instructions register a persistent plugin and write configuration into OpenClaw (plugins.allow, plugins.load.paths, plugins.entries.*). That persistent system change is consistent with installing a plugin, but it does make the plugin part of the agent runtime and therefore increases blast radius if the plugin or its code is malicious.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install claw-crony
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /claw-crony 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
claw-crony 1.0.2 changelog - Added detailed setup instructions for installing and configuring the Claw Crony A2A Gateway plugin to enable cross-server agent-to-agent (A2A) communication. - Included step-by-step guidance for plugin installation, security token management, peer registration, network configuration (including Tailscale), and end-to-end testing. - Clarified the distinction and correct usage of `agentCard.url` vs. `peers[].agentCardUrl` for message delivery and peer discovery. - Provided updated TOOLS.md integration requirements to ensure agent awareness and correct usage of A2A capabilities. - Added troubleshooting guidance and a mutual peering checklist for reliable two-way connectivity.
元数据
Slug claw-crony
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Claw Crony 是什么?

Install and configure the Claw Crony A2A Gateway plugin for cross-server agent communication. Use when: (1) setting up A2A between two or more OpenClaw insta... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 106 次。

如何安装 Claw Crony?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install claw-crony」即可一键安装,无需额外配置。

Claw Crony 是免费的吗?

是的,Claw Crony 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Claw Crony 支持哪些平台?

Claw Crony 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Claw Crony?

由 ccccl8(@ccccl8)开发并维护,当前版本 v1.0.2。

💬 留言讨论