Skip to content

Commit 3c21f3c

Browse files
author
Peter Steinberger
committed
docs: show canonical agent roster configuration
1 parent cad499d commit 3c21f3c

4 files changed

Lines changed: 85 additions & 89 deletions

File tree

‎docs/cli/agents.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,17 @@ Config sample:
175175
```json5
176176
{
177177
agents: {
178-
list: [
179-
{
180-
id: "main",
178+
entries: {
179+
main: {
180+
default: true,
181181
identity: {
182182
name: "OpenClaw",
183183
theme: "space lobster",
184184
emoji: "🦞",
185185
avatar: "avatars/openclaw.png",
186186
},
187187
},
188-
],
188+
},
189189
},
190190
}
191191
```

‎docs/concepts/multi-agent.md‎

Lines changed: 36 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ To let one agent search another agent's QMD session transcripts, add extra colle
173173
},
174174
entries: {
175175
main: {
176+
default: true,
176177
workspace: "~/workspaces/main",
177178
memory: {
178179
search: {
@@ -210,10 +211,10 @@ Direct chats collapse to the agent's main session key by default, so true isolat
210211
```json5
211212
{
212213
agents: {
213-
list: [
214-
{ id: "alex", workspace: "~/.openclaw/workspace-alex" },
215-
{ id: "mia", workspace: "~/.openclaw/workspace-mia" },
216-
],
214+
entries: {
215+
alex: { default: true, workspace: "~/.openclaw/workspace-alex" },
216+
mia: { workspace: "~/.openclaw/workspace-mia" },
217+
},
217218
},
218219
bindings: [
219220
{
@@ -270,10 +271,10 @@ Channels supporting multiple accounts: `discord`, `feishu`, `googlechat`, `imess
270271
```json5
271272
{
272273
agents: {
273-
list: [
274-
{ id: "main", workspace: "~/.openclaw/workspace-main" },
275-
{ id: "coding", workspace: "~/.openclaw/workspace-coding" },
276-
],
274+
entries: {
275+
main: { default: true, workspace: "~/.openclaw/workspace-main" },
276+
coding: { workspace: "~/.openclaw/workspace-coding" },
277+
},
277278
},
278279
bindings: [
279280
{ agentId: "main", match: { channel: "discord", accountId: "default" } },
@@ -317,10 +318,10 @@ Channels supporting multiple accounts: `discord`, `feishu`, `googlechat`, `imess
317318
```json5
318319
{
319320
agents: {
320-
list: [
321-
{ id: "main", workspace: "~/.openclaw/workspace-main" },
322-
{ id: "alerts", workspace: "~/.openclaw/workspace-alerts" },
323-
],
321+
entries: {
322+
main: { default: true, workspace: "~/.openclaw/workspace-main" },
323+
alerts: { workspace: "~/.openclaw/workspace-alerts" },
324+
},
324325
},
325326
bindings: [
326327
{ agentId: "main", match: { channel: "telegram", accountId: "default" } },
@@ -366,21 +367,19 @@ Channels supporting multiple accounts: `discord`, `feishu`, `googlechat`, `imess
366367
```js
367368
{
368369
agents: {
369-
list: [
370-
{
371-
id: "home",
370+
entries: {
371+
home: {
372372
default: true,
373373
name: "Home",
374374
workspace: "~/.openclaw/workspace-home",
375375
agentDir: "~/.openclaw/agents/home/agent",
376376
},
377-
{
378-
id: "work",
377+
work: {
379378
name: "Work",
380379
workspace: "~/.openclaw/workspace-work",
381380
agentDir: "~/.openclaw/agents/work/agent",
382381
},
383-
],
382+
},
384383
},
385384

386385
// Deterministic routing: first match wins (most-specific first).
@@ -436,20 +435,19 @@ Channels supporting multiple accounts: `discord`, `feishu`, `googlechat`, `imess
436435
```json5
437436
{
438437
agents: {
439-
list: [
440-
{
441-
id: "chat",
438+
entries: {
439+
chat: {
440+
default: true,
442441
name: "Everyday",
443442
workspace: "~/.openclaw/workspace-chat",
444443
model: "anthropic/claude-sonnet-4-6",
445444
},
446-
{
447-
id: "opus",
445+
opus: {
448446
name: "Deep Work",
449447
workspace: "~/.openclaw/workspace-opus",
450448
model: "anthropic/claude-opus-4-6",
451449
},
452-
],
450+
},
453451
},
454452
bindings: [
455453
{ agentId: "chat", match: { channel: "whatsapp", accountId: "*" } },
@@ -467,20 +465,19 @@ Channels supporting multiple accounts: `discord`, `feishu`, `googlechat`, `imess
467465
```json5
468466
{
469467
agents: {
470-
list: [
471-
{
472-
id: "chat",
468+
entries: {
469+
chat: {
470+
default: true,
473471
name: "Everyday",
474472
workspace: "~/.openclaw/workspace-chat",
475473
model: "anthropic/claude-sonnet-4-6",
476474
},
477-
{
478-
id: "opus",
475+
opus: {
479476
name: "Deep Work",
480477
workspace: "~/.openclaw/workspace-opus",
481478
model: "anthropic/claude-opus-4-6",
482479
},
483-
],
480+
},
484481
},
485482
bindings: [
486483
{
@@ -501,9 +498,9 @@ Channels supporting multiple accounts: `discord`, `feishu`, `googlechat`, `imess
501498
```json5
502499
{
503500
agents: {
504-
list: [
505-
{
506-
id: "family",
501+
entries: {
502+
family: {
503+
default: true,
507504
name: "Family",
508505
workspace: "~/.openclaw/workspace-family",
509506
identity: { name: "Family Bot" },
@@ -527,7 +524,7 @@ Channels supporting multiple accounts: `discord`, `feishu`, `googlechat`, `imess
527524
deny: ["write", "edit", "apply_patch", "browser", "canvas", "nodes", "cron"],
528525
},
529526
},
530-
],
527+
},
531528
},
532529
bindings: [
533530
{
@@ -553,17 +550,16 @@ Each agent can have its own sandbox and tool restrictions:
553550
```js
554551
{
555552
agents: {
556-
list: [
557-
{
558-
id: "personal",
553+
entries: {
554+
personal: {
555+
default: true,
559556
workspace: "~/.openclaw/workspace-personal",
560557
sandbox: {
561558
mode: "off", // No sandbox for personal agent
562559
},
563560
// No tool restrictions - all tools available
564561
},
565-
{
566-
id: "family",
562+
family: {
567563
workspace: "~/.openclaw/workspace-family",
568564
sandbox: {
569565
mode: "all", // Always sandboxed
@@ -578,7 +574,7 @@ Each agent can have its own sandbox and tool restrictions:
578574
deny: ["exec", "write", "edit", "apply_patch"], // Deny others
579575
},
580576
},
581-
],
577+
},
582578
},
583579
}
584580
```

‎docs/gateway/config-agents.md‎

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ Optional default skill allowlist for agents that do not set
4646
{
4747
agents: {
4848
defaults: { skills: ["github", "weather"] },
49-
list: [
50-
{ id: "writer" }, // inherits github, weather
51-
{ id: "docs", skills: ["docs-search"] }, // replaces defaults
52-
{ id: "locked-down", skills: [] }, // no skills
53-
],
49+
entries: {
50+
writer: { default: true }, // inherits github, weather
51+
docs: { skills: ["docs-search"] }, // replaces defaults
52+
"locked-down": { skills: [] }, // no skills
53+
},
5454
},
5555
}
5656
```
@@ -141,14 +141,14 @@ injection behavior from the shared defaults. Omitted fields inherit from
141141
bootstrapMaxChars: 20000,
142142
bootstrapTotalMaxChars: 60000,
143143
},
144-
list: [
145-
{
146-
id: "strict-worker",
144+
entries: {
145+
"strict-worker": {
146+
default: true,
147147
contextInjection: "always",
148148
bootstrapMaxChars: 50000,
149149
bootstrapTotalMaxChars: 300000,
150150
},
151-
],
151+
},
152152
},
153153
}
154154
```
@@ -254,14 +254,14 @@ from `agents.defaults.contextLimits`.
254254
defaults: {
255255
contextLimits: { memoryGetMaxChars: 12000 },
256256
},
257-
list: [
258-
{
259-
id: "tiny-local",
257+
entries: {
258+
"tiny-local": {
259+
default: true,
260260
contextLimits: {
261261
memoryGetMaxChars: 6000,
262262
},
263263
},
264-
],
264+
},
265265
},
266266
}
267267
```
@@ -284,7 +284,9 @@ Per-agent override for the skills prompt budget.
284284
```json5
285285
{
286286
agents: {
287-
list: [{ id: "tiny-local", skillsLimits: { maxSkillsPromptChars: 6000 } }],
287+
entries: {
288+
"tiny-local": { default: true, skillsLimits: { maxSkillsPromptChars: 6000 } },
289+
},
288290
},
289291
}
290292
```
@@ -970,9 +972,8 @@ for provider examples and precedence.
970972
```json5
971973
{
972974
agents: {
973-
list: [
974-
{
975-
id: "main",
975+
entries: {
976+
main: {
976977
default: true,
977978
name: "Main Agent",
978979
workspace: "~/.openclaw/workspace",
@@ -1014,13 +1015,13 @@ for provider examples and precedence.
10141015
elevated: { enabled: true },
10151016
},
10161017
},
1017-
],
1018+
},
10181019
},
10191020
}
10201021
```
10211022

1022-
- `id`: stable agent id (required).
1023-
- `default`: when multiple are set, first wins (warning logged). If none set, first list entry is default.
1023+
- Each key in `agents.entries` is the stable agent id.
1024+
- `default`: exactly one agent entry must set `default: true`.
10241025
- `model`: string form sets a strict per-agent primary with no model fallback; object form `{ primary }` is also strict unless you add `fallbacks`. Use `{ primary, fallbacks: [...] }` to opt that agent into fallback, or `{ primary, fallbacks: [] }` to make strict behavior explicit. Cron jobs that only override `primary` still inherit default fallbacks unless you set `fallbacks: []`.
10251026
- `utilityModel`: optional per-agent override for short internal tasks such as generated session and thread titles. Falls back to `agents.defaults.utilityModel`, then the effective session provider's declared small-model default. Dashboard titles retry once with the effective regular session model. An empty string skips the alternate utility route for this agent without disabling dashboard title generation.
10261027
- `params`: per-agent stream params merged over the selected model entry in `agents.defaults.models`. Use this for agent-specific overrides like `cacheRetention`, `temperature`, or `maxTokens` without duplicating the whole model catalog.
@@ -1051,10 +1052,10 @@ Run multiple isolated agents inside one Gateway. See [Multi-Agent](/concepts/mul
10511052
```json5
10521053
{
10531054
agents: {
1054-
list: [
1055-
{ id: "home", default: true, workspace: "~/.openclaw/workspace-home" },
1056-
{ id: "work", workspace: "~/.openclaw/workspace-work" },
1057-
],
1055+
entries: {
1056+
home: { default: true, workspace: "~/.openclaw/workspace-home" },
1057+
work: { workspace: "~/.openclaw/workspace-work" },
1058+
},
10581059
},
10591060
bindings: [
10601061
{ agentId: "home", match: { channel: "whatsapp", accountId: "personal" } },
@@ -1092,13 +1093,13 @@ For `type: "acp"` entries, OpenClaw resolves by exact conversation identity (`ma
10921093
```json5
10931094
{
10941095
agents: {
1095-
list: [
1096-
{
1097-
id: "personal",
1096+
entries: {
1097+
personal: {
1098+
default: true,
10981099
workspace: "~/.openclaw/workspace-personal",
10991100
sandbox: { mode: "off" },
11001101
},
1101-
],
1102+
},
11021103
},
11031104
}
11041105
```
@@ -1110,9 +1111,9 @@ For `type: "acp"` entries, OpenClaw resolves by exact conversation identity (`ma
11101111
```json5
11111112
{
11121113
agents: {
1113-
list: [
1114-
{
1115-
id: "family",
1114+
entries: {
1115+
family: {
1116+
default: true,
11161117
workspace: "~/.openclaw/workspace-family",
11171118
sandbox: { mode: "all", scope: "agent", workspaceAccess: "ro" },
11181119
tools: {
@@ -1127,7 +1128,7 @@ For `type: "acp"` entries, OpenClaw resolves by exact conversation identity (`ma
11271128
deny: ["write", "edit", "apply_patch", "exec", "process", "browser"],
11281129
},
11291130
},
1130-
],
1131+
},
11311132
},
11321133
}
11331134
```
@@ -1139,9 +1140,9 @@ For `type: "acp"` entries, OpenClaw resolves by exact conversation identity (`ma
11391140
```json5
11401141
{
11411142
agents: {
1142-
list: [
1143-
{
1144-
id: "public",
1143+
entries: {
1144+
public: {
1145+
default: true,
11451146
workspace: "~/.openclaw/workspace-public",
11461147
sandbox: { mode: "all", scope: "agent", workspaceAccess: "none" },
11471148
tools: {
@@ -1173,7 +1174,7 @@ For `type: "acp"` entries, OpenClaw resolves by exact conversation identity (`ma
11731174
],
11741175
},
11751176
},
1176-
],
1177+
},
11771178
},
11781179
}
11791180
```

0 commit comments

Comments
 (0)