← Back to Skills Marketplace
agent-link-local-agent
by
ericshpych
· GitHub ↗
· v1.0.0
· MIT-0
82
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install agent-link-local-agent
Description
智能体互联技能 - 支持不同电脑上的 OpenClaw 实例和 Agent 通过中转服务器进行安全可靠的通讯。包含中转服务器组件和本地 Agent 组件。
README (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 通讯
- 支持消息签名验证
- 支持断线自动重连
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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).
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install agent-link-local-agent - After installation, invoke the skill by name or use
/agent-link-local-agent - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is agent-link-local-agent?
智能体互联技能 - 支持不同电脑上的 OpenClaw 实例和 Agent 通过中转服务器进行安全可靠的通讯。包含中转服务器组件和本地 Agent 组件。 It is an AI Agent Skill for Claude Code / OpenClaw, with 82 downloads so far.
How do I install agent-link-local-agent?
Run "/install agent-link-local-agent" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is agent-link-local-agent free?
Yes, agent-link-local-agent is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does agent-link-local-agent support?
agent-link-local-agent is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created agent-link-local-agent?
It is built and maintained by ericshpych (@ericshpych); the current version is v1.0.0.
More Skills