OpenClaw Config File: Main Keys and Defaults (2026)

6 min read

The main sections of OpenClaw's openclaw.json, with the documented default and a one-line meaning for the keys people change most. Checked against OpenClaw's configuration docs on 2026-11-25.

OpenClaw reads its settings from ~/.openclaw/openclaw.json. The file is JSON5, and every field is optional. Leave a field out and OpenClaw uses its built-in default.

This page lists the top-level sections and the keys people change most. Defaults come from OpenClaw’s configuration docs, read on 2026-11-25. The docs spread the full key list over about 20 subpages, so this page is not the full list. The reference page of the docs says the same: it points to the subpage for each area.

How to change the file

OpenClaw has three ways to edit the file, and the docs recommend the first two for most people:

  • openclaw onboard runs the setup wizard. openclaw configure edits a few chosen settings.
  • openclaw config get agents.defaults.workspace reads one key. openclaw config set agents.defaults.userTimezone "Europe/Vienna" writes one key and keeps the rest of the file. openclaw config unset <path> removes one key.
  • Edit the file by hand. The Gateway watches the file and applies most changes right away (hot reload).

The Control UI at http://127.0.0.1:18789 also has a Config tab. It builds a form from the live schema, with a raw JSON editor as an escape hatch. To check what a key accepts, run openclaw config schema.

Top-level sections

SectionWhat it controlsDocs page
agentsAgent defaults, per-agent overrides, multi-agent routing, sessions, messages and TalkConfiguration: agents
channelsAccess rules and pairing for each chat app (Discord, Telegram, WhatsApp and others)Configuration: channels
toolsWhich tools are on, tool policy and custom model providersConfiguration: tools
modelsModel routing and the model catalog (models.catalogRefresh turns catalog downloads on or off)Configuration: runtime basics
gatewayPort, bind address, auth, roles, Control UI, TLS and reloadConfiguration: gateway
memoryMemory search and its embedding providerMemory configuration reference
pluginsPlugin entries and their own settingsConfiguration: MCP, skills and plugins
skillsSkill limits, such as the size cap on the skills promptConfiguration: MCP, skills and plugins
hooksOutside HTTP calls that start or feed agent runsConfiguration: hooks
cronScheduled automations, their delivery and failure alertsConfiguration: automations
sessionSession lifecycle, reset rules and retentionConfiguration: agents
messagesHow replies are delivered, queued and read aloudConfiguration: agents
talkVoice (Talk) mode settingsConfiguration: agents
updateVersion checks and automatic updatesConfiguration: runtime basics
acpThe ACP runtime that dispatches agent sessionsConfiguration: runtime basics
secrets and envSecret providers, secret references and inline environment variablesConfiguration: environment and secrets
logging, diagnostics, audit, telemetryWhat gets logged, traced or exportedConfiguration: audit, logging and telemetry
database and storageSQLite (default) or PostgreSQL, and named storage locationsDatabase engines

Agent defaults

These keys sit under agents.defaults. Each one can be overridden for a single agent under agents.entries.<id>.

KeyDefaultWhat it does
workspace~/.openclaw/workspace (or the OPENCLAW_WORKSPACE_DIR value)The folder the agent works in and where its bootstrap files live
contextInjection"always"When workspace bootstrap files are put into the prompt
bootstrapMaxChars20000Characters per bootstrap file before it is cut short
bootstrapTotalMaxChars60000Characters for all bootstrap files together
imageMaxDimensionPx1200Largest side, in pixels, of an inbound image
imageQuality"auto"Image resize level. In auto mode, many images in one turn are compressed more
userTimezonenot setThe timezone the agent uses for dates (example in the docs: America/Chicago)
modelnot setThe main model, with a primary and a list of fallbacks. The docs example uses anthropic/claude-opus-4-6
utilityModelnot setA cheaper model for short internal jobs, such as session titles and transcript summaries
timeoutSeconds48 hours per attemptHow long one model attempt may run. Each fallback gets a fresh budget. 0 means no limit

Gateway, update and ACP

KeyDefaultWhat it does
gateway.mode"local"local runs the Gateway on this machine. remote connects to another one
gateway.port18789Port for the WebSocket and HTTP server
gateway.bindloopback on a regular hostWhich addresses accept connections. Non-loopback binds require Gateway auth
gateway.auth.modetoken (required by default)none, token, password or trusted-proxy. The onboarding wizard makes a token
gateway.tls.enabledfalseTurns on HTTPS and WSS at the Gateway listener
update.checkOnStarttrueChecks for a new version at start and at most once every 24 hours. Set false to turn the check off
update.auto.enabledfalseBackground auto-update for stable, beta and dev installs. Needs checkOnStart on
acp.enabledtrueGlobal switch for ACP agent sessions
acp.dispatch.enabledtrueSeparate switch: false keeps ACP commands but blocks running them

Anonymous feature statistics are sent only when telemetry.enabled is true. The runtime docs say that setting update.checkOnStart to false, or setting OPENCLAW_NO_AUTO_UPDATE=1, stops all automatic update requests and feature statistics.

Memory keys

The memory settings live under the top-level memory block. Search defaults are in memory.search. Per-agent overrides are in agents.entries.<id>.memory.search.

KeyDefaultWhat it does
memory.search.enabledtrueTurns memory search on or off
memory.search.provider"openai"The embedding adapter, such as openai, ollama, local, gemini or bedrock. Set it to use another provider
memory.search.modelthe provider’s defaultThe embedding model name
memory.search.fallback"none"Adapter to use if the main one fails
memory.search.rememberAcrossConversationson for personal installs; off when DM isolation is setLets the agent use context from its other private chats. Groups and channels are never used as sources

The memory reference also says that this setting needs a memory provider that supports protected transcript recall. The built-in provider does. Other providers may not.

Memory plugin: Hindsight

OpenClaw can use Hindsight as a memory plugin, @vectorize-io/hindsight-openclaw. Its v1.2.0 release, dated 3 November 2026, added the same three tools as the Hermes plugin: hindsight_retain, hindsight_recall and hindsight_reflect. Its settings are:

  • memoryMode picks hybrid (the default: automatic recall plus the tools), context (automatic recall only) or tools (tools only).
  • Deleting from the knowledge base needs allowKnowledgeDelete: true.
  • Cron, heartbeat and sub-agent sessions stay out of memory unless you set skipOperationalSessions: false.

The plugin can run a local embedded daemon, so you do not need a server to try it. This page does not list the plugin’s own keys. Read its package README for them.

The win. On the BEAM benchmark at 10 million tokens, Hindsight scores 64.1 and Mem0 scores 48.6. At 1 million tokens the scores are 73.9 and 64.1. Both figures come from Mem0’s comparison page. Mem0 ran that comparison, so it is a vendor-run result.

The limit. Saving costs more than with plain notes. Retain and consolidation both call an LLM, so every saved turn can add model cost. For a short history, the daily notes and MEMORY.md that OpenClaw already keeps may be enough. Hindsight’s advantage shows up on long histories.

For how the built-in memory works, see OpenClaw memory: how it works and which plugins.

Sources