#invalid config: -session.dmscope: invalid input

1 messages · Page 1 of 1 (latest)

hearty fable
#

Hi guys, new to openclaw and new here. ive loaded up openclaw and was working fine unrtil i asked the agent to combine telegram dms and it crashed and stopped.

ive run gateway restart and keep getting the error

Invalid Config:

  • session.dmscope: invalid input

any help most welcome

L

velvet sableBOT
#

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

  1. Check your config file (JSON5): ~/.openclaw/openclaw.json (or $OPENCLAW_CONFIG_PATH)
  2. Find the session block and set exactly (note the casing dmScope):
{
  session: {
    dmScope: "main",
#
  },
}
  1. 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

hearty fable
#

thats worked! many thanks

velvet sableBOT
#

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.)