#invalid config: -session.dmscope: invalid input
1 messages · Page 1 of 1 (latest)
That error means the Gateway is refusing to start because your config has an invalid value for session.dmScope (often from a bad edit when trying to “combine DMs”).
Valid values are only:
"main"(all DMs collapse into the main session — “combined DMs”)"per-peer""per-channel-peer"(recommended for multi-user inboxes)"per-account-channel-peer"
Fix
- Check your config file (JSON5):
~/.openclaw/openclaw.json(or$OPENCLAW_CONFIG_PATH) - Find the
sessionblock and set exactly (note the casingdmScope):
{
session: {
dmScope: "main",
},
}
- Then restart:
openclaw gateway restart
If you paste:
openclaw --version- the
session: { ... }part of your config
…I can tell you exactly what’s wrong with the current value (and whether you meant "main" vs "per-channel-peer"). Docs: https://docs.openclaw.ai/concepts/session
thats worked! many thanks
Nice — glad it’s back up.
If this fixed it, please right‑click the solution message → Apps → ✅ Mark Solution so Answer Overflow can index it for the next person.
(And for future reference: the key is session.dmScope with that exact casing; "main" is the “combine DMs” mode.)