Documentation

Everything you need to securely back up and restore your entire OpenClaw setup.

Installation

Install MemoryClaw with a single command:

$
curl -fsSL /install.sh | bash

This installs the MemoryClaw plugin, signs you in, and runs your first backup. The installer launches automatically after setup — no extra steps. Works on macOS, Linux, and Windows (WSL).

Reinstalling / Reconnecting

If you're reinstalling MemoryClaw on the same or a different machine, run the same install command above. The installer detects your existing account and reconnects automatically — your claw history and backup data are preserved on the server. Just log in and you're back.

Uninstalling

To completely remove MemoryClaw from your machine:

$curl -fsSL /install.sh | bash -s -- --uninstall

Or run memoryclaw uninstall from the CLI. This removes the binary, config files, and cron job. Your cloud backups and account remain intact.

Getting Started

1

Run the install command. The memoryclaw CLI is installed system-wide and auto-launches after setup.

2

Your browser opens automatically — sign up or log in, then approve the claw. The CLI picks it up instantly.

3

Run your first backup when prompted. Your passphrase is saved locally (encrypted) so future backups can run unattended.

4

The installer sets up an OpenClaw cron job for automatic backups — your setup stays protected hands-free.

Commands

CommandDescription
memoryclawInteractive menu (zero friction) — works from anywhere
memoryclaw pushBack up OpenClaw folder (zip + encrypt + upload)
memoryclaw push --autoUnattended backup using saved passphrase (for cron)
memoryclaw pullRestore from backup history with version picker
memoryclaw pull --file <path>Restore from a downloaded backup file
memoryclaw pull --claw_id <name>Restore from a specific claw's backup
memoryclaw pull --path <dir>Restore to a custom directory instead of default
memoryclaw pull --autoNon-interactive restore (uses saved passphrase)
memoryclaw statusShow backup status, plan, storage, and subscription info
memoryclaw historyShow past backup timestamps and sizes
memoryclaw loginAuthenticate via browser
memoryclaw logoutClear stored credentials, passphrase, and claw config
memoryclaw whoamiShow logged-in user email and plan
memoryclaw configShow local configuration (excludes, directory, passphrase)
memoryclaw clawsList all registered claws
memoryclaw claws addRegister a new claw
memoryclaw claws switchSwitch active claw
memoryclaw claws rename <name>Rename the current claw
memoryclaw claws primarySet current claw as primary
memoryclaw updateCheck for and install updates
memoryclaw update --checkCheck for updates without installing
memoryclaw doctorRun health checks and diagnostics
memoryclaw versionShow plugin version
memoryclaw completions bashOutput bash shell completion script
memoryclaw completions zshOutput zsh shell completion script
memoryclaw uninstallUninstall MemoryClaw completely
memoryclaw helpShow all available commands
memoryclaw help <command>Show detailed help for a specific command
memoryclaw <cmd> --quietSuppress non-error output (ideal for cron)
memoryclaw <cmd> --jsonOutput machine-readable JSON (status, history, whoami, version)
memoryclaw <cmd> --verboseShow debug info: API calls, timing, file details
memoryclaw <cmd> --debugAlias for --verbose
memoryclaw <cmd> --api-url <url>Override the API base URL
memoryclaw --versionShow plugin version (short flag)

System-wide CLI

MemoryClaw installs as a system-wide command — run memoryclaw from any directory, in any terminal. No need to navigate to a specific folder or use full paths.

It is also available as an OpenClaw skill. Type /memoryclaw inside OpenClaw to access it inline.

Shell completions are available for bash and zsh. Run source <(memoryclaw completions bash) or source <(memoryclaw completions zsh) to enable tab completion. Add the command to your shell profile to persist it.

Passphrase & Encryption

Your encryption passphrase is a separate key from your account password. It encrypts your backups with AES-256-GCM before they leave your machine. MemoryClaw operates on a zero-knowledge model — we never see, store, or transmit your passphrase. Only encrypted data reaches our servers.

On first backup, you choose a passphrase (minimum 8 characters) and confirm it. You are then offered to save it locally, encrypted with a machine-specific key. Once saved, auto-backups and the --auto flag work without prompting.

If you lose your passphrase, your backups cannot be recovered. We have no way to decrypt your data. Write it down somewhere safe.

You can change your passphrase at any time via memoryclaw → Settings → Change encryption passphrase, or from the interactive settings menu. Note that changing your passphrase only affects future backups — existing backups remain encrypted with their original passphrase.

Backup Versioning

Every backup creates a new, independently stored version. Previous versions are not overwritten — they remain in your backup history until your storage quota is reached, at which point the oldest versions are automatically removed to make room.

You can browse your full version history from the dashboard, where each entry shows the timestamp, file size, and a per-entry download button. From the CLI, memoryclaw history lists all available versions, and the memoryclaw pull command includes a version picker so you can restore any specific backup — not just the latest.

Automatic Backups

During your first backup, your passphrase is saved locally (encrypted). This enables the memoryclaw push --auto flag, which runs without any prompts.

