CLI リファレンス • 5分で読める
設定
「openclaw config」の CLI リファレンス(設定値の get/set/unset)
パス指定で設定値を get/set/unset します。
サブコマンドなしで実行すると設定ウィザードが開きます(openclaw configure と同じ)。
Tutorial.step
例
Bash
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
Tutorial.step
パス
パスはドットまたはブラケット記法です:
Bash
openclaw config get agents.defaults.workspace openclaw config get agents.list[0].id
agent リストのインデックスで特定の agent を指定:
Bash
openclaw config get agents.list openclaw config set agents.list[1].tools.exec.node "node-id-or-name"
Tutorial.step
値
可能な限り JSON5 として解釈され、そうでなければ文字列として扱われます。
--json で JSON5 解析を必須にします。
Bash
openclaw config set agents.defaults.heartbeat.every "0m" openclaw config set gateway.port 19001 --json openclaw config set channels.whatsapp.groups '["*"]' --json
編集後に Gateway を再起動してください。