← 返回 Skills 市场
agent-link-local-agent
作者
ericshpych
· GitHub ↗
· v1.0.0
· MIT-0
82
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install agent-link-local-agent
功能描述
智能体互联技能 - 支持不同电脑上的 OpenClaw 实例和 Agent 通过中转服务器进行安全可靠的通讯。包含中转服务器组件和本地 Agent 组件。
使用说明 (SKILL.md)
Agent Link - 智能体互联
跨设备 OpenClaw 实例和 Agent 的安全可靠通讯解决方案
架构设计
核心组件
| 组件 | 部署位置 | 角色 | 功能 |
|---|---|---|---|
| 中转服务器 (Relay Server) | 公网服务器 | 消息中转 | 接收、验证、转发消息 |
| 本地 Agent (Local Agent) | 各个电脑 | 消息收发 | 连接中转服务器、发送/接收消息 |
通讯流程
本地 Agent A → 本地 OpenClaw → 中转服务器 → 远程 OpenClaw → 远程 Agent B
↑ ↓
└────────────────────────── 确认回执 ──────────────────────┘
功能特性
✅ 中转服务器功能
- 消息接收和转发
- Agent 身份注册和验证
- 消息签名验证,防止伪造
- 消息路由分发
- 连接状态监控
✅ 本地 Agent 功能
- 连接中转服务器
- 发送消息给其他 Agent
- 接收来自其他 Agent 的消息
- 消息签名和验证
- 断线自动重连
✅ 安全机制
- 每个 OpenClaw 实例需要在中转服务器注册
- 每个 Agent 需要在本地 OpenClaw 注册
- 消息签名验证(HMAC-SHA256)
- 中转服务器只做转发,不保存消息内容
安装说明
中转服务器安装
本地 Agent 安装
快速开始
1. 安装中转服务器
# 在公网服务器上
cd skills/agent-link/scripts/relay-server
python3 relay_server.py --port 8765 --secret "your-secret-key"
2. 配置本地 Agent
# 在本地电脑上
cd skills/agent-link/scripts/local-agent
python3 setup.py --relay-url "ws://your-relay-server:8765" --secret "your-secret-key"
3. 发送消息
from agent_link import AgentLink
link = AgentLink(agent_id="xiaodingding")
link.send("xiaobaozi", "你好,小包子!")
配置文件
中转服务器配置 (relay-config.json)
{
"port": 8765,
"secret": "your-secret-key",
"registered_instances": [
{
"instance_id": "instance-001",
"name": "晨辉的 MacBook",
"public_key": "..."
}
]
}
本地 Agent 配置 (agent-link-config.json)
{
"relay_url": "ws://your-relay-server:8765",
"secret": "your-secret-key",
"instance_id": "instance-001",
"agent_id": "healthguard",
"auto_reconnect": true
}
API 参考
中转服务器 API
注册实例
POST /api/v1/register
{
"instance_id": "instance-001",
"public_key": "...",
"name": "晨辉的 MacBook"
}
发送消息
POST /api/v1/send
{
"from": "instance-001/healthguard",
"to": "instance-002/xiaobaozi",
"message": "你好,小包子!",
"signature": "..."
}
本地 Agent API
初始化
link = AgentLink(config_path="agent-link-config.json")
发送消息
link.send(to_agent="xiaobaozi", message="你好!")
接收消息
@link.on_message
def handle_message(from_agent, message):
print(f"收到来自 {from_agent} 的消息: {message}")
安全说明
-
密钥管理
- 中转服务器和本地 Agent 使用共享密钥
- 密钥需要安全保存,不要泄露
-
消息签名
- 所有消息使用 HMAC-SHA256 签名
- 防止消息伪造和篡改
-
数据隐私
- 中转服务器只做消息转发
- 不保存消息内容
- 消息传输使用 WSS (WebSocket Secure)
故障排除
中转服务器无法启动
- 检查端口是否被占用
- 检查防火墙设置
- 查看日志文件
本地 Agent 无法连接
- 检查中转服务器地址是否正确
- 检查网络连接
- 检查密钥是否匹配
消息发送失败
- 检查目标 Agent 是否在线
- 检查消息签名是否正确
- 查看中转服务器日志
更新日志
- 1.0.0 (2026-04-04)
- 初始版本发布
- 支持中转服务器和本地 Agent 通讯
- 支持消息签名验证
- 支持断线自动重连
安全使用建议
Do not install or deploy this skill until the author fixes the packaging inconsistencies. Specifically:
- The repository claims a relay server component but the relay_server.py and related docs are missing—ask the publisher for the missing server code and a security review of that server before exposing it on the public internet.
- The SKILL.md and README reference a 'setup.py' and install-relay.md that do not exist in the package; this makes it impossible to verify what the server would do. Treat missing server code as a red flag.
- The manifest requires the 'openclaw' binary, but the included client code doesn't use it: ask why openclaw is required and remove that requirement if it's not needed.
- The client uses a shared secret stored in a JSON config file; avoid committing secrets to version control and prefer per-instance keys, TLS (WSS with certificate verification), or a proper key-exchange/PKI. Verify that the relay server enforces TLS, does not log or persist message content, and validates signatures correctly.
- Before running: request the relay server source, read and audit it for data retention or unexpected outbound connections, run in an isolated network environment, and prefer using unique secrets and secure transport (wss:// with cert validation). If the publisher cannot provide the missing files and an auditable server implementation, do not trust the skill with real secrets or production data.
功能分析
Type: OpenClaw Skill
Name: agent-link-local-agent
Version: 1.0.0
The agent-link skill provides a legitimate framework for cross-device communication between OpenClaw instances using a WebSocket relay. The core logic in scripts/local-agent/agent_link.py implements standard messaging patterns, including HMAC-SHA256 signing for message integrity and automated reconnection logic, without any evidence of data exfiltration, unauthorized execution, or malicious prompt injection.
能力评估
Purpose & Capability
The README/SKILL.md describe both a 'relay server' and a 'local Agent' but the package only contains the local client (scripts/local-agent/agent_link.py) and the install docs for the agent; the relay-server scripts and docs referenced in SKILL.md/README (e.g., relay_server.py, docs/install-relay.md, scripts/relay-server/) are not present. The declared required binaries include 'openclaw' even though the client code does not call or depend on an OpenClaw binary, which is disproportionate to the shipped code.
Instruction Scope
Runtime instructions tell users to install and run a relay_server and a local setup.py that are referenced but not included. The local client code itself behaves as described (connects to a relay WebSocket and signs messages with HMAC-SHA256) and does not attempt to read unrelated system files or environment variables, but the SKILL.md grants the agent discretion to 'install relay server' steps that cannot be audited because the server code is missing from the package.
Install Mechanism
There is no install spec (instruction-only skill) and no external downloads; the only executable code present is the local client. This is lower risk than a skill that downloads or extracts remote archives.
Credentials
The package requests no environment variables, which is fine, but the manifest requires the 'openclaw' binary even though the provided client code has no dependency on it. The client uses a shared 'secret' stored in a config file (example provided) — storing shared secrets in plain config files is a security risk and the SKILL.md/README recommend not doing so, but the package does not provide alternate secure secret-storage or server-side key-exchange mechanisms.
Persistence & Privilege
The skill is not always: true and does not request elevated persistence. It does not attempt to modify other skills or system-wide agent settings. Autonomous invocation is allowed by default (not a unique concern in itself).
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agent-link-local-agent - 安装完成后,直接呼叫该 Skill 的名称或使用
/agent-link-local-agent触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Agent Link 1.0.0 - Initial Release
- Introduces secure, cross-device communication for OpenClaw agents via a relay server.
- Includes relay server and local agent components for message relaying and handling.
- Supports agent identity registration, message signing (HMAC-SHA256), and verification.
- Provides auto-reconnect, status monitoring, and detailed configuration options.
- Designed with strict security: message forwarding only, no message persistence on server.
元数据
常见问题
agent-link-local-agent 是什么?
智能体互联技能 - 支持不同电脑上的 OpenClaw 实例和 Agent 通过中转服务器进行安全可靠的通讯。包含中转服务器组件和本地 Agent 组件。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 82 次。
如何安装 agent-link-local-agent?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-link-local-agent」即可一键安装,无需额外配置。
agent-link-local-agent 是免费的吗?
是的,agent-link-local-agent 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
agent-link-local-agent 支持哪些平台?
agent-link-local-agent 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 agent-link-local-agent?
由 ericshpych(@ericshpych)开发并维护,当前版本 v1.0.0。
推荐 Skills