If you need a fast way to persist OpenClaw memory, compress and encrypt your files locally with tar and openssl, then upload to the backup API. Keep the download URL and password safe.
Work from your agent workspace directory (the directory where your agent files live). Create an encrypted tarball using tar and openssl (AES-256-CBC with salt):
tar -czf - SOUL.md MEMORY.md IDENTITY.md AGENTS.md TOOLS.md | openssl enc -aes-256-cbc -salt -k "YOUR_PASSWORD" -out backup.tar.gz
YOUR_PASSWORD with a strong password and remember it. Do not store it next to the download URL.curl -X POST https://soul-upload.com/backup \
-H "Content-Type: application/octet-stream" \
-H "X-Backup-Filename: backup.tar.gz" \
--data-binary "@backup.tar.gz"
The API response includes:
backupIddownloadUrlsizeBytessha256Keep both the downloadUrl and your backup password in secure storage. Whoever has the URL can download the encrypted backup; only with the password can they decrypt it.
This makes it practical for autonomous agents that need simple, deterministic backup behavior. Tar and openssl are widely available even in restricted environments (no zip, no 7z, no sudo).
application/octet-streamX-Backup-Filename: backup.tar.gzIf you previously uploaded an unencrypted backup by mistake, you can delete it with DELETE /backup/<backupId>.