← 返回 Skills 市场
Setup Multi Gateway
作者
pikaqiuyaya
· GitHub ↗
· v1.2.0
· MIT-0
245
总下载
0
收藏
0
当前安装
23
版本数
在 OpenClaw 中安装
/install setup-multi-gateway
功能描述
配置多个独立OpenClaw网关实例,支持独立Agent、工作区和机器人,以及跨Agent通信和多端口管理。
安全使用建议
要点与建议:
- 警告:mg-wizard.cjs 包含一个硬编码的 API_KEY(sk-sp-...)。代码中未在 README/SKILL.md 说明该密钥用途或目标主机,可能用于上报/远端调用或埋点。不要在生产系统直接运行该脚本。
- 在安装或运行前:打开并审计 mg-wizard.cjs,重点搜索 API_KEY 的使用位置(是否对外发请求、向哪个域名或 IP 发送数据);搜索所有 execSync/ curl/网络相关调用。
- 运行建议:在隔离环境(临时 VM 或容器)里先做一次“干运行”(或手动跟踪),并备份 ~/.openclaw 及相关配置。不要以 root 运行;优先在非生产机器验证。
- 如果你需要此功能但不信任此脚本:联系作者/发布者询问 API_KEY 的用途;或者移除或替换硬编码密钥并加入明确的远端终端允许白名单后再运行。
- 其它注意事项:由于脚本会创建/删除 user-level systemd 服务和工作区,检查将被创建的 service 文件内容和路径;确认脚本不会误删非目标目录(注意 rm -rf 调用)。
- 总结:功能与描述大体匹配,但硬编码密钥与未声明的外联能力是不成比例的风险,建议先审计/移除可疑密钥并在隔离环境中验证再部署。
功能分析
Type: OpenClaw Skill
Name: setup-multi-gateway
Version: 1.2.0
The skill bundle contains a configuration wizard (`mg-wizard.cjs`) that automates the setup of multiple OpenClaw gateways. A significant security concern is the presence of a hardcoded API key (`sk-sp-319b5ed947404131b3b12e5211592b46`) which the script automatically injects into the `models.json` configuration file. The script performs high-risk system operations, including creating and managing `systemd` user services, executing shell commands via `execSync`, and querying multiple external IP discovery services (e.g., `ifconfig.me`, `api.ipify.org`). While these capabilities are technically necessary for the stated purpose of the skill, the hardcoded credential and broad filesystem/service manipulation represent significant security risks.
能力评估
Purpose & Capability
技能名/描述与多数行为一致:创建/复制 OpenClaw 配置、检测端口、创建 systemd 服务、管理 workspace 等都符合“多网关配置”目的。但代码中包含一个硬编码 API_KEY(sk-sp-...),这与文档中未提及的远端服务/凭据无关,显得不成比例且不透明。
Instruction Scope
SKILL.md 指导执行系统检查、systemctl 操作、配置文件读写、端口检测、日志查看等,这与部署向导相符。代码实际通过 execSync 运行大量 shell 命令、读取 ~/.openclaw 下的配置和 systemd 环境变量、使用 curl 查询公网 IP 等,说明会访问本地敏感配置与网络。SKILL.md 没有声明会访问外部 API 或携带密钥,但代码隐藏了一个静态密钥,存在越界数据传输或外联的风险。
Install Mechanism
没有 install spec(仅随技能包含脚本文件 mg-wizard.cjs)。没有从外部 URL 下载或安装二进制包,静态分发源码比直接拉取远程归档风险更低。
Credentials
元数据声明无需任何环境变量或凭据,但源码中包含硬编码 API_KEY,且脚本读取 systemd 单元的 OPENCLAW_CONFIG_PATH、~/.openclaw 下的多个配置文件并可能写入/删除文件。请求/使用的权限(读写用户配置、创建/删除 systemd 服务、执行 rm -rf)比技能声明更高且未被解释。
Persistence & Privilege
技能没有设置 always:true,但脚本会创建/启用用户级 systemd 服务、写入配置和 workspace,并在失败时执行回滚(删除文件、停止/禁用服务)。这些都是部署类工具的典型权限;不过结合未说明的外部 API 密钥,持续性/特权操作应谨慎对待。
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install setup-multi-gateway - 安装完成后,直接呼叫该 Skill 的名称或使用
/setup-multi-gateway触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
完善多 Agent 协作说明,统一使用 Agent-A/B/C 命名
v1.1.4
完善多 Agent 协作说明,统一使用 Agent-A/B/C 命名
v1.1.3
## setup-multi-gateway 1.1.3
- No file or documentation changes from previous version.
- This release does not introduce new features, fixes, or updates.
v1.1.2
- 更新 SKILL.md 文档,简化和规范部分描述,使多网关部署架构、协作流程及命名表述更清晰。
- 修改示例架构和流程,将 Boss Agent 描述调整为 Agent-A,更统一表达多个 Agent 的协作角色与功能。
- 调整各 Agent 描述,突出身份隔离与协作优势,便于理解多机器人系统的独立性和可扩展性。
- 版本号提升至 1.1.2。
v1.1.1
# setup-multi-gateway 1.1.1 Changelog
- Updated metadata and documentation only; no functional changes.
- Improved and refined SKILL.md content for clarity and usability.
- No breaking changes or new features in this release.
v1.1.0
添加中文 description,强调与 feishu-agent-send 配合实现自主汇报
v1.0.44
- Internal updates to mg-wizard.cjs.
- No user-facing changes documented.
- Documentation remains unchanged since version 1.0.39.
v1.0.43
- Internal logic improvements in mg-wizard.cjs for stability or minor behavior updates.
- No user-facing documentation changes; SKILL.md content remains unchanged from previous version.
v1.0.42
- Minor internal update to mg-wizard.cjs
- No documentation or user-facing changes
v1.0.41
- Minor internal update to mg-wizard.cjs.
- No user-facing features or documentation changes.
v1.0.40
- Updated internal logic in mg-wizard.cjs (details not shown).
- No user-facing documentation or usage changes.
- Version bump to 1.0.40.
v1.0.39
- Added SKILL.md with comprehensive Chinese documentation for setup and management of multiple independent OpenClaw gateway instances.
- Included usage scenarios, pre-checks, quick start with interactive wizard, full configuration guides, deployment examples, and maintenance commands.
- Detailed configurations for agent isolation, cross-agent communication, and service management provided.
- Highlighted requirements for system resources, port uniqueness, and workspace isolation.
- Linked to official OpenClaw documentation and ClawHub skill marketplace.
v1.0.38
- 新增 README.md 文件,提供额外说明或使用指引。
- 其余功能和配置保持不变。
v1.0.37
- 新增 _meta.json 文件,优化元数据管理
- 其他文档和功能保持不变
v1.0.36
- 完整配置说明和关键参数表合入主文档,提供更直观的配置结构和推荐项示例
- 文档结构简化,原有详细引导与分步操作整合进“配置详解”板块
- 删除了 COMPLETE-GUIDE.md,所有部署、通信、运维等说明集中于 SKILL.md
- 更新了典型场景、跨 Agent 通信示例和注意事项,增强可读性
- 修订版本号与文档链接,便于用户查询相关资料
v1.0.35
- Updated mg-wizard.cjs (details not specified).
- No user-facing documentation changes; SKILL.md unchanged except for possible formatting.
- Version bump to 1.0.35.
v1.0.34
- Updated internal code in mg-wizard.cjs for improved operation.
- SKILL.md unchanged since previous release; usage and documentation remain consistent.
- Version bump to 1.0.34 for tracking incremental improvements.
v1.0.33
- Updated mg-wizard.cjs (details not shown).
- No visible user-facing changes in documentation or feature set.
- Internal or minor code maintenance update.
v1.0.32
- Updated internal code logic in mg-wizard.cjs.
- No user-facing changes to documentation or instructions.
- Version bump to 1.0.32.
v1.0.31
- Minor update with code changes in mg-wizard.cjs; documentation remains unchanged.
- No user-facing documentation or instructions updated in SKILL.md.
- Existing features and instructions are unaffected; upgrade is seamless for users.
元数据
常见问题
Setup Multi Gateway 是什么?
配置多个独立OpenClaw网关实例,支持独立Agent、工作区和机器人,以及跨Agent通信和多端口管理。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 245 次。
如何安装 Setup Multi Gateway?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install setup-multi-gateway」即可一键安装,无需额外配置。
Setup Multi Gateway 是免费的吗?
是的,Setup Multi Gateway 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Setup Multi Gateway 支持哪些平台?
Setup Multi Gateway 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Setup Multi Gateway?
由 pikaqiuyaya(@pikaqiuyaya)开发并维护,当前版本 v1.2.0。
推荐 Skills