UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

111 lines (99 loc) • 12.6 kB
--- summary: "Agent defaults, multi-agent routing, session, messages, and talk config" read_when: - Tuning agent defaults (models, thinking, workspace, heartbeat, media, skills) - Configuring multi-agent routing and bindings - Adjusting session, message delivery, and talk-mode behavior title: "Configuration — agents" --- Agent-scoped configuration keys under `agents.*`, `multiAgent.*`, `session.*`, `messages.*`, and `talk.*`. For channels, tools, gateway runtime, and other top-level keys, see [Configuration reference](/gateway/configuration-reference). OpenClaw stamps `agents.ownership: "explicit"` when creating a multi-agent fleet. Such fleets have no default: channels and ambient services need bindings or surface-specific `agentId` targets. Doctor materializes legacy owners during upgrade; sole-agent configs need no marker. On a fresh install, interactive onboarding asks for the first agent's name and uses `main` as the suggested value. Automated onboarding keeps the historical `main` default unless you pass `openclaw onboard --non-interactive --agent-name <name> ...`. A sole named agent uses the same default workspace and shared auth store as `main`; onboarding also migrates legacy `agent:main:*` session history to that sole owner before it finishes. `main` is an ordinary agent id. Reusing it after a named agent owns the install is guarded so old data is never silently adopted: `legacy-session-migration-required` means `openclaw doctor --fix` must finish or quarantine legacy `agent:main:*` claims, while `shared-auth-store-owned-by-main` means Doctor must first relocate the shared auth store into `state/openclaw.sqlite`. After both repairs, the new `main` gets fresh agent-scoped session and auth storage like any other agent. ## What each page covers - [Configuration — agent workspace and bootstrap](/gateway/config-agents/workspace-and-bootstrap) — workspace, cwd, repo root, skills, bootstrap injection, context budgets, images, and timezone. - [Configuration — agent models](/gateway/config-agents/models) — `agents.defaults.model`, fallback chains, per-purpose model slots, and model selection scope. - [Configuration — agent runtime and CLI backends](/gateway/config-agents/runtime-and-cli-backends) — runtime policy on providers and models, CLI backend selection, and GPT-5 personality. - [Configuration — agent heartbeat, compaction, and streaming](/gateway/config-agents/heartbeat-compaction-and-streaming) — heartbeat runs, the system agent, compaction, context pruning, block streaming, and typing indicators. - [Configuration — agent sandboxing](/gateway/config-agents/sandbox) — the `agents.defaults.sandbox` block: image, workspace mode, mounts, and network policy. - [Configuration — per-agent entries and multi-agent routing](/gateway/config-agents/entries-and-multi-agent) — `agents.entries` overrides, `multiAgent` bindings, binding match fields, and access profiles. - [Configuration — agent sessions](/gateway/config-agents/sessions) — `session.*` scope, identity links, reset policy, sharing, and retention. - [Configuration — messages and talk](/gateway/config-agents/messages-and-talk) — `messages.*` delivery, prefixes, ack reactions, queueing, TTS, and `talk.*` defaults. ## Where each section moved Every heading this page used to publish keeps its anchor here, so an existing link such as `/gateway/config-agents#agents.defaults.model` still resolves. Each entry points at the page that now holds the content. - <a id="agent-defaults" />[Agent defaults](/gateway/config-agents/workspace-and-bootstrap) - <a id="agents.defaults.workspace" /><a id="agents-defaults-workspace" />[`agents.defaults.workspace`](/gateway/config-agents/workspace-and-bootstrap#agents.defaults.workspace) - <a id="agents.defaults.cwd" /><a id="agents-defaults-cwd" />[`agents.defaults.cwd`](/gateway/config-agents/workspace-and-bootstrap#agents.defaults.cwd) - <a id="agents.defaults.reporoot" /><a id="agents-defaults-reporoot" />[`agents.defaults.repoRoot`](/gateway/config-agents/workspace-and-bootstrap#agents.defaults.reporoot) - <a id="agents.defaults.skills" /><a id="agents-defaults-skills" />[`agents.defaults.skills`](/gateway/config-agents/workspace-and-bootstrap#agents.defaults.skills) - <a id="agents.defaults.skipbootstrap" /><a id="agents-defaults-skipbootstrap" />[`agents.defaults.skipBootstrap`](/gateway/config-agents/workspace-and-bootstrap#agents.defaults.skipbootstrap) - <a id="agents.defaults.skipoptionalbootstrapfiles" /><a id="agents-defaults-skipoptionalbootstrapfiles" />[`agents.defaults.skipOptionalBootstrapFiles`](/gateway/config-agents/workspace-and-bootstrap#agents.defaults.skipoptionalbootstrapfiles) - <a id="agents.defaults.contextinjection" /><a id="agents-defaults-contextinjection" />[`agents.defaults.contextInjection`](/gateway/config-agents/workspace-and-bootstrap#agents.defaults.contextinjection) - <a id="agents.defaults.bootstrapmaxchars" /><a id="agents-defaults-bootstrapmaxchars" />[`agents.defaults.bootstrapMaxChars`](/gateway/config-agents/workspace-and-bootstrap#agents.defaults.bootstrapmaxchars) - <a id="agents.defaults.bootstraptotalmaxchars" /><a id="agents-defaults-bootstraptotalmaxchars" />[`agents.defaults.bootstrapTotalMaxChars`](/gateway/config-agents/workspace-and-bootstrap#agents.defaults.bootstraptotalmaxchars) - <a id="per-agent-bootstrap-profile-overrides" />[Per-agent bootstrap profile overrides](/gateway/config-agents/workspace-and-bootstrap#per-agent-bootstrap-profile-overrides) - <a id="bootstrap-truncation-notice" />[Bootstrap truncation notice](/gateway/config-agents/workspace-and-bootstrap#bootstrap-truncation-notice) - <a id="context-budget-ownership-map" />[Context budget ownership map](/gateway/config-agents/workspace-and-bootstrap#context-budget-ownership-map) - <a id="agents.defaults.startupcontext" /><a id="agents-defaults-startupcontext" />[`agents.defaults.startupContext`](/gateway/config-agents/workspace-and-bootstrap#agents.defaults.startupcontext) - <a id="agents.defaults.contextlimits" /><a id="agents-defaults-contextlimits" />[`agents.defaults.contextLimits`](/gateway/config-agents/workspace-and-bootstrap#agents.defaults.contextlimits) - <a id="agents.entries.*.contextlimits" /><a id="agents-entries-contextlimits" />[`agents.entries.*.contextLimits`](/gateway/config-agents/workspace-and-bootstrap#agents.entries.*.contextlimits) - <a id="skills.limits.maxskillspromptchars" /><a id="skills-limits-maxskillspromptchars" />[`skills.limits.maxSkillsPromptChars`](/gateway/config-agents/workspace-and-bootstrap#skills.limits.maxskillspromptchars) - <a id="agents.entries.*.skillslimits.maxskillspromptchars" /><a id="agents-entries-skillslimits-maxskillspromptchars" />[`agents.entries.*.skillsLimits.maxSkillsPromptChars`](/gateway/config-agents/workspace-and-bootstrap#agents.entries.*.skillslimits.maxskillspromptchars) - <a id="agents.defaults.imagemaxdimensionpx" /><a id="agents-defaults-imagemaxdimensionpx" />[`agents.defaults.imageMaxDimensionPx`](/gateway/config-agents/workspace-and-bootstrap#agents.defaults.imagemaxdimensionpx) - <a id="agents.defaults.imagequality" /><a id="agents-defaults-imagequality" />[`agents.defaults.imageQuality`](/gateway/config-agents/workspace-and-bootstrap#agents.defaults.imagequality) - <a id="agents.defaults.usertimezone" /><a id="agents-defaults-usertimezone" />[`agents.defaults.userTimezone`](/gateway/config-agents/workspace-and-bootstrap#agents.defaults.usertimezone) - <a id="agents.defaults.model" /><a id="agents-defaults-model" />[`agents.defaults.model`](/gateway/config-agents/models#agents.defaults.model) - <a id="agentsdefaultsmodelselectionscope" />[`agents.defaults.modelSelectionScope`](/gateway/config-agents/models#agentsdefaultsmodelselectionscope) - <a id="agents.defaults.modelselectionscope" /><a id="agents-defaults-modelselectionscope" />[`agents.defaults.modelSelectionScope`](/gateway/config-agents/models#agents.defaults.modelselectionscope) - <a id="runtime-policy" />[Runtime policy](/gateway/config-agents/runtime-and-cli-backends#runtime-policy) - <a id="cli-backend-selection" />[CLI backend selection](/gateway/config-agents/runtime-and-cli-backends#cli-backend-selection) - <a id="openai-gpt-5-personality" />[OpenAI GPT-5 personality](/gateway/config-agents/runtime-and-cli-backends#openai-gpt-5-personality) - <a id="agents.defaults.heartbeat" /><a id="agents-defaults-heartbeat" />[`agents.defaults.heartbeat`](/gateway/config-agents/heartbeat-compaction-and-streaming#agents.defaults.heartbeat) - <a id="agents.defaults.systemagent" /><a id="agents-defaults-systemagent" />[`agents.defaults.systemAgent`](/gateway/config-agents/heartbeat-compaction-and-streaming#agents.defaults.systemagent) - <a id="agents.defaults.compaction" /><a id="agents-defaults-compaction" />[`agents.defaults.compaction`](/gateway/config-agents/heartbeat-compaction-and-streaming#agents.defaults.compaction) - <a id="agents.defaults.contextpruning" /><a id="agents-defaults-contextpruning" />[`agents.defaults.contextPruning`](/gateway/config-agents/heartbeat-compaction-and-streaming#agents.defaults.contextpruning) - <a id="cache-ttl-mode-behavior" />[cache-ttl mode behavior](/gateway/config-agents/heartbeat-compaction-and-streaming#cache-ttl-mode-behavior) - <a id="block-streaming" />[Block streaming](/gateway/config-agents/heartbeat-compaction-and-streaming#block-streaming) - <a id="typing-indicators" />[Typing indicators](/gateway/config-agents/heartbeat-compaction-and-streaming#typing-indicators) - <a id="agentsdefaultssandbox" />[`agents.defaults.sandbox`](/gateway/config-agents/sandbox#agentsdefaultssandbox) - <a id="agents.defaults.sandbox" /><a id="agents-defaults-sandbox" />[`agents.defaults.sandbox`](/gateway/config-agents/sandbox#agents.defaults.sandbox) - <a id="sandbox-details" />[Sandbox details](/gateway/config-agents/sandbox#sandbox-details) - <a id="agentsentries-per-agent-overrides" />[`agents.entries` (per-agent overrides)](/gateway/config-agents/entries-and-multi-agent#agentsentries-per-agent-overrides) - <a id="agents.entries-(per-agent-overrides)" /><a id="agents-entries-per-agent-overrides" />[`agents.entries` (per-agent overrides)](/gateway/config-agents/entries-and-multi-agent#agents-entries-per-agent-overrides) - <a id="multi-agent-routing" />[Multi-agent routing](/gateway/config-agents/entries-and-multi-agent#multi-agent-routing) - <a id="binding-match-fields" />[Binding match fields](/gateway/config-agents/entries-and-multi-agent#binding-match-fields) - <a id="per-agent-access-profiles" />[Per-agent access profiles](/gateway/config-agents/entries-and-multi-agent#per-agent-access-profiles) - <a id="full-access-no-sandbox" />[Full access (no sandbox)](/gateway/config-agents/entries-and-multi-agent#full-access-no-sandbox) - <a id="read-only-tools-workspace" />[Read-only tools + workspace](/gateway/config-agents/entries-and-multi-agent#read-only-tools-workspace) - <a id="no-filesystem-access-messaging-only" />[No filesystem access (messaging only)](/gateway/config-agents/entries-and-multi-agent#no-filesystem-access-messaging-only) - <a id="session" />[Session](/gateway/config-agents/sessions#session) - <a id="session-field-details" />[Session field details](/gateway/config-agents/sessions#session-field-details) - <a id="messages" />[Messages](/gateway/config-agents/messages-and-talk#messages) - <a id="response-prefix" />[Response prefix](/gateway/config-agents/messages-and-talk#response-prefix) - <a id="ack-reaction" />[Ack reaction](/gateway/config-agents/messages-and-talk#ack-reaction) - <a id="queue" />[Queue](/gateway/config-agents/messages-and-talk#queue) - <a id="inbound-debounce" />[Inbound debounce](/gateway/config-agents/messages-and-talk#inbound-debounce) - <a id="other-message-keys" />[Other message keys](/gateway/config-agents/messages-and-talk#other-message-keys) - <a id="tts-(text-to-speech)" /><a id="tts-text-to-speech" />[TTS (text-to-speech)](/gateway/config-agents/messages-and-talk#tts-text-to-speech) - <a id="talk" />[Talk](/gateway/config-agents/messages-and-talk#talk) ## Related - [Configuration reference](/gateway/configuration-reference) — all other config keys - [Configuration](/gateway/configuration) — common tasks and quick setup - [Configuration examples](/gateway/configuration-examples) - [Model providers](/concepts/model-providers) — provider setup and model catalogs - [Agent bindings](/concepts/agent-bindings) — how channel accounts and users select an agent - [Configuration — channels](/gateway/config-channels) — the matching `channels.*` reference