#Edit default session
1 messages · Page 1 of 1 (latest)
In OpenClaw there’s a difference between agent (separate workspace/persona/rules) and session (the chat history bucket inside an agent). If you “made a second agent” and now it’s acting like the default, you probably need to switch agent, not just session.
If you’re using the TUI
Switch back to the main agent:
- type:
/agent main - (optional) then:
/session main
You can also use the pickers:
- Ctrl+G = agent picker
- Ctrl+P = session picker
Docs: https://docs.openclaw.ai/tui
If you mean Discord messages are being handled by the wrong agent
Discord routing is deterministic (bindings/default agent). To make main the default again, edit your config and restart the Gateway:
- In
~/.openclaw/openclaw.json:
- set
default: trueon themainagent (and removedefaultfrom the other agent), or - make sure
mainis the first entry inagents.list(if nodefault: trueis set)
Docs (routing + defaults):
- https://docs.openclaw.ai/concepts/channel-routing
- https://docs.openclaw.ai/gateway/configuration#multi-agent-routing-agentslist--bindings
If you paste:
openclaw --version- and either
openclaw agents listor youragents:+bindings:config block
…I can tell you exactly what to change.
Is there a way to delete the secound agent and automatically switching to main?
Yes.
Delete the second agent (recommended way)
From the machine running the Gateway:
- See what the agent id is + what bindings route Discord to it:
openclaw agents list --bindings
- Delete it:
openclaw agents delete <agentId>
(Add --force if it asks for confirmation.)
This will remove that agent and prune its workspace/state, so any history/files that lived in that agent are gone.