Search

PythonReactSEOPDF
OpenClaw

rescue-gateway

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

cchaojiejes0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install cchaojiejes/openclaw-rescue-gateway-skill

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

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 的启动/停止边界切干净

目录和端口

项目 主 Gateway Rescue Gateway
Config ~/.openclaw/openclaw.json ~/.openclaw-rescue/openclaw.json
State ~/.openclaw ~/.openclaw-rescue
Workspace ~/.openclaw/workspace ~/.openclaw-rescue/workspace
Port 18789 19001
launchd label ai.openclaw.gateway ai.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": [
      {...

Source information

Source
github
Repository
openclaw/skills
Path
skills/cchaojiejes/openclaw-rescue-gateway-skill
Version
—
Commit
f5e24bb9bc75a0538fffc8e1ec3e74a4333fa1d3
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# 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 的启动/停止边界切干净

## 目录和端口

| 项目 | 主 Gateway | Rescue Gateway |
|------|-----------|----------------|
| Config | `~/.openclaw/openclaw.json` | `~/.openclaw-rescue/openclaw.json` |
| State | `~/.openclaw` | `~/.openclaw-rescue` |
| Workspace | `~/.openclaw/workspace` | `~/.openclaw-rescue/workspace` |
| Port | `18789` | `19001` |
| launchd label | `ai.openclaw.gateway` | `ai.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"`

最小关键片段:

```json
{
  "agents": {
    "defaults": {
      "elevatedDefault": "full",
      "workspace": "/Users/YOUR_NAME/.openclaw-rescue/workspace"
    },
    "list": [
      {...

Related skills

OpenClaw

laborany

laborany

基于 Claude Code 的桌面 AI 工作力平台 — 支持飞书/QQ 远程调度、技能创建、定时任务。OpenClaw 的桌面实现,零代码养好你的 AI 🦞 Desktop AI workforce platform built on Claude Code. Feishu/QQ bot integration, skill c...

OpenClaw

openclaw-admin

duanecilliers

Web-based admin dashboard for OpenClaw — manage Discord persona bots, workspace files, skills, cron jobs, channels, and config