CLI 参考 • 5 分钟阅读
配置
“openclaw configure”的 CLI 参考(交互式配置提示)
用于设置凭据、设备与 agent 默认值的交互式提示。
注意:模型部分现在包含多项选择。
agents.defaults.models 允许列表(/model 与模型选择器中显示的内容)。
提示:不带子命令运行 openclaw config 会打开相同的向导。
使用 openclaw config get|set|unset 进行非交互式编辑。
相关:
- 网关配置参考:配置
- 配置 CLI:配置
注意事项:
- 选择网关运行位置始终会更新 gateway.mode。如果需要,你可以选择“继续”而不选择其它部分。
- 面向通道的服务(Slack/Discord/Matrix/Microsoft Teams)在设置过程中会提示输入 channel/room allowlist。你可以输入名称或 ID;如果可能,向导会将名称解析为 ID。
Tutorial.step
示例
Bash
openclaw configure openclaw configure --section models --section channels