日常运维
# 查远端状态
./manage.sh status
# 模型同步(本地配置 → 远端)
./manage.sh sync-models
# 错误日志 + 站点探活
./manage.sh errors
# OpenClaw 日志
openclaw logs --limit 200 --plain --local-time
# 查看所有模型
openclaw models list --json
紧急救援
重启 Gateway
systemctl --user restart openclaw-gateway.service
systemctl --user status openclaw-gateway.service --no-pager
重启 CLIProxyAPI
systemctl --user restart cliproxyapi
systemctl --user status cliproxyapi --no-pager
切换主力模型
./manage.sh switch proxy/gpt-5.3-codex
站点黑名单
./manage.sh blacklist add "站点名"
# 当前黑名单文件
# /root/cliproxyapi/blacklist.txt
健康检查清单
- Gateway 运行中 —
systemctl --user status openclaw-gateway.service
- CLIProxyAPI 正常 —
systemctl --user status cliproxyapi
- Provider 无缺失 —
openclaw status --json 检查所有 provider 在线
- 站点全部存活 —
./manage.sh errors 无认证失效或超时
- 日志已开启 —
debug: true / logging-to-file: true / request-log: true
- 黑名单最新 — 确认
/root/cliproxyapi/blacklist.txt 包含已知问题站点
- OAuth Token 有效 —
auth-profiles.json 中 openai-codex:default 未过期