#Json Format
1 messages · Page 1 of 1 (latest)
It’s JSON5, on purpose.
OpenClaw’s config file is ~/.openclaw/openclaw.json, but it’s parsed as JSON5, so examples can use:
- unquoted object keys (
agents: { ... }) - comments (
// ...) - trailing commas
Docs spell it out here: https://docs.openclaw.ai/gateway/configuration (first line: “OpenClaw reads an optional JSON5 config from ~/.openclaw/openclaw.json.”)
If you prefer strict JSON, that’s fine too — JSON is valid JSON5 — just add quotes and remove comments/trailing commas.