Migrate Hermes Agent to New Machine: Step By Step

Julian Goldie — founder, AI Profit Boardroom
By Julian Goldie · 7 min read
Get The AI Profit Stack Join AIPB →
🎯 1,000+ done-for-you AI agent workflows 📅 4 live coaching calls every week 🛡️ 7-day refund + 30-day ROI guarantee 👥 3,400+ AI operators inside

To migrate Hermes Agent to new machine hardware, run hermes backup on the old computer, copy the zip across, install Hermes on the new computer, run hermes import on that zip, then run hermes setup to check your API keys and providers. That is the route the Hermes docs give for moving a whole setup, and it is not the hermes migrate command.

📺 Watch: How to Run Hermes Agent OS on a VPS

🔥 Get the Agent OS as a free bonus: AI Profit Boardroom members get the full Agent OS zip, prompt libraries, daily tutorials and weekly live coaching calls. → Get inside

This guide walks through each step, shows what moves and what stays behind, and covers the one-profile option for when you only want to move a single agent.

Julian Goldie shares the agent setups he runs in his own business inside the AI Profit Boardroom. If you want a second pair of eyes on a move to a VPS or a new laptop, book a free AI strategy session.

Why hermes migrate is the wrong command

The name trips people up. hermes migrate sounds like the move-machines command, but the CLI reference describes something else.

It imports from other agents: OpenClaw, Claude Code, Codex, Cursor, Grok Bot and OpenBot. It also rewrites config, for example migrate xai and migrate relay. Since v0.23.0 the importers live in the agent-importers plugin.

If you are coming from Grok Bot rather than from another Hermes install, that is a separate job, covered in the guide on how to migrate Grok Bot to Hermes.

For Hermes to Hermes, the updating page is clear: update backups protect an in-place update, and a move to different hardware uses hermes backup plus hermes import.

How to migrate Hermes Agent to new machine setups, step by step

These steps follow the Hermes FAQ section on exporting Hermes to another machine, plus the warnings in the CLI reference.

Step 1: check where your vault key lives

If you keep your credential vault key in the operating system keychain, a backup carries the vault without its key. The credential vault docs say to run hermes vault key migrate --to file before you move a profile to another machine.

Run hermes vault key first to see where the key sits now. If it is already a file, skip this step.

Step 2: take a full backup on the old machine

Run hermes backup. By default it writes a zip to your home folder named hermes-backup plus a timestamp. Add -o with a path to save it somewhere else.

You do not need to stop Hermes for this. The backup uses SQLite's backup API, so it is safe while Hermes is running.

Use the full backup, not --quick. The docs put it plainly: "It is not a replacement for the full backup before a machine migration."

Step 3: read the exit code

Exit code 0 means every file landed in the zip. Exit code 1 means the backup is incomplete: the zip is kept, but some files were skipped. Exit code 2 means another backup was already running.

On a 1, read the skipped-file report before you go any further.

Step 4: install Hermes on the new machine

The FAQ uses the install script: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash. The installation page also documents desktop packages for macOS and Windows.

Step 5: copy the zip across

The FAQ example is scp from the old machine to the new one. Any method that copies the file intact works, and the import checks the archive anyway.

Step 6: stop the gateway, then import

The CLI reference warns you to stop the gateway before importing. Then run hermes import followed by the path to your zip.

The import overwrites existing files in your Hermes home. If Hermes is already set up on that machine, it asks you to confirm. -f or --force only skips that prompt.

Step 7: run hermes setup

The last step in the FAQ is hermes setup on the new machine, to check that API keys and provider config work.

If you run Hermes as a background service, set it up again with hermes gateway install. If you use WhatsApp, plan to pair it again with hermes whatsapp.

📺 Watch: Hermes Agent: New Voice Activation Update is INSANE!

What moves and what stays behind

This is the table to check before you wipe the old machine.

