claude-sessions-sync
Skill by serejaris
Syncs Claude Code session records between two Anthropic accounts in the Claude desktop app on macOS. Built for people who switch accounts and find old sessions missing from the picker.
Install claude-sessions-sync
Built from the published package, never by AI.
git clone --depth 1 https://github.com/serejaris/personal-corp-os /tmp/personal-corp-os && mkdir -p ~/.claude/skills && cp -r /tmp/personal-corp-os/skills/claude-sessions-sync ~/.claude/skills/claude-sessions-syncRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/serejaris/personal-corp-os /tmp/personal-corp-os && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/personal-corp-os/skills/claude-sessions-sync ~/.gemini/antigravity-cli/skills/claude-sessions-syncAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install claude-sessions-sync in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Claude sessions sync copies Claude Code session records between two Anthropic accounts in the Claude desktop app on macOS. Session records are stored per account and organization, so switching accounts hides the sessions of the other side. The skill gives a procedure and a Python script that run a bidirectional, newest-wins sync of local session files, merge the archived session index, and copy deleted-session markers in both directions.
The Claude app must be fully closed before the sync runs. Transcripts in the shared projects folder are not touched. Scheduled tasks and backlog folders stay separate for each account. The skill is aimed at people who switch between accounts, for example when one hits usage limits, and want their sessions to show in the picker after a switch.
Written from the project's SKILL.md and checked against it.
What it can do
- Bidirectional session syncCopies local session record files in both directions, keeping the newest version of each.
- Archived index mergeUnions the archived session lists of both folders and writes the result to both.
- Deleted markers syncCopies deleted_ markers in both directions so deleted sessions do not return to the picker.
- Per-account files kept separateLeaves scheduled-tasks.json and backlog/ untouched because each account keeps its own.
What you need
- macOS
- Claude desktop app
- Two Anthropic accounts
- Claude Code
- Python
Try asking
- Sync my Claude sessions between my two accounts before I switch.
- Mirror my session records to the other account after a switch.
- Check which organization folder holds the freshest session record.
Good to know
- The Claude app must be fully closed before running the sync.
- Claude Code cleans old transcripts, so restored records may open empty.
- Copies drift apart while you work, so the sync must be rerun on every switch.
- Continuing a moved session sends its transcript to the current account.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/claude-sessions-sync/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to claude-sessions-sync
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
claude-sessions-sync: common questions
Does this sync the transcripts too?
No. The source says transcripts in ~/.claude/projects/ are shared across all accounts and should never be touched by the sync.
Why do old sessions disappear after switching accounts?
The app lists only the current account and organization pair, so sessions stored under the other pair are hidden until they are synced.
Is there an official way to migrate sessions between accounts?
The source says there is no official cross-account migration; the related issue was closed as not planned.
How do I install claude-sessions-sync?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is claude-sessions-sync free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is claude-sessions-sync safe to use?
It scores 67 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to claude-sessions-sync?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
