openclaw config
作用: 读写配置项。配置位于 ~/.clawdbot/openclaw.json。按路径 get/set/unset。不带子命令运行时打开配置向导(与 openclaw 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 tools.web.search.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修改后需重启网关。
最后更新于: