斜杠命令

斜杠命令

命令由 Gateway 处理。大多数命令必须以 独立消息形式发送,以 / 开头。
仅主机 Bash 聊天命令使用 ! <cmd>/bash <cmd> 作为别名)。

有两个相关系统:

还有一些内联快捷方式(仅允许列表/授权发送者):/help/commands/status/whoami (/id)。
它们立即运行,在模型看到消息之前被剥离,剩余文本继续正常流程。

配置

{
  commands: {
    native: "auto",
    nativeSkills: "auto",
    text: true,
    bash: false,
    bashForegroundMs: 2000,
    config: false,
    debug: false,
    restart: false,
    useAccessGroups: true
  }
}

命令列表

文本 + 原生(启用时):

仅文本:

说明:

使用界面(哪里显示什么)

模型选择 (/model)

/model 作为指令实现。

示例:

/model
/model list
/model 3
/model openai/gpt-5.2
/model opus@anthropic:default
/model status

说明:

调试覆盖

/debug 允许你设置 仅运行时 配置覆盖(内存,非磁盘)。仅所有者。默认禁用;用 commands.debug: true 启用。

示例:

/debug show
/debug set messages.responsePrefix="[openclaw]"
/debug set channels.whatsapp.allowFrom=["+1555","+4477"]
/debug unset messages.responsePrefix
/debug reset

说明:

配置更新

/config 写入你的磁盘配置(openclaw.json)。仅所有者。默认禁用;用 commands.config: true 启用。

示例:

/config show
/config show messages.responsePrefix
/config get messages.responsePrefix
/config set messages.responsePrefix="[openclaw]"
/config unset messages.responsePrefix

说明:

界面说明