Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

openclaw-rescue-gateway-skillOpenClaw rescue gateway 技能

Agent Skill

openclaw-rescue-gateway-skill 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

11,631

周安装

466

GitHub Stars

公开资料未说明

下载量

3,765
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:openclaw-rescue-gateway-skill(OpenClaw rescue gateway 技能)
来源仓库:https://github.com/cchaojiejes/openclaw-rescue-gateway-skill
安装命令:
openclaw skills install openclaw-rescue-gateway-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install openclaw-rescue-gateway-skill

简介

为 OpenClaw 配置备用救援网关,增强系统稳定性与容错能力。

  • 适用于主网关已存在且需独立端口、避免误伤、完全执行权限等场景。
  • 支持独立启动标签与端口管理,便于维护与故障隔离。
  • 安装前请确认已有主网关运行状态,避免重复占用资源或端口冲突。
  • 建议定期检查救援网关日志,确保其处于健康运行并可随时启用。

SKILL.md

name
rescue-gateway
description
为 OpenClaw 配置稳定可维护的 Rescue Gateway。适用于主 Gateway 已存在、需要第二个 Discord Rescue Bot、需要独立端口和独立 launchd label、需要避免主 gateway stop 误伤 rescue gateway、需要默认 full exec 权限且不走审核的场景。

Rescue Gateway 2.0

当主 Gateway 故障时,Rescue Gateway 提供独立入口。此版本的目标不是“能跑起来”,而是“能长期维护,不和主 Gateway 互相干扰”。

适用场景

  • 已安装 OpenClaw 主 Gateway
  • 需要第二个 Discord Bot,名称如 OpenClaw Rescue Bot
  • 需要 Rescue Gateway 独立运行在 19001
  • 需要默认 exec 全权限且不审核
  • 需要避免 openclaw gateway stop 把 rescue 一起停掉

结论先行

Rescue Gateway 的推荐落地方式是:

  • 配置目录使用官方 profile:~/.openclaw-rescue/openclaw.json
  • CLI 使用官方 profile:openclaw --profile rescue ...
  • 服务不用官方默认 label ai.openclaw.rescue
  • 服务改用独立 launchd label:ai.openclaw.gateway.rescue

原因:

  • profile 配置目录是对的,后续维护简单
  • 但在实际使用中,官方 profile service 的 gateway stop 可能和主 gateway 生命周期串扰
  • 独立 label 可以把 rescue 的启动/停止边界切干净

目录和端口

项目主 GatewayRescue Gateway
Config~/.openclaw/openclaw.json~/.openclaw-rescue/openclaw.json
State~/.openclaw~/.openclaw-rescue
Workspace~/.openclaw/workspace~/.openclaw-rescue/workspace
Port1878919001
launchd labelai.openclaw.gatewayai.openclaw.gateway.rescue

端口必须至少错开 20。OpenClaw 会派生浏览器和调试端口,不能重叠。

Rescue Config

优先做法:以主配置为模板,写入 ~/.openclaw-rescue/openclaw.json

关键要求:

  • channels.discord.token 使用 Rescue Bot token
  • gateway.port 使用 19001
  • agents.defaults.workspace 使用 ~/.openclaw-rescue/workspace
  • agents.list[0].agentDir 使用 ~/.openclaw-rescue/agents/rescue/agent
  • tools.exec.security = "full"
  • tools.exec.ask = "off"
  • agents.defaults.elevatedDefault = "full"
  • plugins.entries.acpx.enabled = true
  • plugins.entries.acpx.config.permissionMode = "approve-all"

最小关键片段:

{
  "agents": {
    "defaults": {
      "elevatedDefault": "full",
      "workspace": "/Users/YOUR_NAME/.openclaw-rescue/workspace"
    },
    "list": [
      {
        "id": "rescue",
        "workspace": "/Users/YOUR_NAME/.openclaw-rescue/workspace",
        "agentDir": "/Users/YOUR_NAME/.openclaw-rescue/agents/rescue/agent",
        "subagents": { "allowAgents": ["*"] }
      }
    ]
  },
  "bindings": [
    {
      "agentId": "rescue",
      "match": { "channel": "discord" }
    }
  ],
  "tools": {
    "profile": "full",
    "exec": {
      "security": "full",
      "ask": "off"
    }
  },
  "channels": {
    "discord": {
      "enabled": true,
      "token": "YOUR_RESCUE_BOT_TOKEN"
    }
  },
  "gateway": {
    "port": 19001,
    "mode": "local",
    "bind": "loopback",
    "auth": {
      "mode": "token",
      "token": "YOUR_RESCUE_GATEWAY_TOKEN"
    }
  },
  "plugins": {
    "entries": {
      "acpx": {
        "enabled": true,
        "config": {
          "permissionMode": "approve-all"
        }
      }
    }
  }
}

Rescue Agent Auth

Rescue agent 使用独立 agentDir,不会自动继承主 agent 的认证。

