openclaw crestodian

OpenClaw 的本地配置、修复和设置助手,设计为在正常 agent 路径损坏时仍可访问。

运行 openclaw(无子命令)或 openclaw crestodian 均可启动。

安全启动

Crestodian 可在以下情况下运行:

  • openclaw.json 缺失或无效
  • Gateway 宕机
  • 插件命令注册不可用
  • 尚未配置任何 agent

基本用法

openclaw
openclaw crestodian
openclaw crestodian --json
openclaw crestodian --message "models"
openclaw crestodian --message "validate config"
openclaw crestodian --message "setup workspace ~/Projects/work model openai/gpt-5.5" --yes
openclaw onboard --modern   # 以 Crestodian 作为现代 onboarding 预览

TUI 内常用命令

status                    # 详细状态清单
health / doctor           # 健康检查
doctor fix                # 修复问题
validate config           # 验证配置
setup workspace ~/Projects/work model openai/gpt-5.5
config set gateway.port 19001
config set-ref gateway.auth.token env OPENCLAW_GATEWAY_TOKEN
gateway status / restart gateway
agents / create agent work workspace ~/Projects/work
models / set default model openai/gpt-5.5
plugins list / plugins search slack
plugin install clawhub:openclaw-codex-app-server
talk to work agent        # 切换到 agent TUI
audit / quit

操作分类

只读操作(立即执行):

  • 显示概览、列出 agents/插件、搜索 ClawHub 插件
  • 显示模型/后端状态、运行健康检查
  • 验证配置、显示审计日志路径

持久化操作(需要确认,或传 --yes):

  • 写入配置、运行 config set
  • 设置 SecretRef 值
  • 启动/停止/重启 Gateway
  • 创建 agents、安装/卸载插件
  • 运行 doctor 修复

所有已应用的写操作记录在:~/.openclaw/audit/crestodian.jsonl

Setup Bootstrap

setup
setup workspace ~/Projects/work
setup workspace ~/Projects/work model openai/gpt-5.5

模型自动选择优先级:

  1. 已配置的显式模型
  2. OPENAI_API_KEY → openai/gpt-5.5
  3. ANTHROPIC_API_KEY → anthropic/claude-opus-4-7
  4. Claude Code CLI → claude-cli/claude-opus-4-7
  5. Codex CLI → codex-cli/gpt-5.5

消息渠道救援模式

当正常 agent 宕机但受信任渠道(如 WhatsApp)仍可接收命令时使用:

/crestodian status
/crestodian restart gateway
/crestodian yes   # 确认执行

安全约束:

  • 沙箱激活时禁用远程救援
  • 默认仅允许 owner DM(群组/频道需显式 opt-in)
  • 持久化写操作仍需确认
  • 所有已应用的救援操作均被审计
  • 不回显 secrets

切换到 Agent

talk to agent
talk to work agent
switch to main agent

在 agent TUI 中用 /crestodian 返回 Crestodian。

相关链接