Install
openclaw skills install gateway-managerUnified multi-cloud management tool for detecting, configuring, restarting, verifying, creating, and safely deleting all OpenClaw gateway instances on macOS.
openclaw skills install gateway-manager🦞 统一管理多云 OpenClaw 网关实例 / Unified Multi-Cloud OpenClaw Gateway Manager
问题: 用户可能在多平台、多云端部署了多个 OpenClaw 实例(本地、JVS Claw、QClaw、云端等),但缺乏统一管理工具。
解决方案: 本技能通过自动检测不同配置文件路径,统一管理所有 OpenClaw 变种实例,无论它们部署在哪里。
核心思想:
| 发行版 | 配置目录 | 默认端口 | 开发者 | 状态 |
|---|---|---|---|---|
| OpenClaw (原始版) | ~/.openclaw/ | 18789 | OpenClaw 社区 | ✅ |
| JVS Claw (阿里云) | ~/.jvs/.openclaw/ | 18789 | 阿里云无影 | ✅ |
| QClaw (腾讯) | ~/.qclaw/ | 28789 | 腾讯 | ✅ |
| 云端 Claw | ~/.claw-cloud/ | 自定义 | 云服务 | 🔜 |
| 自定义实例 | ~/.openclaw-<name>/ | 自定义 | 用户 | ✅ |
识别原理: 通过检测不同的配置文件路径来区分不同发行版。
git clone https://github.com/seastaradmin/openclaw-gateway-manager.git ~/.jvs/.openclaw/skills/gateway-manager
# 查看所有网关状态(自动检测所有实例)
~/.jvs/.openclaw/skills/gateway-manager/scripts/gateway-status.sh
# 检查依赖
~/.jvs/.openclaw/skills/gateway-manager/scripts/check-dependencies.sh
# 扫描端口
~/.jvs/.openclaw/skills/gateway-manager/scripts/gateway-scan-ports.sh
# 修改端口
~/.jvs/.openclaw/skills/gateway-manager/scripts/gateway-set-port.sh 本地虾 18888
# 重启所有网关
~/.jvs/.openclaw/skills/gateway-manager/scripts/gateway-restart.sh all
# 验证配置
~/.jvs/.openclaw/skills/gateway-manager/scripts/gateway-verify.sh 本地虾
# 创建新实例
~/.jvs/.openclaw/skills/gateway-manager/scripts/gateway-create.sh test-bot 18899 openim
# 删除实例(三重确认)
~/.jvs/.openclaw/skills/gateway-manager/scripts/gateway-delete.sh test-bot
=== OpenClaw Gateway 实例 ===
🔹 本地虾 (JVS Claw)
主端口:18789
辅助端口:18791(浏览器) 18792(Canvas)
配置:~/.jvs/.openclaw
状态:✅ 运行中 (PID: 6512)
频道:openim
Dashboard: http://127.0.0.1:18789/
🔹 飞书机器人
主端口:18790
辅助端口:18792(浏览器) 18793(Canvas)
配置:~/.openclaw
状态:✅ 运行中 (PID: 76822)
频道:feishu
Dashboard: http://127.0.0.1:18790/
🔹 QClaw (腾讯)
主端口:28789
辅助端口:28791(浏览器) 28792(Canvas)
配置:~/.qclaw
状态:✅ 运行中 (PID: 87107)
频道:wechat-access
Dashboard: http://127.0.0.1:28789/
~/.openclaw-deleted-backups/| 脚本 | 功能 | 危险等级 |
|---|---|---|
gateway-status.sh | 查询所有实例状态 | 🟢 安全 |
gateway-scan-ports.sh | 端口扫描 | 🟢 安全 |
gateway-set-port.sh | 修改端口 | 🟡 中等 |
gateway-restart.sh | 重启网关 | 🟢 安全 |
gateway-verify.sh | 验证配置 | 🟢 安全 |
gateway-create.sh | 创建实例 | 🟡 中等 |
gateway-delete.sh | 删除实例 | 🔴 危险 |
check-dependencies.sh | 依赖检查 | 🟢 安全 |
原因:使用 macOS 特有的 LaunchAgent、launchctl 和 plutil。
运行以下命令检查依赖:
~/.jvs/.openclaw/skills/gateway-manager/scripts/check-dependencies.sh
必需工具:
| 工具 | 用途 | 安装命令 |
|---|---|---|
jq | JSON 处理 | brew install jq |
lsof | 端口检查 | macOS 自带 |
plutil | plist 编辑 | macOS 自带 |
launchctl | LaunchAgent 管理 | macOS 自带 |
curl | HTTP 请求 | macOS 自带 |
node | OpenClaw 运行 | brew install node |
~/.openclaw-deleted-backups/rm -rf 删除配置目录建议: 首次使用前手动备份重要数据
✅ 已修复 - 所有路径使用 $HOME 而非硬编码用户路径
~/Library/LaunchAgents/)Problem: Users may deploy multiple OpenClaw instances across different platforms and clouds (local, JVS Claw, QClaw, cloud, etc.), but lack a unified management tool.
Solution: This skill automatically detects different configuration paths and统一管理 all OpenClaw variants, regardless of where they're deployed.
Core Principles:
| Distribution | Config Directory | Default Port | Developer | Status |
|---|---|---|---|---|
| OpenClaw (Original) | ~/.openclaw/ | 18789 | OpenClaw Community | ✅ |
| JVS Claw (Alibaba) | ~/.jvs/.openclaw/ | 18789 | Alibaba Cloud Wuying | ✅ |
| QClaw (Tencent) | ~/.qclaw/ | 28789 | Tencent | ✅ |
| Cloud Claw | ~/.claw-cloud/ | Custom | Cloud Service | 🔜 |
| Custom Instance | ~/.openclaw-<name>/ | Custom | User | ✅ |
Identification: Different distributions are identified by their configuration file paths.
git clone https://github.com/seastaradmin/openclaw-gateway-manager.git ~/.jvs/.openclaw/skills/gateway-manager
# Check all gateway status (auto-detect all instances)
~/.jvs/.openclaw/skills/gateway-manager/scripts/gateway-status.sh
# Check dependencies
~/.jvs/.openclaw/skills/gateway-manager/scripts/check-dependencies.sh
# Scan ports
~/.jvs/.openclaw/skills/gateway-manager/scripts/gateway-scan-ports.sh
# Modify port
~/.jvs/.openclaw/skills/gateway-manager/scripts/gateway-set-port.sh local-shrimp 18888
# Restart all gateways
~/.jvs/.openclaw/skills/gateway-manager/scripts/gateway-restart.sh all
# Verify config
~/.jvs/.openclaw/skills/gateway-manager/scripts/gateway-verify.sh local-shrimp
# Create new instance
~/.jvs/.openclaw/skills/gateway-manager/scripts/gateway-create.sh test-bot 18899 openim
# Delete instance (triple confirmation)
~/.jvs/.openclaw/skills/gateway-manager/scripts/gateway-delete.sh test-bot
=== OpenClaw Gateway Instances ===
🔹 Local Shrimp (JVS Claw)
Main Port: 18789
Aux Ports: 18791(Browser) 18792(Canvas)
Config: ~/.jvs/.openclaw
Status: ✅ Running (PID: 6512)
Channel: openim
Dashboard: http://127.0.0.1:18789/
🔹 Feishu Bot
Main Port: 18790
Aux Ports: 18792(Browser) 18793(Canvas)
Config: ~/.openclaw
Status: ✅ Running (PID: 76822)
Channel: feishu
Dashboard: http://127.0.0.1:18790/
🔹 QClaw (Tencent)
Main Port: 28789
Aux Ports: 28791(Browser) 28792(Canvas)
Config: ~/.qclaw
Status: ✅ Running (PID: 87107)
Channel: wechat-access
Dashboard: http://127.0.0.1:28789/
Reason: Uses macOS-specific LaunchAgent, launchctl, and plutil.
Run to check dependencies:
~/.jvs/.openclaw/skills/gateway-manager/scripts/check-dependencies.sh
Required Tools:
| Tool | Purpose | Install Command |
|---|---|---|
jq | JSON processing | brew install jq |
lsof | Port check | Built-in macOS |
plutil | plist editing | Built-in macOS |
launchctl | LaunchAgent management | Built-in macOS |
curl | HTTP requests | Built-in macOS |
node | OpenClaw runtime | brew install node |
~/.openclaw-deleted-backups/rm -rf to delete config directoriesRecommendation: Manually backup important data before first use
✅ Fixed - All paths use $HOME instead of hardcoded user paths
~/Library/LaunchAgents/)MIT License
| 系统 | 服务管理 | 配置路径 | 状态 |
|---|---|---|---|
| macOS | LaunchAgent (用户级) | ~/.openclaw/, ~/.jvs/.openclaw/, ~/.qclaw/ | ✅ |
| Linux | systemd user service | ~/.openclaw/, ~/.config/openclaw/, /opt/openclaw/ | 🔜 |
| Windows | 手动/可选服务 | %USERPROFILE%/.openclaw/, %APPDATA%/openclaw/ | 🔜 |
脚本会自动检测操作系统并使用相应的服务管理方式:
# macOS
launchctl load ~/Library/LaunchAgents/ai.openclaw.gateway.plist
# Linux
systemctl --user start openclaw-gateway
# Windows
# 不自动创建服务,用户手动选择
$HOME 环境变量%USERPROFILE% 和 %APPDATA%审查意见:
Scripts read/write user files, create LaunchAgent plists, scan ports, and perform rm -rf.
回应: ✅ 这是预期行为 - 作为网关管理器,这些操作是必要的。
安全措施:
~/.openclaw-deleted-backups/审查意见:
Creates LaunchAgent plists for persistent execution.
回应: ✅ 这是必要功能 - 网关需要开机自启。
安全特性:
~/Library/LaunchAgents/)审查意见:
Performs irreversible deletes.
回应: ✅ 已实施多层保护:
查看安全响应全文:
cat ~/.jvs/.openclaw/skills/gateway-manager/SECURITY_RESPONSE.md
| OS | Service Management | Config Paths | Status |
|---|---|---|---|
| macOS | LaunchAgent (user-level) | ~/.openclaw/, ~/.jvs/.openclaw/, ~/.qclaw/ | ✅ |
| Linux | systemd user service | ~/.openclaw/, ~/.config/openclaw/, /opt/openclaw/ | 🔜 |
| Windows | Manual/Optional service | %USERPROFILE%/.openclaw/, %APPDATA%/openclaw/ | 🔜 |
Scripts automatically detect the OS and use appropriate service management:
# macOS
launchctl load ~/Library/LaunchAgents/ai.openclaw.gateway.plist
# Linux
systemctl --user start openclaw-gateway
# Windows
# No automatic service creation, user chooses manually
$HOME environment variable%USERPROFILE% and %APPDATA%Review Feedback:
Scripts read/write user files, create LaunchAgent plists, scan ports, and perform rm -rf.
Response: ✅ This is intended behavior - These operations are necessary for a gateway manager.
Safety Measures:
~/.openclaw-deleted-backups/Review Feedback:
Creates LaunchAgent plists for persistent execution.
Response: ✅ This is necessary functionality - Gateways need to auto-start.
Safety Features:
~/Library/LaunchAgents/)Review Feedback:
Performs irreversible deletes.
Response: ✅ Multiple layers of protection implemented:
View full security response:
cat ~/.jvs/.openclaw/skills/gateway-manager/SECURITY_RESPONSE.md