openclaw-session-cleaner
Safely clean OpenClaw old session files and rebuild sessions.json for Ubuntu ARM
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ccc-3po/ccc3po-session-cleanerOpenClaw Session Cleaner
Trigger command: clean sessions
Automation Steps
-
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}')"
-
Safe clean old session files (retain main session) cd /home/ubuntu/.openclaw/agents/main/sessions/ find . -name "*.jsonl" -mtime +3 -delete 2>/dev/null
-
Rebuild sessions.json index openclaw session rebuild
-
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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ccc-3po-ccc3po-session-cleaner": {
"enabled": true,
"auto_update": true
}
}
}