#Agent setup Question

1 messages · Page 1 of 1 (latest)

devout monolith
#

Morning, not sure if this is correct or not, when i create an Agent, it doesn't create the the workspace for example workspace-mybot, instead i get .openclaw/agents/mybot and .openclaw/workspace/mybot, is this the way now or is something going wrong or not configured correctly, asking for a friend 😉

gaunt basinBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

vale cedarBOT
#

Yep — your friend is probably fine 😉

That layout is expected now:

  • ~/.openclaw/agents/mybot/agent = agent state/config/auth
  • ~/.openclaw/agents/mybot/sessions = that agent’s sessions
  • ~/.openclaw/workspace/mybot = that agent’s workspace, if agents.defaults.workspace is set to ~/.openclaw/workspace

Older/docs examples may show ~/.openclaw/workspace-mybot; that’s the fallback when there isn’t a shared default workspace root.

To sanity-check, run:

openclaw --version
openclaw agents list --bindings
openclaw config get agents.defaults.workspace
devout monolith
#

agents default workspace set to .openclaw/workspace why not their own workspace like .openclaw/workspace/mybot, or how do i set it

vale cedarBOT
#

If agents.defaults.workspace is set to:

"~/.openclaw/workspace"

then OpenClaw treats that as the workspace root.

So usually:

  • default agent → ~/.openclaw/workspace
  • non-default agent mybot~/.openclaw/workspace/mybot

If you want to force a specific path, set it per-agent:

#
{
  agents: {
    defaults: {
      workspace: "~/.openclaw/workspace",
    },
    list: [
      {
        id: "mybot",
        workspace: "~/.openclaw/workspace/mybot",
      },
    ],
  },
}

Or if you prefer the older-looking style:

#
{
  id: "mybot",
  workspace: "~/.openclaw/workspace-mybot",
}

One gotcha: if mybot is marked default: true, then it may use agents.defaults.workspace directly instead of appending /mybot.

Worth checking:

openclaw --version
openclaw agents list --bindings
openclaw config get agents