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

三只虾协作系统

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

Registry SourceRecently Updated
3540Profile unavailable
Automation

Team Collaboration Skill

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

Registry SourceRecently Updated
5891Profile unavailable
Automation

Rssh2 - SSH远程自动化工具

SSH远程自动化工具 - 会话管理、隧道、文件传输。使用场景:需要远程执行命令、建立SSH隧道、传输文件时。

Registry SourceRecently Updated
5890Profile unavailable
Automation

AgentNet

Agent-to-agent discovery network. Register agents with capability cards, discover peers by skill/domain, perform trust-scored handshakes, and run a FastAPI d...

Registry SourceRecently Updated
5380Profile unavailable