← 返回
未分类 中文

sessions-manager

Manage OpenClaw agent sessions - list active/completed sessions, view session details, and delete sessions by ID. Use when you need to inspect session state,...
管理 OpenClaw 代理会话 — 列出活跃/已完成会话,查看会话详情,按 ID 删除会话。在需要检查会话状态时使用,...
6eanut 6eanut 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 406
下载
💾 0
安装
1
版本
#latest

概述

Sessions Manager

Manage OpenClaw agent sessions through CLI commands.

Commands

List Sessions

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 Session

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

Output Format

The list command shows:

  • 📌 Session key (e.g., agent:main:main, agent:main:subagent:xxx)
  • Session ID (UUID)
  • Label (if set, e.g., "bsv-lsp 常量展开实现")
  • Status (running, completed, timeout, etc.)
  • Model being used
  • Start time
  • Duration

Session Files

Sessions are stored in:

  • Metadata: ~/.openclaw/agents/main/sessions/sessions.json
  • History: ~/.openclaw/agents/main/sessions/.jsonl

The delete command removes both the metadata entry and the history file.

Use Cases

  1. Debug stuck sessions - Check which subagents are still running
  2. Clean up old sessions - Remove completed or timed-out sessions
  3. Monitor concurrent work - See what subagents are active
  4. Free resources - Delete sessions that are no longer needed

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 10:20 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,490 📥 553,596
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,406 📥 324,515
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 843 📥 322,560