Introduces OpenClaw's Session mechanism, including maintaining conversation context, Session lifecycle management, and switching between conversations.
Session is the core mechanism in OpenClaw for managing conversation context, ensuring Agents remember previous dialogue.
Create → Active → Dormant → Resume → End
openclaw sessions list
openclaw sessions switch <session-id>
Enable in openclaw.yaml:
agents:
my-agent:
memory:
enabled: true
storage: local
openclaw sessions cleanup --older-than 7d
Session is the core mechanism for managing conversation context, ensuring Agents remember previous dialogue.
In openclaw.yaml, set memory.enabled under agents to true and specify storage (e.g., local).
Use the command openclaw sessions switch <session-id> to switch to the specified session.
Use the command openclaw sessions cleanup --older-than 7d to cleanup sessions older than 7 days.
人类专家验证
官方机器人验证