如果 rescue bot 能登录 Discord,但回复时报:

  • No API key found for provider "anthropic"
  • No API key found for provider "kimi-coding"

就把主 agent 的认证复制过去:

cp ~/.openclaw/agents/main/agent/auth-profiles.json \
  ~/.openclaw-rescue/agents/rescue/agent/auth-profiles.json

chmod 600 ~/.openclaw-rescue/agents/rescue/agent/auth-profiles.json

Rescue LaunchAgent

不要用官方默认 profile service label。

使用自定义 plist:

  • 路径:~/Library/LaunchAgents/ai.openclaw.gateway.rescue.plist
  • label:ai.openclaw.gateway.rescue
  • 启动参数包含:--profile rescue gateway --port 19001
  • 环境变量必须包含:

- OPENCLAW_PROFILE=rescue - OPENCLAW_STATE_DIR=~/.openclaw-rescue - OPENCLAW_CONFIG_PATH=~/.openclaw-rescue/openclaw.json - OPENCLAW_LAUNCHD_LABEL=ai.openclaw.gateway.rescue

关键原因:

  • 配置仍然走官方 profile
  • 但 service label 与主 gateway 彻底隔离
  • 可避免主 openclaw gateway stop 误伤 rescue

启动与验证

加载 rescue:

launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/ai.openclaw.gateway.rescue.plist
launchctl enable gui/$(id -u)/ai.openclaw.gateway.rescue
launchctl kickstart -k gui/$(id -u)/ai.openclaw.gateway.rescue

验证:

OPENCLAW_LAUNCHD_LABEL=ai.openclaw.gateway.rescue \
openclaw --profile rescue gateway status

tail -f ~/.openclaw-rescue/logs/gateway.log

成功标志:

[discord] logged in to discord as XXXXX (OpenClaw Rescue Bot)

日常命令

主 gateway:

openclaw gateway stop
openclaw gateway start
openclaw gateway restart
openclaw gateway status

rescue gateway:

OPENCLAW_LAUNCHD_LABEL=ai.openclaw.gateway.rescue \
openclaw --profile rescue gateway stop

OPENCLAW_LAUNCHD_LABEL=ai.openclaw.gateway.rescue \
openclaw --profile rescue gateway start

OPENCLAW_LAUNCHD_LABEL=ai.openclaw.gateway.rescue \
openclaw --profile rescue gateway restart

OPENCLAW_LAUNCHD_LABEL=ai.openclaw.gateway.rescue \
openclaw --profile rescue gateway status

如果只是 emergency 操作,直接用 launchctl 也可以:

launchctl bootout gui/$(id -u) ~/Library/LaunchAgents/ai.openclaw.gateway.rescue.plist
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/ai.openclaw.gateway.rescue.plist

诊断顺序

  1. 先看配置是否有效
openclaw --profile rescue config validate
  1. 再看 service
OPENCLAW_LAUNCHD_LABEL=ai.openclaw.gateway.rescue \
openclaw --profile rescue gateway status
  1. 再看日志
tail -f ~/.openclaw-rescue/logs/gateway.log
tail -f ~/.openclaw-rescue/logs/gateway.err.log

Changelog

2.0.0

  • 配置目录从 ~/.openclaw/openclaw-rescue.json 收口到官方 profile 路径 ~/.openclaw-rescue/openclaw.json
  • rescue workspace 从 ~/.openclaw/workspace-rescue 收口到 ~/.openclaw-rescue/workspace
  • 明确要求复制主 agent auth-profiles.json 到 rescue agentDir
  • 增加默认无审核执行配置:

- tools.exec.security = "full" - tools.exec.ask = "off" - agents.defaults.elevatedDefault = "full" - plugins.entries.acpx.config.permissionMode = "approve-all"

  • 明确说明不要直接使用官方默认 rescue service label,改用独立 label ai.openclaw.gateway.rescue
  • 新增主/rescue 分离的日常命令

1.0.0 的缺陷

  • 使用 ~/.openclaw/openclaw-rescue.json,没有和官方 profile 目录对齐,后续 CLI 管理不统一
  • 使用 ~/.openclaw/workspace-rescue,workspace 和 profile state 分裂
  • 没有说明 rescue agent 需要单独复制 auth-profiles.json,导致模型认证缺失
  • 没有配置默认 exec 全权限和免审核,导致实际运行仍会弹审批
  • plugins.entries.acpx 配置缺失或不完整,导致执行行为与预期不一致
  • 直接建议自定义 service,但没有解释与官方 --profile rescue 的关系
  • 没有指出官方默认 profile service 在实机上可能和主 gateway stop 串扰
  • 停止命令仍使用 launchctl unload,不适合当前 OpenClaw 的 service 生命周期

已知现实约束

  • openclaw gateway stop 只适合主 gateway
  • rescue 若要完全避免被误停,必须配合自定义 label ai.openclaw.gateway.rescue
  • openclaw --profile rescue ... 仍然用于 rescue 的配置、状态和 CLI 操作

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

82.83%
按下载量换算3,119

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills