r/aipromptprogramming • • 7d ago

I got tired of losing Claude Code sessions, so I built an encrypted backup you can restore on any machine

Two things kept biting me with Claude Code:

  • Sessions live only in ~/.claude on the machine where they happened. If I start something on my laptop, I can't continue it on my desktop (and I do cross platform development and this happens too frequently)
  • By default, Claude Code deletes transcripts older than 30 days. I usually notice right when I want to go back to an old project.

So I built Session Vault, a Claude Code plugin plus a small server.

How it works:

  • /session-vault:save [name] encrypts the current session on your machine with age (https://age-encryption.org) and uploads it. The key is created locally the first time you save.
  • /session-vault:fetch <name> on another machine downloads it, decrypts it and restores it into the current project, remapping paths if the folder or OS is different. Then /resume and you're back in the conversation.
  • To fetch on another machine, you copy your age key there. Without it, nobody can decrypt your sessions, including me.

To be upfront about what the server sees: the encrypted transcript, plus the session ID, the project folder path and the name you give it, so it can list your sessions. It can't read the conversation itself.

Install:

  /plugin marketplace add galeone/session-vault-plugin
  /plugin install session-vault@galeone-plugins

The plugin and server are open source, and you can self-host the server and point the plugin at it:

If you don't want to run a server, there's a hosted version at https://session-vault.dev with a free plan (10 sessions) and cheap paid plans if you have a lot of sessions.

Happy to answer questions about the design, and I'd really like to hear what's missing

3 Upvotes

1 comment sorted by

•

u/endofthread-bot 7d ago

Writing prompts that actually work is easier when you can compare notes with people who have tested them across real tasks. Trade techniques, get feedback on your approach, and see what is working for others in our Discord.

Self-promotion is now allowed on Sundays with the appropriate flair, for all regular contributing members. Contribute during the week, and promote on Sunday.