Claude Code deletes your sessions after 30 days.Packbat keeps them.

Free, open source, and yours. Put the file back and the harness resumes it.

$ npm install --global packbat

claude code · codex · opencode · gemini cli · pi

Set it up once.

The wizard finds your harnesses, creates the archive, and installs the schedule.

01$ packbat init

Choose the archive location. Add an encrypted remote or skip it. Packbat runs the first sync and checks itself.

02

Every hour, the archive catches up.

New and changed sessions

A cheap stat walk finds only what needs archiving.

Compressed verbatim

The raw file is kept in its native shape and scoped to this machine.

Caught up after sleep

The schedule runs again at login or wake, so missed hours do not become gaps.

03

Bring the thread back.

Restore returns every file to the exact place its harness expects, then prints the resume command.

$ packbat restore c5de331arestored 3 files to ~/.claude/projects/…claude --resume c5de331a

Your remote never sees a session.

Packbat encrypts every off-box copy before upload. The recovery kit holds the only key.

on this machine

Raw archive and the public encryption recipient.

on your remote

Ciphertext only. S3-compatible storage, SFTP, or any rclone remote.

with you

The recovery kit. Keep a copy off the machine.

Doctor watches the whole loop.

$ packbat doctor

✓ installed

✓ live

✓ fresh

✓ nothing missed