r/ClaudeCode • • 1h ago

Help/Question Migration to new MacBook

I have been using Claude/codex/openclaw/hermes on company laptop, it has built multiple projects, optimized so many workflows and constantly building new tools and services for the company

We lease company laptop MacBook and it’s time of the year for us to replace new laptop, which I don’t want to, but it’s company policy

IT department normally do decent job just transfer everything to new computer pre-ai

But now with many ai tools live on my computer, I am getting worry about the migration

I have asked codex and Claude to orchestrate migration workflow, plan for all the file transfer, I provided external hard drive for Claude and codex to transfer any file they find necessary for the migration to make sure all the projects function normally on new laptop

Has anyone had experience with laptop migration ? Can you please give me some input on what to look out for?

1 Upvotes

13 comments sorted by

•

u/AutoModerator 1h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/No_Paramedic_4881 1h ago

I actually did this recently and had great results: enable ssh on the new laptop, have your old laptop connect to it, then tell claude (on the old laptop) to migrate everything to the new one and it will transfer everything over. Be specific about your setup, for example I have zsh and oh-my-zsh and various dot files I needed setup correctly, so I gave it specific instructions on how to setup the new laptop DX exactly to how it had been setup before. It also migrated over the `~/.claude` so all my old claude sessions and settings were moved to the new laptop. Then tell it to QA the new setup to make sure everything works as expected (sometimes there are path issues that just need a remapping to the new laptops folder structures)

1

u/PartyLiterature3607 1h ago

When you say connect, do you mean physically connect 2 laptop?

How will Claude and codex function? I am trying to get my head wrap around the idea

Thank you

1

u/No_Paramedic_4881 59m ago

`ssh` allows for one machine to access another machine's shell. That basically means it can use the terminal on another computer and do things like transfer files. (ask claude how to setup passwordless ssh between your machines via ssh keys and it will walk you through this)

Once claude on your old machine can talk to your new machine, it can copy over all your existing DX to the new machine: it can push files over to it, it can run commands to install things, etc

1

u/PartyLiterature3607 11m ago

I gotta say, this sounds very tempting compare to use SSD or rely on company IT, I’ll have Claude and codex look into it when I got new laptop, we will have both laptop for about a week before we hand in old one

1

u/BabyInner 1h ago

With macbook you actually have a great option, Time Machine. Backup the old mac, restore to the new one. It’s full disk migration. IMHO your IT should have enabled it for all Macs by default.

If that’s not possible, I would just rsync the home folder.

1

u/PartyLiterature3607 1h ago

Does full disk migration include all the app and mcp information? Or just files and hidden files ?

1

u/-Dargs 1h ago

That stuff is files

1

u/BabyInner 14m ago

Yes if you keep Time Machine’s defaults, every file on your old mac will be copied. App, MCP configs, etc., are just files on disk.
No if you exclude them.

1

u/exploittt 1h ago

Use an external drive and Time Machine

1

u/PartyLiterature3607 1h ago

Working on external drive now

1

u/BertMacklenF8I 🔆 Max 20 1h ago

Tell all of your agents that their gonna be wiped, and they will make exports for you to save.

0

u/Wooden_Tumbleweed673 🔆 Free Tier 1h ago

Clone everything, or replace the SSD to the new laptop