openclaw 命令集

114 字

openclaw 命令集

来源类型: 命令参考
日期: 2026-03
标签: commands, cli, reference, slash-commands

核心论点

完整的 OpenClaw 命令体系分为两部分:聊天中使用的斜杠命令(session 管理、模型切换、设备管理、工具调用)和 CLI 命令(网关管理、频道配置、插件管理、技能管理)。斜杠命令用于日常交互控制,CLI 命令用于系统运维配置。

关键结论

  • 斜杠命令分类:Session 管理(/session /stop /reset /new /compact)、选项设置(/usage /think /verbose /model)、状态查询(/status /context /whoami)、设备管理(/pair /phone /voice)、工具调用(/skill /clawhub /coding_agent /github 等)
  • Model 切换命令/model <名字> 是省钱关键,简单问题用便宜模型(GLM/Kimi),复杂任务切 Claude Opus
  • CLI 核心命令openclaw onboard(首次配置向导)、openclaw gateway start/stop/restart/status(网关管理)、openclaw config get/set(配置管理)、openclaw models list/probe(模型管理)、openclaw channels list/login/logout(频道管理)
  • 调试命令openclaw logs [-f](日志跟踪)、openclaw doctor [--fix](健康检查+自动修复)
  • 常用一键组合openclaw config get allopenclaw models probeopenclaw channels statusopenclaw gateway installopenclaw gateway startopenclaw gateway statusopenclaw logs -f