> ## Documentation Index
> Fetch the complete documentation index at: https://openclawdoc.org/llms.txt
> Use this file to discover all available pages before exploring further.

# config

> 構成ファイルのヘルパーです。パスを指定して値の取得、設定、削除、検証を行ったり、現在有効な構成ファイルを表示したりできます。サブコマンドなしで実行した場合は、構成ウィザードが開きます（openclaw configure と同じです）。

構成ファイルのヘルパーです。パスを指定して値の取得、設定、削除、検証を行ったり、現在有効な構成ファイルを表示したりできます。サブコマンドなしで実行した場合は、構成ウィザードが開きます（`openclaw configure` と同じです）。

## 実行例

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
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
```

## パスの指定

パスにはドット記法またはブラケット記法を使用できます:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw config get agents.defaults.workspace
openclaw config get agents.list[0].id
```

エージェントのリスト内インデックスを使用して、特定のエージェントを対象にできます:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw config get agents.list
openclaw config set agents.list[1].tools.exec.node "node-id-or-name"
```

## 値の形式

値は可能な限り JSON5 として解析され、解析できない場合は文字列として扱われます。
明示的に JSON5 解析を行いたい場合は `--strict-json` を使用してください。`--json` フラグも互換性のためにサポートされています。

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
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` またはデフォルトの場所から解決されます）。

編集後はゲートウェイを再起動してください。

## 構成の検証 (Validate)

ゲートウェイを起動せずに、現在の構成がスキーマに従っているかを検証します。

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw config validate
openclaw config validate --json
```
