You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 96c7702
Browse filesBrowse the repository at this point in the historyBrowse files
openclaw agents set-identity --agent main --avatar avatars/openclaw.png
24
27
openclaw agents delete work
25
28
```
26
29
30
+
## Routing bindings
31
+
32
+
Use routing bindings to pin inbound channel traffic to a specific agent.
33
+
34
+
List bindings:
35
+
36
+
```bash
37
+
openclaw agents bindings
38
+
openclaw agents bindings --agent work
39
+
openclaw agents bindings --json
40
+
```
41
+
42
+
Add bindings:
43
+
44
+
```bash
45
+
openclaw agents bind --agent work --bind telegram:ops --bind discord:guild-a
46
+
```
47
+
48
+
If you omit `accountId` (`--bind <channel>`), OpenClaw resolves it from channel defaults and plugin setup hooks when available.
49
+
50
+
### Binding scope behavior
51
+
52
+
- A binding without `accountId` matches the channel default account only.
53
+
-`accountId: "*"` is the channel-wide fallback (all accounts) and is less specific than an explicit account binding.
54
+
- If the same agent already has a matching channel binding without `accountId`, and you later bind with an explicit or resolved `accountId`, OpenClaw upgrades that existing binding in place instead of adding a duplicate.
55
+
56
+
Example:
57
+
58
+
```bash
59
+
# initial channel-only binding
60
+
openclaw agents bind --agent work --bind telegram
61
+
62
+
# later upgrade to account-scoped binding
63
+
openclaw agents bind --agent work --bind telegram:ops
64
+
```
65
+
66
+
After the upgrade, routing for that binding is scoped to `telegram:ops`. If you also want default-account routing, add it explicitly (for example `--bind telegram:default`).
67
+
68
+
Remove bindings:
69
+
70
+
```bash
71
+
openclaw agents unbind --agent work --bind telegram:ops
72
+
openclaw agents unbind --agent work --all
73
+
```
74
+
27
75
## Identity files
28
76
29
77
Each agent workspace can include an `IDENTITY.md` at the workspace root:
When you run `openclaw channels add` without flags, the interactive wizard can prompt:
39
+
40
+
- account ids per selected channel
41
+
- optional display names for those accounts
42
+
-`Bind configured channel accounts to agents now?`
43
+
44
+
If you confirm bind now, the wizard asks which agent should own each configured channel account and writes account-scoped routing bindings.
45
+
46
+
You can also manage the same routing rules later with `openclaw agents bindings`, `openclaw agents bind`, and `openclaw agents unbind` (see [agents](/cli/agents)).
Copy file name to clipboardExpand all lines: docs/cli/index.md
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -574,7 +574,37 @@ Options:
574
574
-`--non-interactive`
575
575
-`--json`
576
576
577
-
Binding specs use `channel[:accountId]`. When `accountId` is omitted for WhatsApp, the default account id is used.
577
+
Binding specs use `channel[:accountId]`. When `accountId` is omitted, OpenClaw may resolve account scope via channel defaults/plugin hooks; otherwise it is a channel binding without explicit account scope.
Copy file name to clipboardExpand all lines: docs/concepts/multi-agent.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -185,6 +185,12 @@ Bindings are **deterministic** and **most-specific wins**:
185
185
If multiple bindings match in the same tier, the first one in config order wins.
186
186
If a binding sets multiple match fields (for example `peer` + `guildId`), all specified fields are required (`AND` semantics).
187
187
188
+
Important account-scope detail:
189
+
190
+
- A binding that omits `accountId` matches the default account only.
191
+
- Use `accountId: "*"` for a channel-wide fallback across all accounts.
192
+
- If you later add the same binding for the same agent with an explicit account id, OpenClaw upgrades the existing channel-only binding to account-scoped instead of duplicating it.
193
+
188
194
## Multiple accounts / phone numbers
189
195
190
196
Channels that support **multiple accounts** (e.g. WhatsApp) use `accountId` to identify
0 commit comments