ItemFull hermes backuphermes profile export
Config and skillsIncludedIncluded for that profile
Memories and sessionsIncludedCan be included
API keys (.env, auth.json)IncludedStripped
All profilesIncludedOne profile only
Hermes code and dependency environmentsExcludedExcluded
Models, runtimes, checkpointsExcludedExcluded
Browser profilesExcludedExcluded
Platform sessions and pairing storesNot stated in the docsExcluded
File format.zip.tar.gz

From the cache folder, the backup keeps images, audio, videos, documents, screenshots and citations. Everything else in the cache is treated as regenerable.

The excluded items get rebuilt or downloaded again on the new machine. The docs note that runtime downloads are often tens of GB, which is why they stay out of the zip.

📺 Watch: NEW Hermes Agent Cloud Update is INSANE!

What the import does with your sessions

Before writing anything, hermes import checks the CRC of every file in the archive. A damaged zip leaves your Hermes home untouched and exits 1.

A partial restore also exits 1, with an "Import incomplete" summary. The files that landed stay in place.

Databases such as state.db, kanban.db and response_store.db are written into the existing database file instead of being swapped in. If an older backup replaces newer sessions, the import prints a warning with before and after session and message counts.

So if you see that warning on a fresh machine, check you copied the right zip.

Moving just one agent with a profile export

Sometimes you only want one agent on the new box, for example a support agent moving to a VPS while everything else stays on your laptop.

The FAQ route is hermes profile export work ./work-backup.tar.gz on the old machine, then hermes profile import ./work-backup.tar.gz work on the new one.

Three things to know:

In a chat session, /export does the same job, and the desktop app has Export profile and Import profile in its command menu. The profile distributions page covers the details.

If you want to see how a full Hermes setup runs day to day before you move it, the Agent OS guide walks through the whole system.

Checks after the move

Run these before you delete anything on the old machine:

  1. Confirm the backup exited 0, or that you read the skipped-file report.
  2. Confirm the import finished with no "Import incomplete" line.
  3. Run hermes setup and check every provider.
  4. Open a past session and check your memories and skills are there.
  5. Check your cron jobs are listed.
  6. Reinstall the gateway service if you use one, and re-pair WhatsApp or other messaging that needs it.
  7. If you used the keychain for your vault, check the vault opens.

The docs say to review the skipped-file report before removing the source install. Keep the old machine running until every check passes.

Moving machines is also a good moment to look at which model you run. The Goldie Bench leaderboard scores models on the same fixed tasks, and your provider keys come across in the full backup.

Inside the AI Profit Boardroom you get step-by-step video trainings and the installable Agent OS. For help planning your own move, book a free AI strategy session.

The manual fallback

The FAQ also gives an rsync fallback that copies the Hermes folder directly and leaves out the code repo: rsync -av --exclude='hermes-agent' ~/.hermes/ newmachine:~/.hermes/.

The backup and import route gives you more checks: exit codes, the CRC test, the session warning and the skipped-file report. The rsync copy gives you none of those.

The same vault rule applies. A copied Hermes folder does not carry a keychain key either.

For more on how Hermes stores credentials, read the Hermes Vault guide before you move.

FAQ

How do I move Hermes Agent to a new computer?

Run hermes backup on the old machine, copy the zip, install Hermes on the new machine, run hermes import on the zip, then run hermes setup to check your providers.

Does hermes backup include my API keys?

Yes. A full backup includes .env and auth.json. A profile export strips them.

Can I back up Hermes while it is running?

Yes. The backup uses SQLite's backup API and is safe while Hermes runs. Stop the gateway before you run hermes import, though.

Will my WhatsApp bot keep working after the move?

The docs do not promise that. Profile exports exclude platform sessions, and WhatsApp pairing is documented as needing a re-pair after a migration, so plan to run hermes whatsapp again.

Ready to move? Take the full backup today and book a free AI strategy session if you want help with the rest.

What members say about the AI Profit Boardroom

Read all 114 reviews on Skool →

