ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

openclaw-session-cleaner

Safely clean OpenClaw old session files and rebuild sessions.json for Ubuntu ARM

skill-install — Terminal

Install via CLI (Recommended)

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

OpenClaw Session Cleaner

Trigger command: clean sessions

Automation Steps

  1. Check current session status cd /home/ubuntu/.openclaw/agents/main/sessions/ echo "Total session files: $(ls -l *.jsonl 2>/dev/null | wc -l)" echo "sessions.json size: $(du -h sessions.json 2>/dev/null | awk '{print $1}')"

  2. Safe clean old session files (retain main session) cd /home/ubuntu/.openclaw/agents/main/sessions/ find . -name "*.jsonl" -mtime +3 -delete 2>/dev/null

  3. Rebuild sessions.json index openclaw session rebuild

  4. Output cleanup result cd /home/ubuntu/.openclaw/agents/main/sessions/ echo "✅ Clean completed successfully!" echo "Remaining session files: $(ls -l *.jsonl 2>/dev/null | wc -l)" echo "Optimized sessions.json size: $(du -h sessions.json 2>/dev/null | awk '{print $1}')"

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-ccc3po-session-cleaner": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.