一、基础核心(高频必用)
openclaw --version | ||
openclaw tui | ||
二、网关(Gateway)管理(核心服务)
openclaw gateway status | 查看网关运行状态 | |
openclaw gateway start | 启动网关服务 | |
openclaw gateway stop | 停止网关服务 | |
openclaw gateway restart | 重启网关服务 | |
openclaw gateway run | 前台运行网关(调试用,日志直接输出) | |
openclaw gateway install | 安装网关为系统服务(开机自启) | |
openclaw gateway uninstall | 卸载网关系统服务 | |
openclaw gateway --port <端口> | 指定端口启动(默认 18789) | |
openclaw gateway --bind <模式> | | openclaw gateway --bind lan |
三、模型管理(核心能力)
四、会话与交互(聊天 / 执行)
openclaw chat | openclaw chat | |
openclaw chat --model <模型> | openclaw chat --model claude-3-5-sonnet | |
openclaw sessions list | openclaw sessions list | |
openclaw sessions close <会话ID> | openclaw sessions close 12345 | |
openclaw sessions clear | openclaw sessions clear | |
openclaw message <内容> | openclaw message "你好" | |
openclaw message --stream | openclaw message --stream "写一首诗" |
聊天内快捷命令(/ 开头)
/model <模型>:切换当前会话模型/approve:批准待确认操作/deny:拒绝待确认操作/cancel:取消当前任务/skills:查看已加载技能/remember <内容>:让 AI 记住信息/forget <内容>:让 AI 忘记信息
五、通道(Channels)管理(接入平台)
openclaw channels list | openclaw channels list | |
openclaw channels add --channel <平台> | openclaw channels add --channel wechat | |
openclaw channels status | openclaw channels status | |
openclaw channels logs | openclaw channels logs | |
openclaw channels remove <通道名> | openclaw channels remove wechat |
六、技能与插件(扩展能力)
openclaw skills list | openclaw skills list | |
openclaw skills info <技能名> | openclaw skills info web | |
openclaw skills enable <技能名> | openclaw skills enable web | |
openclaw skills disable <技能名> | openclaw skills disable web | |
clawhub install <技能ID> | clawhub install web-search | |
clawhub uninstall <技能ID> | clawhub uninstall web-search |
七、配置与排错(初始化 / 修复)
openclaw onboard | openclaw onboard | |
openclaw configure | openclaw configure | |
openclaw config get <路径> | openclaw config get gateway.auth.token | |
openclaw config set <路径> <值> | openclaw config set models.default qwen3-max | |
openclaw doctor | openclaw doctor | |
openclaw doctor --fix | openclaw doctor --fix | |
openclaw doctor --repair | openclaw doctor --repair | |
openclaw reset | openclaw reset | |
openclaw uninstall | openclaw uninstall |
八、安全与高级(企业 / 开发)
openclaw security audit | openclaw security audit | |
openclaw security audit --fix | openclaw security audit --fix | |
openclaw api keys list | openclaw api keys list | |
openclaw api keys generate | openclaw api keys generate | |
openclaw api keys delete <ID> | openclaw api keys delete 123 | |
openclaw dashboard | openclaw dashboard | |
openclaw node list | openclaw node list | |
openclaw node add <节点> | openclaw node add 192.168.1.100 |
九、常用参数(通用)
--verbose:详细日志输出(调试用)--quiet:静默模式(仅输出关键信息)--force:强制操作(如覆盖配置、重启服务)--config <文件>:指定配置文件路径--help:查看命令详细帮助
十、快速入门流程
安装: PowerShell -c "irm https://openclaw.ai/install.ps1 | iex"(Windows)初始化: openclaw onboard(按向导配置模型 / 通道)启动服务: openclaw gateway start聊天测试: openclaw chat管理面板: openclaw dashboard
夜雨聆风