Skip to main content

openclaw config

Config helpers: get/set/unset/validate values by path and print the active config file. Run without a subcommand to open the configure wizard (same as openclaw configure).

Examples

Paths

Paths use dot or bracket notation:
Use the agent list index to target a specific agent:

Values

Values are parsed as JSON5 when possible; otherwise they are treated as strings. Use --strict-json to require JSON5 parsing. --json remains supported as a legacy alias.

Subcommands

  • config file: Print the active config file path (resolved from OPENCLAW_CONFIG_PATH or default location).
Restart the gateway after edits.

Validate

Validate the current config against the active schema without starting the gateway.