OpenClaw 完整命令手册
🔧 Gateway 管理
openclaw gateway status # 查看状态
openclaw gateway start # 启动
openclaw gateway stop # 停止
openclaw gateway restart # 重启
openclaw gateway logs # 查看日志
⚙️ 配置管理
openclaw configure # 重新打开配置向导
openclaw config.get # 获取当前配置
openclaw config.schema # 查看配置结构
openclaw config.apply <文件> # 应用完整配置
openclaw config.patch <文件> # 补丁更新配置
openclaw config.validate # 验证配置有效性
openclaw config.reset # 重置为默认配置
🤖 Agent 会话
claude # 启动CLI对话
claude --status # 查看会话状态
claude --model <模型名> # 指定模型启动
exit # 退出会话
📦 模型管理
openclaw models list # 列出所有可用模型
openclaw models install <模型名> # 安装模型
openclaw models remove <模型名> # 移除模型
ollama pull <模型名> # 从 Ollama 下载模型
ollama list # 列出本地 Ollama 模型
🛠️ Skills 管理
openclaw skills list # 查看已安装 skills
openclaw skills install <名称> # 安装 skill
openclaw skills remove <名称> # 移除 skill
openclaw skills update <名称> # 更新 skill
openclaw skills info <名称> # 查看 skill 详情
🔄 更新
openclaw update check # 检查更新
openclaw update run # 执行更新
🧹 重置/清理
openclaw reset # 重置当前会话
openclaw clean # 清理缓存
openclaw doctor # 健康检查 + 诊断
openclaw doctor --verbose # 详细诊断
📖 帮助
openclaw help # 查看所有命令
openclaw --version # 查看版本
openclaw help <命令> # 查看特定命令帮助
重置/重新安装
如果你想完全重置:
# 停止 Gateway
openclaw gateway stop
# 清理配置(谨慎!)
rm ~/.config/openclaw/config.json
# 重启 Gateway(会自动重新初始化)
openclaw gateway start
"gateway": {
"port": 18789,
"mode": "local",
"bind": "loopback",
"controlUi": {
"dangerouslyDisableDeviceAuth": false, ← 新增 ---- false 免验证
"allowedOrigins": ["*"]
},
"web": {
"enabled": true
},
"auth": { ... }
}在 gateway 下新增 controlUi.dangerouslyDisableDeviceAuth: true,这样打开 http://127.0.0.1:18789 时不需要任何 token 或密码验证
sk-lm-swfAdH12:BhOKbcqxbSWOmVOFtBp1
openclaw plugins enable google-antigravity-auth
openclaw models auth login --provider google-antigravity --set-default
评论区