ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

openclaw-session-cleaner

OpenClaw 会话清理助手,自动清理旧会话文件、重建 sessions.json、解决文件膨胀问题

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/ccc-3po/openclaw-session-cleaner
Or

OpenClaw Session Cleaner

触发指令

用户提及:清理OpenClaw会话、删除旧cron会话、压缩sessions.json、重建sessions.json、会话文件膨胀

自动执行流程(安全无风险)

  1. 检查会话文件状态 执行命令:统计会话文件数量 + 查看 sessions.json 大小
cd /home/ubuntu/.openclaw/agents/main/sessions/
echo "当前会话文件数量:$(ls -l *.jsonl 2>/dev/null | wc -l)"
echo "sessions.json 大小:$(du -h sessions.json 2>/dev/null | cut -f1)"

Metadata

Author@ccc-3po
Stars4044
Views1
Updated2026-04-12
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-ccc-3po-openclaw-session-cleaner": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.