Ccswitch banner
2hmad 2hmad

Ccswitch

Development community

Description

Switch between multiple Claude Code accounts with one command — MCP servers, plugins, skills and session history stay shared.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

ccswitch

Switch between multiple Claude Code accounts with one command — without re-running `/login` every time, and without splitting your setup into isolated copies.

$ ccswitch list
  ACCOUNT      EMAIL                          TOKEN
* work         you@example.com                valid 8h 12m
  personal     you@example.net                valid 6h 40m
  client       you@example.org                expired 3h ago

$ ccswitch personal
switched to personal  (you@example.net)  valid 6h 40m

$ claude          # runs as personal

Why

Claude Code stores one signed-in account at a time. The usual workaround is to give each account its own `CLAUDE_CONFIG_DIR`, but that isolates *everything* — your MCP servers, plugins, skills, agents, slash commands, session history and `CLAUDE.md` all get duplicated per account, and each copy drifts.

ccswitch takes the opposite approach. One `~/.claude`, shared by every account. Only the credential and the identity it belongs to are swapped.

Separate CLAUDE_CONFIG_DIR ccswitch
MCP servers duplicated per account shared
Plugins & marketplaces duplicated per account shared
Skills, agents, commands duplicated per account shared
Session history duplicated per account shared
settings.json, CLAUDE.md duplicated per account shared
Accounts active at once many one

That last row is the trade-off. If you need two accounts running *simultaneously* in different terminals, use `CLAUDE_CONFIG_DIR` instead — ccswitch changes which account `claude` runs as, globally.

Install

curl -fsSL https://raw.githubusercontent.com/2hmad/ccswitch/main/install.sh | bash

Or manually:

git clone https://github.com/2hmad/ccswitch
cd ccswitch && ./install.sh

Requires `bash`, `python3`, and Claude Code. Linux is supported today; see [Platform support](#platform-support).

Usage

Sign each account in once:

ccswitch login work        #