cross-agent

跨机器Agent协作 - 通过SSH连接局域网内其他OpenClaw实例,实现多机任务分发

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "cross-agent" with this command: npx skills add yuleleyo/skill-cross-agent

🔌 Cross-Agent 跨机器Agent协作

通过SSH连接到局域网内其他运行OpenClaw的机器,向其Agent发送任务指令。

🚀 快速开始

1. 扫描局域网设备

openclaw cross-agent scan 192.168.3.0/24

2. 测试SSH连接

openclaw cross-agent test 192.168.3.54 admin 123456

3. 发送任务

openclaw cross-agent send 192.168.3.54 "请搜索K230部署方案" admin 123456

4. 获取结果文件

openclaw cross-agent get 192.168.3.54 ~/Desktop/K230_部署方案.md ~/Desktop/ admin 123456

⚙️ 配置默认值

设置常用参数,后续命令可省略:

openclaw cross-agent config \
  --default-user admin \
  --default-pass 123456 \
  --default-ip 192.168.3.54

配置后简写:

openclaw cross-agent send "请搜索Docker教程"

📋 前提条件

目标机器必须:

  1. ✅ 开启SSH服务(端口22)
  2. ✅ 运行OpenClaw Gateway
  3. ✅ 与本机在同一局域网

本机必须:

  1. ✅ 安装sshpass: sudo apt install sshpass
  2. ✅ 网络连通: ping <目标IP>

🔧 完整工作流示例

# 1. 扫描找到目标机器
openclaw cross-agent scan

# 2. 配置默认参数
openclaw cross-agent config --default-ip 192.168.3.54

# 3. 测试连接
openclaw cross-agent test

# 4. 查看目标会话
openclaw cross-agent sessions

# 5. 发送任务
openclaw cross-agent send "请生成一份Python爬虫教程"

# 6. 等待几秒...
sleep 10

# 7. 获取生成的文件
openclaw cross-agent get ~/Desktop/*.md ~/Desktop/

# 8. 查看内容
cat ~/Desktop/*.md

🐛 故障排除

问题解决
Permission denied检查用户名/密码
Connection refused目标SSH未开启或防火墙阻挡
Gateway token error使用scp/get/put传输文件
Command not found目标机器未安装OpenClaw

📚 更多帮助

  • openclaw cross-agent --help - 查看所有命令
  • openclaw cross-agent <command> --help - 查看具体命令帮助

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Ssh Remote Control

SSH远程控制电脑 - 让AI Agent通过SSH连接和操作远程Mac/Linux电脑,无需在被控电脑上安装任何agent工具。一个服务器上的AI,触手伸向多台远程设备。

Registry SourceRecently Updated
2332Profile unavailable
Automation

三只虾协作系统

三只虾协作系统是基于多agent的任务分配、实时监控和自动通知框架,支持角色分工和心跳检测,实现任务高效协同。

Registry SourceRecently Updated
2730Profile unavailable
Automation

Intervention Agent

AI 协作助手,以「错题本」机制帮助 AI 学习改进。支持人为干预、自动记录摩擦点、协作偏好记忆,让 AI 越用越顺手。

Registry SourceRecently Updated
1270Profile unavailable
Automation

Team Collaboration Skill

快速搭建多 Agent 协作系统。创建产品/研发/运营团队,支持持久化、任务路由、知识提取、并行协作。

Registry SourceRecently Updated
4841Profile unavailable