Skip to main content

Your Laptop: Sync and Backup

Your coding conversations and your developer memory follow you between your laptop and your Workbench sessions — and they are backed up. Start a conversation on your laptop, resume it in a Workbench session, and the other way round. If your laptop is lost or replaced, you get every conversation back.

This works with Claude Code and Loyd Code (lc), MeetLoyd's coding agent for the terminal.

Set up your laptop (once)​

Install Loyd Code, sign in, and turn on automatic sync:

npm install -g @meetloyd/code
lc login # opens your browser; sign in the way you usually do
lc hooks --install # Claude Code sessions then sync on their own

lc login gives this laptop its own key, named after the machine (for example lc on my-laptop). It can only sync your memory and conversations — nothing else. You can revoke it at any time under Settings → API keys. Prefer to make the key yourself? lc login --key <your key> stores it instead.

What syncs, and when​

Once the hooks are installed, nothing needs typing:

WhenWhat happens
A Claude Code session startsYour shared memory of the repository comes in, so the session knows what your other sessions learned
As you workMemory is synced every couple of minutes, and the current conversation every 30 minutes (when it changed)
A session endsMemory and the conversation are sent one last time
Every few hours, at a session startEvery conversation that changed since the last backup is sent, so none is left behind

Uploads run in the background: they never hold up your session, however large the conversation.

In your Workbench, the sync icon in the header shows the state: syncing, synced (and when), a problem, or laptop never synced with the commands to fix it.

Which repositories are backed up​

Your laptop sends memory and conversations only for:

  • repositories you have used in a Workbench session, and
  • repositories you add yourself.

Everything else — a personal project, another client's repository — stays on your laptop.

lc backup list            # what is backed up from this laptop, and why
lc backup add # inside a repository: back it up from now on
lc backup remove # stop backing up one you added (what is already saved stays)

Your backup​

Every conversation is kept — there is no limit on how many, and no limit on size. They are stored in your organization's storage, under your own account: when your organization uses its own storage bucket, your backup lives there.

To see everything that is backed up, open the Conversations panel in the Workbench and choose All my repositories (backup). From there, Resume opens any conversation in a new session of the tool that wrote it.

Keep your local history too

Claude Code removes conversations from your laptop after 30 days by default (its cleanupPeriodDays setting). Your backup keeps them regardless; raise that setting if you also want them on the laptop.

Restore on a new laptop​

npm install -g @meetloyd/code
lc login
lc restore --list # what your backup holds, per repository

Clone the repositories you want, then run, inside each one:

lc restore

It brings back that repository's memory and every conversation — Claude Code's ready for claude --resume, Loyd Code's for lc --resume. A conversation you already have locally, at least as recent, is left untouched. Then lc hooks --install turns automatic sync back on.

Troubleshooting​

You seeWhat to do
Not synced: sign inRun lc login
This repository is not backed up from this laptopOpen it in a Workbench session, or run lc backup add inside it
The sync icon says laptop never syncedRun lc hooks --install, then start a Claude Code session in the repository
A backup is already running on this machineNothing to do: one backup runs at a time, and the next one sends whatever is left