Manage OpenClaw agent sessions through CLI commands.
List all sessions with their status, model, and duration:
python3 ~/.openclaw/workspace/skills/sessions-manager/scripts/sessions_cli.py list
For verbose output (includes channel info):
python3 ~/.openclaw/workspace/skills/sessions-manager/scripts/sessions_cli.py list -v
Delete a session by session ID or session key:
python3 ~/.openclaw/workspace/skills/sessions-manager/scripts/sessions_cli.py delete <session-id-or-key>
Example:
python3 ~/.openclaw/workspace/skills/sessions-manager/scripts/sessions_cli.py delete agent:main:subagent:5adb35d1-d8e3-4ab7-b9b9-c69a7f891fb3
The list command shows:
agent:main:main, agent:main:subagent:xxx)Sessions are stored in:
~/.openclaw/agents/main/sessions/sessions.json~/.openclaw/agents/main/sessions/.jsonl The delete command removes both the metadata entry and the history file.
共 1 个版本