Encrypted GitHub backup & restore for any OpenClaw agent system.
Β π¦ ProSkills.md Β Β·Β π§ ClawHub Β Β·Β β¬οΈ Install Β Β·Β π Quick Start Β Β·Β π Security
Avenger Initiative backs up your entire OpenClaw system to a private GitHub repo every night β configs, agent memories, SOUL files, custom skills, cron jobs β everything needed to fully restore from zero.
Security model:
openclaw.json(API keys, bot tokens) β AES-256-CBC encrypted before leaving disk- Everything else (SOUL.md, MEMORY.md, etc.) β plaintext in your private repo
- Encryption key stays on your machine β never committed to Git
Branch-per-night strategy with smart retention:
| Branch | Pattern | Retention |
|---|---|---|
| Daily | backup/daily/YYYY-MM-DD | Last 7 days |
| Weekly | backup/weekly/YYYY-WNN | Last 8 weeks |
| Monthly | backup/monthly/YYYY-MM | Last 12 months |
Every backup automatically generates a human-friendly README.md in the vault root β so anyone (or any agent) landing in the repo immediately knows what it is, what's encrypted vs plaintext, and exactly how to restore. It includes step-by-step restore commands, natural-language Avenger agent commands, and security notes. A compact AVENGER-MANIFEST.json is also written with machine-readable backup metadata for scripted restores.
clawhub install avenger-initiativeGet the ClawHub CLI:
npm install -g clawhub
Visit proskills.md/skills/avenger-initiative and click Install β the skill is listed for free, no login required to browse.
mkdir -p ~/.openclaw/workspace/skills git clone https://github.com/ProSkillsMD/avenger-initiative \ ~/.openclaw/workspace/skills/avenger-initiative chmod +x ~/.openclaw/workspace/skills/avenger-initiative/scripts/*.shGo to github.com/new and create a private repo (e.g. my-openclaw-vault).
Tell your OpenClaw agent:
"Setup avenger"
Your agent will walk you through the rest β vault repo URL, encryption key, first backup.
Or run manually:
bash ~/.openclaw/workspace/skills/avenger-initiative/scripts/setup.sh \ --repo https://github.com/yourname/your-vaultAfter setup, you'll see a 64-character hex key. Save it in your password manager immediately.
Without it, openclaw.json.enc cannot be decrypted.
Daily backups are scheduled at 02:00 UTC via OpenClaw cron.
| Say this to your agent | What happens |
|---|---|
"avenger backup" | Runs backup now |
"avenger status" | Shows last backup time and branch |
"restore from vault" | Guided restore flow |
"avenger setup" | First-time setup wizard |
# Restore latest (main branch) bash ~/.openclaw/workspace/skills/avenger-initiative/scripts/restore.sh # Restore from a specific date bash ~/.openclaw/workspace/skills/avenger-initiative/scripts/restore.sh \ --branch backup/daily/2026-03-10 # After restore openclaw gateway restart- OpenClaw installed and running
- GitHub CLI (
gh) authenticated (gh auth login) git,openssl(standard on most systems)- A private GitHub repo for your vault
This skill uses:
openssl enc -aes-256-cbcβ encrypts youropenclaw.jsonwith your own keygit pushβ pushes to your own private vault repo only- No external servers β data goes only to your own GitHub account
See SECURITY.md for full script-by-script analysis and audit instructions.
- Each backup now generates a human-friendly
README.mdinside the vault with purpose, restore commands, and Avenger agent commands - Added
AVENGER-MANIFEST.json(machine-readable backup metadata)
- Fixed:
mainbranch now always exists (setup.sh initializes it on first run) - Fixed: backup commits to
mainfirst, then creates dated snapshot branch
- Added ProSkills.md + ClawHub badges to README
- Full installation guide (3 methods: CLI, ProSkills.md, git clone)
- Added
.clawhubsafeandSECURITY.mdto clarify false-positive security scan flags
- Initial release
MIT Β© ProSkillsMD
Find more OpenClaw skills at ProSkills.md β the verified AI skills directory