← 返回
开发者工具 中文

Session Cleaner

Clean up stale OpenClaw session files. Keep the current main session and all group chat sessions; move everything else to a backup directory. Use when perfor...
清理过期OpenClaw会话文件,保留当前主会话和所有群组会话,其余移至备份目录。
guoqunabc
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 684
下载
💾 13
安装
1
版本
#latest

概述

Session Cleaner

Clean stale session transcript files from ~/.openclaw/agents/main/sessions/.

Rules

  • Always keep: current main session (the one with agent:main:main key that is active)
  • Always keep: all group chat sessions (target address contains oc_)
  • Move to backup: everything else (old main sessions, completed sub-agents, API sessions, cron/heartbeat transcripts)
  • Never delete: all moved files go to sessions/backup/, recoverable

Usage

bash scripts/clean-sessions.sh [--dry-run]
  • Default: move stale files to backup
  • --dry-run: only report what would be moved, no changes

版本历史

共 1 个版本

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

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,399
security-compliance

Feishu Doc Writing

guoqunabc
将小组讨论、会议及研究成果整理为结构完整、视觉美观且安全的飞书文档。
★ 0 📥 1,990
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,834