ccam — Claude Code Account Manager
English · 한국어 · Website: https://ccam.dev
- ccam is a free, open-source command-line tool that lets you use several Claude Code accounts on one computer and switch between them with one command.
- Each account keeps its own login in a separate CLAUDE_CONFIG_DIR, while MCP servers, settings, CLAUDE.md, extensions and conversation history can be shared between accounts, so you can continue a conversation on another account when one reaches its usage limit.
- Install it on Linux, macOS or Windows with one command, then run ccam add for each account.
- ccam is an unofficial project and is not affiliated with or endorsed by Anthropic.
ccam is a single Go binary for adding and switching between several Claude Code accounts in a terminal on Linux, macOS or Windows. Each account gets its own CLAUDE_CONFIG_DIR, so logins stay separate, and you choose per item whether MCP servers, settings, the global CLAUDE.md, extensions and conversation history are shared.
Check the terms first. Whether using several accounts is allowed depends on each account's Anthropic terms (the Consumer Terms for Pro and Max, the Commercial Terms for Team and Enterprise, the Usage Policy for all) and your organization's policy. ccam does not raise, merge or hide an account's limits: every account still stops at its own. ccam carries your work on as another of your accounts when you ask, or by itself at a limit when you turn on auto_switch (Linux and macOS). Whether that is allowed for your accounts is your call.
Team and Enterprise seats. Automatic choice (ccam next, --fallback, ccam pick, ccam agent, the dashboard's n, and auto_switch when you turn it on) also switches between seats of the same Claude Team or Enterprise organization. Anthropic's help center says "Each seat on a Team plan is assigned to one named individual, and only that person may use it" and "Users can't route their work through another user's account to use that user's remaining usage" (Team plans; likewise for Enterprise plans). Using automatic choice between seats may therefore violate Anthropic's terms. Whether you use it there is your call: check with your organization and Anthropic before you rely on it. Personal plans (Pro, Max) are covered by the note above.
All program output (messages, prompts, help) is in English.
Why ccam
- Logins are never copied. Each account signs in once in its own folder, and Claude Code renews its own token there. Switching never logs an account out, and several accounts can run at once.
- Nothing runs beside Claude Code by default. ccam
execs into claude: no wrapper, proxy or daemon, and about 4 ms added at launch. (Windows has no exec; there ccam waits for Claude Code and passes its exit code on.) With relay = true (or auto_switch = true, on Linux and macOS) in config.toml, ccam waits beside each interactive session instead, so it can carry the conversation on as another account.
- Groups decide what is shared. A group names the items it shares (MCP servers, settings, CLAUDE.md, extensions, history) and its accounts; an account can be in several. MCP servers go through
--mcp-config, so a launch leaves .claude.json alone (ccam writes it, with a backup, only when an account leaves or rejoins MCP sharing, on ccam mcp import, and for Remote Control).
- Changes are planned and backed up. A plan before any files move (naming the files inside folders that differ), backups,
--dry-run, atomic writes, and ccam doctor --fix, which also finishes a change that stopped halfway.
- Limits handled for scripts too.
ccam --fallback work -p "…" runs the same command again as the account with the most room when work reaches its limit, and ccam pick gives each parallel worker its own account; both exit with 75 (or --wait) when nobody has room. Interactive sessions get a ccam next --auto --continue hint in the status line, and with auto_switch = true (Linux, macOS; off by default, experimental) ccam moves a session that Claude Code stops at its limit to another account with room by itself. Within one Team or Enterprise organization these choices, auto_switch included, also move work between seats, which may violate Anthropic's terms (see "Team and Enterprise seats" above).