💼 Work & career

Back up your AI agent so you never lose its memory (and move it to a new computer)

If your agent runs on your own computer or server, its memory, chats, automations and logins live in a folder that one crash could wipe. OpenClaw has a built-in backup and restore, and one user just moved 9 agents and 800+ sessions to a bigger server with 11 minutes of downtime.

MediumUpdated · By BotsDoThat · Added Nov 12, 2026♥ 65 · ↻ 4 on X · measured Nov 19, 2026

Seen on X · Official docs

What the bot does

  1. Pauses the agent so nothing changes while the backup is made.
  2. Packs its settings, memory files, chat history, automations and saved logins into one checked backup file.
  3. Restores that file on a new computer or server into a fresh folder, without touching anything live.
  4. Runs a health check, then starts the agent again so conversations pick up where they left off.

What you end up with

A tested backup file of your agent you can restore any time, or the same agent running on a new machine with its memory and automations intact.

Copy-paste prompt

Fill in the [brackets]. Then paste it into any tool below.

Copy this prompt
Help me back up my [OpenClaw] agent safely. Walk me through it one step at a time in plain words: stop it, make a verified backup file, and tell me where the file is. Then help me test restoring it into an empty folder so I know the backup works. Don't delete or overwrite anything from my current setup, and don't print any API keys or passwords on screen.

New to this? Start with what an AI agent is, in simple terms, then how to build an AI agent without coding, or set up a bot in 5 plain steps → Choosing a self-hosted agent? See OpenClaw vs Hermes Agent for beginners.

Want one new job like this each week, with a prompt to copy? Get the free BotsDoThat Weekly email and the free Starter Pack: 7 ready-to-paste AI agent setups, plus a power-user bonus.

Setup

  1. Find where your agent keeps its data. For OpenClaw, run 'openclaw status' to see the folder (usually ~/.openclaw).
  2. Stop the agent first ('openclaw gateway stop'), then make a checked backup: 'openclaw backup create --output ~/Backups/openclaw --verify'.
  3. Copy the backup file somewhere safe: an external drive or private cloud storage. It contains your keys and logins, so treat it like a password.
  4. To move: install the same OpenClaw version on the new machine, run 'openclaw backup restore <file> --target ~/openclaw-restored', point OpenClaw at it, then run 'openclaw doctor' and restart.
  5. Do a quick test chat and check your automations ran before you switch off the old machine.

Tools that can do it today

Plans and limits change; check each tool's page.

Watch out

  • The backup holds API keys, logins and chat history. Store it encrypted or somewhere private, never in a public folder.
  • OpenClaw's docs say to stop the agent before backing up, because copying files while it runs can save a broken database.
  • Restoring old chat-app logins (like WhatsApp) can get out of sync; you may need to reconnect them. Plugins also need reinstalling.
  • If you're retiring an old server, it's a good time to change your API keys (OpenClaw migration guide).

What this costs to run

In a chat app it runs inside your plan. If you run it as a bot on an AI API, the bill depends on how often it runs and how much it reads.

Estimate it in the cost calculator →

Tip: Use a small AI model for simple jobs, a big one for hard ones. More in Run your bots for less and how much an AI agent costs.

Questions people ask

Which AI tools can do this?

OpenClaw or Hermes Agent can do this today. Paste the copy-paste prompt on this page into any of them and fill in the [brackets].

How hard is it to set up?

It's rated Medium. Start with the steps under “What the bot does”.

What should I watch out for?

The backup holds API keys, logins and chat history. Store it encrypted or somewhere private, never in a public folder.

Sources

Last checked Nov 12, 2026. Self-reported results from posts are the poster's own claims.

BotsDoThat Weekly

Get the free Starter Pack: 7 AI agents you can put on a schedule

Join the BotsDoThat Weekly and we'll send you 7 ready-to-paste setups for ChatGPT, Claude, OpenClaw and Hermes Agent, plus a bonus for power users. Each one asks you before it sends, buys or deletes anything.

We'll email you a confirm button. Click it to confirm and get your Starter Pack. Unsubscribe any time. Privacy

Know someone who'd like this? Forward it, or send them to botsdothat.com/newsletter