Files
bot/docs/zh-CN/cli/config.md
zooqueen 071e3f1082 rebrand: openclaw -> hanzo bot across entire codebase
Automated rebrand of all openclaw references to hanzo bot:
- Package: openclaw -> @hanzo/bot
- Binary: openclaw -> hanzo-bot
- Config: ~/.openclaw -> ~/.hanzo/bot
- Docker: ghcr.io/hanzoai/bot
- Env vars: OPENCLAW_* -> BOT_*
- Bundle IDs: ai.hanzo.bot.*
- Product name: Hanzo Bot
2026-03-19 13:52:32 -07:00

1.5 KiB

read_when, summary, title, x-i18n
read_when summary title x-i18n
你想以非交互方式读取或编辑配置
`hanzo-bot config` 的 CLI 参考(获取/设置/取消设置配置值) config
generated_at model provider source_hash source_path workflow
2026-02-03T10:04:13Z claude-opus-4-5 pi d60a35f5330f22bc99a0df090590586109d329ddd2ca294aeed191a22560c1c2 cli/config.md 15

hanzo-bot config

配置辅助命令:通过路径获取/设置/取消设置值。不带子命令运行将打开 配置向导(与 hanzo-bot configure 相同)。

示例

openclaw config get browser.executablePath
openclaw config set browser.executablePath "/usr/bin/google-chrome"
openclaw config set agents.defaults.heartbeat.every "2h"
openclaw config set agents.list[0].tools.exec.node "node-id-or-name"
openclaw config unset plugins.entries.brave.config.webSearch.apiKey

路径

路径使用点号或括号表示法:

openclaw config get agents.defaults.workspace
openclaw config get agents.list[0].id

使用智能体列表索引来定位特定智能体:

openclaw config get agents.list
openclaw config set agents.list[1].tools.exec.node "node-id-or-name"

值

值会尽可能解析为 JSON5;否则将被视为字符串。 使用 --json 强制要求 JSON5 解析。

openclaw config set agents.defaults.heartbeat.every "0m"
openclaw config set gateway.port 19001 --json
openclaw config set channels.whatsapp.groups '["*"]' --json

编辑后请重启 Gateway 网关。