Install
openclaw skills install time-machineCreate, list, and rollback incremental snapshots of OpenClaw configs and memory with optional auto-backups and retention policies.
openclaw skills install time-machineGit-style version control for your OpenClaw configuration. Backup, rollback, restore confidence.
Ever made a config change and broken everything? Yeah, we all have.
Time Machine automatically snapshots your OpenClaw workspace—so you can roll back instantly when things go wrong. Think of it as Git for your assistant's brain.
# Create a snapshot
/snap save
# See all snapshots
/snap list
# Rollback to previous version
/snap rollback
# Rollback to specific version
/snap rollback v15
# See what's in a snapshot
/snap view v15
Core Configs:
openclaw.json - Main configurationconfig.yaml - System configagents/*.json - Agent definitionschannels/* - Channel setupsskills/* - Skill configurationscredentials/* - Secrets (encrypted).env - Environment variablesYour Memory:
MEMORY.md - Long-term memorymemory/*.md - Daily notesFirst snapshot = full backup (all files) Later snapshots = only changed files (patches)
v1_full/ → Complete copy of everything
v2_inc/ → Only what changed since v1
v3_inc/ → Only what changed since v2
Result: Fast, lightweight backups that save disk space.
When you rollback:
/snap saveCreate snapshot. Triggers: "save snapshot", "backup now", "create backup", "保存快照"
/snap listShow all snapshots with timestamps. Triggers: "list snapshots", "show backups", "查看快照"
/snap view vXPreview what's in a snapshot. Triggers: "view snapshot", "show backup details"
/snap rollbackRollback to previous version. Shows preview first, asks for confirmation.
Variants:
rollback v15 - Go to specific versionrollback --only memory - Restore only memory filesrollback --only config - Restore only config filesrollback openclaw.json to v10 - Single file restore/snap delete vXDelete a snapshot. Triggers: "delete snapshot", "remove backup"
Enable automatic backups in openclaw.json:
{
"timeMachine": {
"enabled": true,
"autoSnapshot": {
"onChange": true,
"schedule": "0 3 * * *",
"retentionDays": 7,
"maxCount": 50
}
}
}
onChange: Create snapshot before risky config changesschedule: Cron job for automatic backups (default: 3 AM daily)retentionDays: Auto-delete backups older than X daysmaxCount: Keep only last X snapshotsWhen user tries to modify critical config files, Time Machine prompts:
"⏰ Create a snapshot before making changes?"
This gives you a safe restore point—automatically.
✅ Created snapshot v15_inc (incremental)
📝 Based on v10_full
📁 Changed: openclaw.json, channels/telegram.json
💾 Saved: Only 2 patches (2.3KB)
⚠️ About to rollback to v14_inc
📄 Will restore: openclaw.json
❓ Confirm? (yes/no)
✅ Rolled back to v14_inc
📦 Auto-created v15 as rollback point
Python scripts in scripts/:
snapshot.py - Create snapshotsrestore.py - Restore from snapshotslist.py - List all snapshotscleanup.py - Auto-cleanup old snapshotsRun: python scripts/snapshot.py, etc.
TL;DR: Install Time Machine, forget about config disasters. Your assistant has your back.