skip to content

Setting up one OpenClaw Gateway for a household or small team who trust each other, how do you choose between the shared main session and per-sender DM scopes, and what must change with it?

level: principalimportance: should knowfreq 5%

answer

  1. one trust boundary per Gateway
  2. continuity versus separation
  3. the agent can still look across
  4. agent is not self
  5. identity links for multi-app members

basics

~20 s

Keep OpenClaw's default main session only when one person talks to the agent. For several people, set session.dmScope to per-channel-peer, narrow tools.sessions.visibility to self, and add identity links for anyone on several apps, accepting that cross-conversation recall defaults off.

solid answer

~50 s

Start from OpenClaw's trust model: one Gateway is one trust boundary, and anyone who can edit `~/.openclaw` is an operator. The `main` DM scope buys continuity: one rolling conversation across phone, laptop and web, with cross-conversation memory recall on by default. It suits one user. When several people message the agent, `per-channel-peer` (or `per-account-channel-peer` with several accounts) separates their transcripts, at the cost of recall defaulting off and `session.identityLinks` upkeep for people on several apps. DM scope separates messaging context only. Since 2026.9.2 an unset `tools.sessions.visibility` means `all`, so an unsandboxed agent's session tools can still read other people's sessions; `agent` still covers every DM of that agent, while `self` confines the tools to the current conversation. The workspace stays shared. DM scope is a messaging-context boundary inside one trusted Gateway, not protection between people who distrust each other.

code

json · 10 lines
json
{
  "session": {
    "dmScope": "per-channel-peer"
  },
  "tools": {
    "sessions": {
      "visibility": "self"
    }
  }
}

go deeper

for a junior

Recall that OpenClaw's default main session suits one user, that per-channel-peer separates several users' DMs, and that the product's trust model assumes one trusted operator group per Gateway.

for a middle

Explain what each option changes: session keys under each dmScope, identityLinks for people on several apps, and why tools.sessions.visibility has to be narrowed alongside DM isolation.

for a senior

Show you know where isolation leaks: an unset visibility means all since 2026.9.2, agent still spans every DM of one agent, workspace memory is shared, and recall defaults change with dmScope.

for a principal

Own the call for a trusting group: main for a single user, per-sender scopes with self visibility for several, what the owner gives up in continuity and recall, and a written review of these defaults after every upgrade.

## The choice sits inside one trust boundary OpenClaw supports **one trust boundary per Gateway**: a single operator or a mutually trusting group, and anyone who can edit `~/.openclaw` is effectively an operator who can read every session. This question assumes the members trust each other; whether someone needs a Gateway of their own is settled before any of this. Inside the boundary the decision is how much continuity to trade for privacy between members. ## Option 1: the shared main session With `session.dmScope` unset, OpenClaw 2026.9.9 uses `main`, and every direct message joins the agent's one main session. That gives: - one rolling conversation across every channel and device; - heartbeats, background work and group-activity notices converging in the same place; - cross-conversation memory recall enabled by default. It is the right choice when exactly one person talks to the agent. With two or more, each person's replies are shaped by the others' context. ## Option 2: per-sender DM scopes inside one Gateway For a family or team that trusts each other but wants private conversations: - Set `session.dmScope` to `per-channel-peer`, or `per-account-channel-peer` when a channel runs several accounts. - Add `session.identityLinks` for anyone who writes from more than one app, so they keep one conversation. - Narrow the agent's session tools. Since 2026.9.2 an unset `tools.sessions.visibility` resolves to `all`, which lets an unsandboxed agent list, read and search sessions across the Gateway. `agent` limits that to the agent's own sessions, which on a single shared agent still includes everyone's DMs; `self` limits it to the current conversation. - Accept what stays shared: the agent's workspace and memory files belong to the agent, not to a session. - Accept what you lose: cross-conversation memory recall defaults off once DMs are isolated, and the owner's own DMs leave the main session too, unless a route binding overrides `dmScope` for selected peers. Giving each person a separate agent behind route bindings is a further lever; it still sits inside the same Gateway and the same trust boundary. ## Comparing the options | | Shared main | Per-sender DM scope | |---|---|---| | Who it fits | One user | Several trusting users | | Conversation continuity | Highest | Per sender | | Separates transcripts | No | Yes | | Stops an operator reading them | No | No | | Cross-conversation recall | On by default | Off unless re-enabled | | Extra work | None | Visibility and identity links | ## A household default worth defending 1. Confirm everyone in the house trusts each other; DM scopes keep honest members out of each other's conversations, not determined ones. 2. Otherwise set `session.dmScope: "per-channel-peer"` and `tools.sessions.visibility: "self"`. 3. Add identity links for members on several apps, and decide whether to turn cross-conversation recall back on for the owner only. 4. Keep shared rooms in their default per-group sessions; merge a room into the main conversation only when every member is trusted. 5. Run `openclaw security audit` after every change, and repeat the review after upgrades, since visibility defaults changed in 2026.9.2.

  • Why is `tools.sessions.visibility: "agent"` not enough for a family that shares one OpenClaw agent?
    `agent` lets session tools reach any session of the current agent, and with one shared agent that includes every family member's DM session. The 2026.9.2 release notes say so directly: `agent` can still include other users' conversations under that agent. `self` limits the tools to the current conversation, the narrowest value, which matches per-sender DM isolation.
  • What does the owner give up personally when a household moves from `main` to `per-channel-peer`?
    The owner's own DMs move into per-sender sessions too, so their phone chat and the Control UI Home conversation are no longer one thread, and cross-conversation memory recall defaults off. A route binding can keep `main` for selected peers, and recall can be re-enabled explicitly, but each is a deliberate configuration choice rather than a default.

  • With per-channel-peer set, one OpenClaw Gateway is safe for users who do not trust each other.
  • Isolating DMs also hides other sessions from the agent's session tools.
  • tools.sessions.visibility set to agent keeps each family member's chats private on one shared agent.
  • The shared main session is a misconfiguration that every install should change.
  • Each additional trusted person needs a Gateway of their own.

Assumes OpenClaw 2026.9.9; release 2026.9.2 changed an omitted tools.sessions.visibility from agent to all and turned cross-agent session access on by default.