Find and edit the OpenClaw config file

configuration & security

// what it does

Everything lives in ~/.openclaw/openclaw.json (JSON5 — comments and trailing commas allowed). openclaw config get/set/unset <path> edit single keys, openclaw config validate checks the whole file, and the gateway watches the file and hot-applies most changes. openclaw config schema prints the canonical JSON Schema.

// shell

$ openclaw config file
$ openclaw config get gateway.port
$ openclaw config set gateway.port 19001
$ openclaw config validate

// gotcha

Validation is strict — an unknown key or a type mismatch blocks startup. The file must be a real file, not a symlink; point OPENCLAW_CONFIG_PATH at the target if you keep config elsewhere.

// resources