The installer configures an OpenClaw cron job that calls memoryclaw push --auto on a schedule so your memory stays backed up hands-free.

Changing backup frequency:

Open the interactive menu (memoryclaw) → Settings → Change backup frequency. Free plans can schedule hourly or less frequent backups. Pro plans unlock frequencies down to every 5 minutes.

Removing auto-backup:

Open the interactive menu → Settings → Remove auto-backup. This deletes the cron job. You can re-enable it anytime from the same menu.

Auto backup runs via OpenClaw's cron system. If OpenClaw is not running or its cron is disabled, automatic backups will not execute until OpenClaw is operational again.

When auto-backup fails:

If an auto-backup fails (e.g., expired session, storage full, deleted claw), the error is written to ~/.config/memoryclaw/last-error.log. Check this file to diagnose issues. For session expiry, run memoryclaw login to re-authenticate.

Restore

Cloud restore with version picker:

Run memoryclaw pull to restore from the cloud. If you have multiple backup versions, a version picker lets you choose which one to restore. The latest version is always recommended, but you can go back to any previous snapshot.

$memoryclaw pull

Restore to a custom directory:

Use --path to restore to a directory other than the default ~/.openclaw/. The interactive pull also offers a “Custom path” option.

$memoryclaw pull --path ~/restore-here

Restore from a specific claw:

If you have multiple claws (e.g., work and personal machines), specify which one to restore from:

$memoryclaw pull --claw_id work-macbook

Restore from a local file:

If you downloaded a backup from the dashboard, restore directly from the file without contacting the cloud:

$memoryclaw pull --file /path/to/backup.enc

Cross-machine restore:

To restore on a new machine, install MemoryClaw, log in with your account, then run memoryclaw pull --claw_id <claw-name>. The restore automatically updates your local claw config to match the restored claw identity, so future backups go to the right place.

Restoring overwrites your current ~/.openclaw/ contents. The CLI warns and asks for confirmation before proceeding if the target directory has existing files.

Multi-Claw

A claw is an OpenClaw instance backed up by MemoryClaw. Each claw has its own backup history, storage usage, and backup schedule. You can have multiple claws on the same machine — each pointing to a different OpenClaw directory — or spread them across different machines. Name them anything you like (e.g. work-claw, personal-claw).

Free plan: up to 1 claw. Pro plan: up to 10 claws. See pricing for details.

CLI commands:

$memoryclaw claws

Lists all your registered claws with their backup status, OS, hostname, and storage.

$memoryclaw claws add

Register a new claw — choose a name and OpenClaw directory. Optionally back it up immediately.

$memoryclaw claws switch

Switch which claw is active for backup and restore.

$memoryclaw claws rename MacBook

Rename the current claw.

$memoryclaw claws primary

Set the current claw as your primary claw.

When you first run MemoryClaw, it registers your default OpenClaw directory as a claw. To add more claws (e.g. for different projects or directories on the same machine), use memoryclaw claws add. You can rename or set a primary claw from the CLI. Deleting claws is only available from the dashboard for safety.

Interactive Menu

Run memoryclaw with no arguments to open the interactive menu. From here you can access all features without memorizing commands. The menu loops back after every action — no need to re-launch.

Main menu:

1. Back up now

2. Restore from backup

3. Status & details

4. Claws

5. Settings

6. Help

7. Log out

8. Exit

Claws menu (memoryclaw claws):

1. Add new claw

2. Switch active claw

3. Rename this claw

4. Set this claw as primary

---

5. Back

Settings menu:

1. Rename this claw

2. Change encryption passphrase

3. Exclude files/folders

4. View account on website

5. Logout

6. Change backup frequency

7. Remove auto-backup

---

8. Back

The Change backup frequency option lets you adjust how often auto-backups run. Free plans can schedule hourly or less frequent backups. Pro plans unlock frequencies down to every 5 minutes.

The Exclude files/folders option lets you add or remove glob patterns to skip certain files from your backup (e.g. *.log, node_modules/, .env).

Account Management

All account management is available from the dashboard:

  • Change password — Security section with current password verification.
  • Change email — Verified flow: enter your current password and the new email address, then check the new inbox for a confirmation link. A notification is also sent to your old email for security.
  • Manage subscription — View billing interval, switch between monthly/annual, cancel or reactivate. Cancellation keeps access until the end of the billing period.
  • Delete account — Permanently removes your account, all backups, and cancels any active subscription.

Doctor & Diagnostics

Run memoryclaw doctor to perform a full health check of your setup. It verifies:

  • Config directory exists and is writable
  • Device config (device.json) is valid
  • Authentication status and token validity
  • API connectivity and latency
  • Cron job (auto-backup) is installed
  • OpenClaw directory exists
  • Passphrase is saved locally

Each check shows a pass/fail indicator with a description of what to fix if something is wrong. This is the first command to run when troubleshooting.

FAQ

