`moltbot config`
适用范围
使用本页面当:
- 需要以非交互方式读取或编辑配置
配置辅助工具:按路径获取/设置/取消设置值。不带子命令运行以打开配置向导(与 moltbot configure 相同)。
示例
moltbot config get browser.executablePath
moltbot config set browser.executablePath "/usr/bin/google-chrome"
moltbot config set agents.defaults.heartbeat.every "2h"
moltbot config set agents.list[0].tools.exec.node "node-id-or-name"
moltbot config unset tools.web.search.apiKey路径
路径使用点或括号表示法:
moltbot config get agents.defaults.workspace
moltbot config get agents.list[0].id使用 agent 列表索引来定位特定 agent:
moltbot config get agents.list
moltbot config set agents.list[1].tools.exec.node "node-id-or-name"值
值在可能的情况下被解析为 JSON5;否则被视为字符串。
使用 --json 强制 JSON5 解析。
moltbot config set agents.defaults.heartbeat.every "0m"
moltbot config set gateway.port 19001 --json
moltbot config set channels.whatsapp.groups '["*"]' --json编辑后重启网关。