Share settings across accounts
Each account has its own folder, which is what keeps the logins apart. It
would also mean setting up your CLAUDE.md, skills and commands once per
account. Sharing avoids that: one setup, linked into every Claude account,
while every login stays separate.
Turn sharing on
Section titled “Turn sharing on”-
Pick the source. By default the source is your normal Claude Code folder,
~/.claude. To use one of your accounts instead, pass--source <account>. -
Link it into every account.
Terminal window agent-switch share on # source: ~/.claudeagent-switch share on --source work # source: the "work" accountThe output lists, per account, what was linked or why something was skipped.
-
Check it.
Terminal window agent-switch share statusagent-switch share status --json
If an account already has its own copy of a file or folder, share on leaves
it alone and says so. Remove that copy if you want the shared one instead.
What is shared
Section titled “What is shared”Directorysource (for example ~/.claude)/
- CLAUDE.md file, linked
- settings.json file, linked
- keybindings.json file, linked
- history.jsonl prompt history, linked
Directoryskills/ folder, linked
- …
Directorycommands/ folder, linked
- …
Directoryagents/ folder, linked
- …
Directoryprojects/ only with
--history- …
Directoryplans/ only with
--history- …
What is never shared: the login and account data (.claude.json,
.credentials.json), and plugins/, sessions/, ide/ and statsig/.
Folders write through, files can fork
Section titled “Folders write through, files can fork”The two kinds of link behave differently, because of how Claude Code saves its settings:
- Folders (
skills/,commands/,agents/) are shared for real. A new skill added in any account lands in the source and shows up everywhere. - Files (
settings.json,keybindings.json,CLAUDE.md) are linked too, but Claude Code saves a changed setting by writing a new file. An edit made with/configinside one account therefore replaces the link with that account’s own copy: the file forks.
To push a forked file back into the source and link it again:
agent-switch share syncIf several accounts forked the same file, the last one synced wins. Run
share sync after any /config change you want everywhere.
Prompt history
Section titled “Prompt history”Your prompt history (history.jsonl, what ↑ and Ctrl+R search) is shared by
every share on, so an old prompt is found on every account. Claude Code only
ever adds to this file, so its link never forks. An account that already had
its own history is merged in, in order and without duplicates, and its
original is kept as history.jsonl.pre-share.
Share conversations too macOS · Linux
Section titled “Share conversations too ”With --history, conversations (projects/) and plan files (plans/) are
shared as well, so claude --resume sees the sessions of every account:
agent-switch share on --historyThis needs real symbolic links and is refused on Windows.
Turn sharing off
Section titled “Turn sharing off”agent-switch share offThis removes only the links Agent Switch created. Files an account owns, and forked files, are left as they are. Each account keeps a copy of the shared prompt history, so no account ends up with an empty history.
Windows Windows
Section titled “Windows ”- Folders are linked as junctions, which need no admin rights.
- Files need symbolic links, which Windows allows only with Developer Mode turned on (Settings › System › For developers) or as an administrator. Without it, file links are skipped with a message, and folders are still shared.
--historyis not available.
Copy your setup to another computer
Section titled “Copy your setup to another computer”config export and config import move one Claude account’s setup between
machines as a single file. They carry settings.json, keybindings.json,
CLAUDE.md, skills/, commands/ and agents/, and never a login or
token.
-
On the old computer, export and encrypt it:
Terminal window agent-switch config export work | gpg -c > work-config.gpg -
Copy the file to the new computer.
-
On the new computer, after adding the account, import it:
Terminal window gpg -d work-config.gpg | agent-switch config import work
The import accepts only those six names, and rejects paths that try to leave
the account’s folder. There is no option to include credentials; sign in on
the new computer with agent-switch add or agent-switch login.