导出配置
使用gateway config export 命令从沙箱导出 OpenClaw Gateway 配置文件。
导入配置
使用gateway config import 命令将本地 JSON 配置全量覆盖写入沙箱。
Are you sure? 提示),--yes / -y 可跳过。
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
使用 PPClaw 导出和导入 OpenClaw Gateway 配置,支持跨沙箱迁移、备份与恢复。
curl -fsSL https://ppclaw.ppio.com/install.sh | bash
irm https://ppclaw.ppio.com/install.ps1 | iex
pipx install ppclaw
gateway config export 命令从沙箱导出 OpenClaw Gateway 配置文件。
# 输出到终端
ppclaw gateway config export <sandbox_id>
# 保存到文件
ppclaw gateway config export <sandbox_id> -o config.json
# JSON 模式(供脚本 / Agent 使用)
ppclaw --json gateway config export <sandbox_id>
gateway config import 命令将本地 JSON 配置全量覆盖写入沙箱。
# 导入并自动重启 Gateway(默认行为)
ppclaw gateway config import <sandbox_id> config.json
# 导入但不重启 Gateway
ppclaw gateway config import <sandbox_id> config.json --no-restart
# 跳过确认提示
ppclaw gateway config import <sandbox_id> config.json --yes
Are you sure? 提示),--yes / -y 可跳过。
# 从源沙箱导出
ppclaw gateway config export <source_id> -o config.json
# 手动编辑(可选)
vim config.json
# 导入到目标沙箱
ppclaw gateway config import <target_id> config.json
| 命令 | 说明 |
|---|---|
ppclaw gateway config export <id> [-o FILE] | 导出 OpenClaw 配置 |
ppclaw gateway config import <id> <FILE> [--no-restart] [--yes] | 导入 OpenClaw 配置(全量覆盖) |