Yes. All backups are encrypted with AES-256-GCM using a passphrase that only you know. Encryption happens entirely on your machine before anything is uploaded. We operate on a zero-knowledge model — MemoryClaw never has access to your unencrypted data.
No. Your backups are encrypted on your machine with your passphrase before upload. We only ever store and transfer encrypted blobs. Without your passphrase, the data is unreadable — including to us.
Your backups become permanently inaccessible. MemoryClaw uses zero-knowledge encryption, meaning we never see or store your passphrase. There is no recovery mechanism. Write it down and keep it somewhere safe.
A claw is an OpenClaw instance backed up by MemoryClaw. You can have multiple claws on the same machine, each pointing to a different OpenClaw directory, or across different machines. Each claw has its own backup history and storage. Use memoryclaw claws add to register additional claws.
Use the multi-claw system. Run memoryclaw claws add to register each OpenClaw directory as a separate claw. Each claw has its own name, backup history, and schedule. Switch between them with memoryclaw claws switch. Free plan supports 1 claw; Pro supports up to 10.
Install MemoryClaw on the new machine, log in with your account, then run memoryclaw pull --claw_id <claw-name>. Your passphrase will be required to decrypt. The restore automatically configures the local claw identity so future backups continue seamlessly.
Your entire ~/.openclaw/ folder — including memory, context, settings, and configuration — is zipped and encrypted, excluding the MemoryClaw plugin itself and any patterns you've added to the exclude list.
Free tier: 24 backups per day. Pro: Unlimited backups. Restores are unlimited on all plans.
Go to the dashboard → Subscription section → Cancel. Your Pro access continues until the end of the current billing period. You can reactivate anytime before it expires. After expiry, your account downgrades to Free and the Free plan limits apply.
Use memoryclaw claws to list, memoryclaw claws add to register new ones, and memoryclaw claws switch to change the active claw. You can also rename or set a primary claw from the CLI. Deleting claws is only available from the dashboard for safety.
Yes. Set the OPENCLAW_DIR environment variable to your custom path before running MemoryClaw. It will use that directory instead of the default ~/.openclaw/. You can also specify custom directories when adding claws via memoryclaw claws add.
Run memoryclaw pull --file /path/to/backup.enc and enter your passphrase. This restores directly from a local file without contacting the cloud. Note: this will overwrite your current OpenClaw folder.

MemoryClaw enforces per-IP rate limits on API endpoints to ensure fair usage:

EndpointLimit
Upload (backup push)100 requests / hour
Download (restore pull)50 requests / hour
Claw auth10 requests / hour
Claw token polling60 requests / 10 min
Status / history120 requests / min

Registration and login are protected by human verification (Cloudflare Turnstile) instead of rate limits. Exceeding API rate limits returns HTTP 429 Too Many Requests.

Run curl -fsSL /install.sh | bash -s -- --uninstall or memoryclaw uninstall. This removes the binary, config files, and cron job. Your cloud backups and account remain intact — you can reinstall and reconnect anytime.

Troubleshooting

Start by running memoryclaw doctor — it checks your config, auth, API connectivity, cron job, and passphrase in one go. Most issues are identified here with instructions on how to fix them.

If you entered the wrong OpenClaw directory during setup, delete the claw config and re-run:

rm ~/.config/memoryclaw/device.json

memoryclaw

This triggers the setup flow again so you can enter the correct directory.

The CLI automatically detects 401 errors and prompts you to log in again in interactive mode. In auto mode (--auto), it exits with a message. Run memoryclaw login to re-authenticate. Sessions expire after 7 days.

Auto-backups (push --auto) require a saved passphrase. Run memoryclaw push interactively once to set and save your passphrase.

You've hit the maximum number of claws for your plan (Free: 1, Pro: 10). You have two options:

  • Delete an existing claw from the dashboard.
  • Upgrade to Pro for up to 10 claws.

If a claw was deleted from the dashboard but the CLI still tries to use it, you'll see a “claw not found” error. In interactive mode, the CLI offers to set up a new claw. In auto mode, the error is logged to ~/.config/memoryclaw/last-error.log.

To fix manually:

rm ~/.config/memoryclaw/device.json

memoryclaw push

Free plan: 500 MB. Pro plan: 15 GB.

When your storage is full, MemoryClaw automatically removes the oldest backup(s) to make room for your new backup. You always keep your most recent backups. The CLI will display a note when old backups have been removed.

If the backup itself exceeds your remaining quota, the CLI warns you before uploading. In auto mode, the backup is aborted. You can manually delete old backups from the dashboard or upgrade to Pro for 15 GB.

Check your internet connection. Run memoryclaw doctor to test API connectivity and latency. If the issue persists, verify the API is reachable:

curl -s https://memoryclaw.ai/api/version

This should return a JSON response. If it doesn't, check your network or firewall settings.

Auto-backup errors are appended to:

~/.config/memoryclaw/last-error.log

For interactive debugging, use the --verbose flag with any command to see API calls, timing, and file details.

Need Help?

If you have questions, run into issues, or want to request a feature, use our contact form or email us at info@memoryclaw.ai. You can also report bugs, suggest features, or ask questions through the contact page. We typically respond within a few business days.