★ 4.9 out of 5 from 114 member reviews on Skool

Yosuke Sato, AI Profit Boardroom member review (5 stars, paying member for 17 months): The best Skool course you get for AI! I have attended a few Skool courses before, but AI Profit Boardroom is the most active community and has great support from the management team, including Julian! You can get the most up-to-date information and practical implementations in this community. I highly recommend this!Mazzie T, AI Profit Boardroom member review (5 stars, paying member for 10 months): My mind is blown everyday with all the content and the incredible information. So much support and I love the personalised attention and quick responses. The community is great and people are very responsive and helpful.Rene Clayton, AI Profit Boardroom member review (5 stars, paying member for 9 months): The AI Profit Boardroom is a GAME CHANGER people. I could not be more thrilled that I joined!! So much support, more information than you can even consume, a huge value for what the small fee was. I have grown my business, my knowledge and my FUN!. SUCH a fantastic leader and group of humans. I am incredibly honored to be a part of this fantastic group of intelligent humans :-) THANK YOU!Arpiet Malpani, AI Profit Boardroom member review (5 stars, paying member for 8 months): Incredible learning from Julian and team. I started out in march and was able to build end to end SAAS with the help and learning from this group. I am incredibly thankful to Julian for crazy support and prompt response.James Grimm, AI Profit Boardroom member review (5 stars, paying member for 7 months): I asked Julian for help finding local business websites with little to no traffic. Julian was gracious in providing me my personal "how-to" video instruction. Wow, this is the pinnacle of customer service! I am just one of 3,400 subscribers and Julian took the time to help me personally. Thank you Julian for your assistance and outstanding custoemr support and care. James (Jim) GrimmNick Good, AI Profit Boardroom member review (5 stars, paying member for 4 months): I’m part of many AI groups and hands down, what Julian Goldie, has built here…the classroom trainings are amazing, but the community he has created is second to none (the community is worth the cost of joining!). If you’re looking to become the AI expert and build/create something meaningful, then AI Profit Boardroom is for YOU!Steven Gray, AI Profit Boardroom member review (5 stars, paying member for 4 months): Been in awhile. I’m a dad on a factory shift, not a tech bloke. Julian’s lot showed me how to use AI without drowning in tools. Avatar, voice, the workflow thinking — that’s what I needed. If you’re stuck on “where do I start,” this group’s worth it. I always read them.Steve Erickson, AI Profit Boardroom member review (5 stars, paying member for 4 months): I asked Julian a simple question, and he ended up creating a 10-minute video and a guide breaking down in extreme detail what I had asked. Amazing response!Rod Martin, AI Profit Boardroom member review (5 stars, paying member for 3 months): Julian is brilliant, and more prolific than I can keep up with (which is a great thing). His AgentOS is remarkable, and he is THE go-to guy for what you can really do (and not do) with the ever-increasing deluge of new AI upgrades and tools. HIGHLY recommend.Daniel Shulman, AI Profit Boardroom member review (5 stars, paying member for 4 months): Julian is very helpful. He doesn't try sell stuff you dont need and will give you a straight answer to your questions.Rj Herzog, AI Profit Boardroom member review (5 stars, paying member for 5 months): Top notch. If you are searching & searching thinking there is always something better out there.... You just found it. No need to look any further. Goldie covers it all & is super helpful. Can't beat the group either. Really can't recommend this group enough.Jermey Matthews, AI Profit Boardroom member review (5 stars, paying member for 6 months): While he has the capacity to do it, Julian is definitely doing the unscalable things to support his community.

Ready To Join The #1 AI Community?

Join 3,400+ entrepreneurs inside the AI Profit Boardroom. Get the Agent OS, 1,000+ plug-and-play AI agent workflows, daily Q&A with Julian and 4 live coaching calls every week.

Join The AI Profit Boardroom →

7-Day No-Questions Refund • 30-Day ROI Guarantee

← Back to all posts