openclaw config

設定ヘルパー:パスで値のget/set/unset/validateを行い、アクティブな設定ファイルを表示します。サブコマンドなしで実行すると設定ウィザードが開きます(openclaw configureと同じ)。

使用例

openclaw config file
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 validate
openclaw config validate --json

パス

パスにはドット表記またはブラケット表記を使用します:

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として解析されます。それ以外は文字列として扱われます。 --strict-jsonでJSON5解析を必須にできます。--jsonはレガシーエイリアスとして引き続きサポートされます。

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

サブコマンド

  • config file: アクティブな設定ファイルパスを表示(OPENCLAW_CONFIG_PATHまたはデフォルトの場所から解決)。

編集後はGatewayを再起動してください。

バリデーション

Gatewayを起動せずに、現在の設定をアクティブなスキーマに対して検証します。

openclaw config validate
openclaw config validate --json