Skip to Content
👋 欢迎来到 HowToUseMoltbot 快速入门
CLI 参考Config 配置

moltbot config

作用: 读写配置项。配置位于 ~/.clawdbot/moltbot.json。按路径 get/set/unset。不带子命令运行时打开配置向导(与 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

使用代理列表索引指定某个代理:

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

修改后需重启网关。

最后更新于: