# ccam (Claude Code Account Manager)

> 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. 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. `curl -fsSL https://ccam.dev/install.sh | sh`
- ccam is an unofficial project and is not affiliated with or endorsed by Anthropic.

Website: https://ccam.dev/
Source code: https://github.com/jhyunwoo/ccam

Documentation in one file: https://ccam.dev/llms-full.txt

Every page listed below is plain Markdown; its HTML version is the same address without `.md`.

Main commands (all of them: https://ccam.dev/en/docs/commands.md):

- `curl -fsSL https://ccam.dev/install.sh | sh` (Linux, macOS) or `irm https://ccam.dev/install.ps1 | iex` (Windows PowerShell): install ccam; Claude Code must be installed first
- `ccam add [name]`: Add an account: config folder, login and an optional shortcut
- `ccam <name|number> [claude arguments]`: Start Claude Code as that account; arguments are passed through unchanged
- `ccam`: Open the dashboard: accounts, agents, groups, folders, extensions, sign-ins and health
- `ccam list`: List accounts
- `ccam usage`: Show 5-hour and weekly usage of every account
- `ccam next [--auto] [--continue [--brief]] [-- claude args]`: Open the next account; --continue carries the conversation over, --auto picks the most room
- `ccam --fallback [name|number] -p [claude arguments]`: For -p runs: at a usage limit, run the same command again as the account with the most room
- `ccam pick [--json] [--model <model>] [--max-usage N] [--strategy S] [--wait[=D]]`: Print the account with the most room, for scripts and parallel workers
- `ccam group`: Create and change groups, which set what their accounts share; every change shows a plan first
- `ccam folder [name|number] [folder]`: Use an account in a folder and its subfolders when no account is named
- `ccam doctor`: Check links, permissions, logins and versions, and repair
- `ccam update`: Update ccam to the latest release after checking its checksum

## Getting started

- [Install ccam](https://ccam.dev/en/docs/install.md): Install ccam on Linux, macOS or Windows with one command, a .deb package or go install, and update it with ccam update. Claude Code must be installed first.
- [First setup](https://ccam.dev/en/docs/quick-start.md): Set up ccam from the start: add your Claude Code accounts, bring over your settings, give each a shortcut such as ccwork, turn on the plugin and check usage.

## Core features

- [Adding accounts](https://ccam.dev/en/features/accounts.md): Add Claude Code accounts with ccam add, sign in on a remote machine, register folders you already have with ccam import, and list, rename or remove accounts.
- [Switching accounts](https://ccam.dev/en/features/launch.md): Start Claude Code as any account with ccam <name>, its number, a shortcut such as ccwork or the dashboard. Arguments go to claude unchanged.
- [Usage of every account](https://ccam.dev/en/features/usage.md): ccam usage shows the 5-hour, weekly and model limits of every Claude Code account at once, and ccam statusline puts the account and its usage in Claude Code.
- [Continuing at the limit](https://ccam.dev/en/features/next.md): When an account hits its usage limit, ccam next --continue carries the conversation to another account, /ccam:switch hands it on and --fallback reruns -p jobs.
- [Automatic switching](https://ccam.dev/en/features/auto-switch.md): With auto_switch on, ccam moves a Claude Code session stopped at its usage limit to another of your accounts with room and continues the conversation there.
- [Subagents on other accounts](https://ccam.dev/en/features/agent.md): ccam agent runs part of a Claude Code task as another of your accounts and returns Claude's reply, so one long task uses the usage of several accounts.

## How it works

- [How ccam works](https://ccam.dev/en/docs/how-it-works.md): How ccam keeps each Claude Code account in its own folder, starts Claude Code in about 4 ms, shares files through links and knows every account's usage.
- [How ccam picks an account](https://ccam.dev/en/docs/account-selection.md): When you name no account, ccam chooses one by folder, by turn or by usage. The rules behind ccam next, --fallback, ccam pick, ccam agent and auto_switch.
- [Sharing between accounts](https://ccam.dev/en/features/share.md): ccam groups share MCP servers, settings.json, CLAUDE.md, extensions and conversation history between Claude Code accounts, while every login stays separate.

## More features

- [Shortcut commands](https://ccam.dev/en/features/shortcuts.md): Give an account its own command such as ccwork with ccam shortcut, and recreate the links in ~/.local/bin with ccam shims install.
- [Accounts by folder](https://ccam.dev/en/features/folder.md): ccam folder makes a folder and everything below it use one account when you start Claude Code without an account name, such as work for your company code.
- [The dashboard](https://ccam.dev/en/features/dashboard.md): ccam on a terminal opens a full-screen dashboard of accounts, groups, folder rules, extensions and checks; every change shows its plan first.
- [Shared MCP servers](https://ccam.dev/en/features/mcp.md): Keep one list of MCP servers per group with ccam mcp add, add-json, list, remove and import, passed with --mcp-config or synced into each account.
- [Copying an existing setup](https://ccam.dev/en/features/migrate.md): Copy the settings, CLAUDE.md, extensions and MCP servers of an existing ~/.claude into a ccam group with ccam migrate.
- [Picking an account for scripts](https://ccam.dev/en/features/pick.md): ccam pick prints the account with the most room for a script, gives workers started together different accounts, and exits 75 when none has room.
- [Background sessions of every account](https://ccam.dev/en/features/agents.md): ccam agents lists the Claude Code background agents and open sessions of all your accounts in one table, and ccam attach opens one by its ID.
- [API key accounts](https://ccam.dev/en/features/api.md): ccam add --api adds an API key account for Anthropic's API or a gateway; the key is read at launch from a variable or a command, never stored.
- [Inspecting extensions](https://ccam.dev/en/features/ext.md): ccam ext shows the skills, commands, plugins, MCP servers and hooks each account loads, where each comes from, and what is broken.
- [Checking and repairing](https://ccam.dev/en/features/doctor.md): Check share links, file permissions, logins and the Claude Code version with ccam doctor, and repair what is safe to repair with ccam doctor --fix.
- [Updating ccam](https://ccam.dev/en/features/update.md): ccam update replaces ccam with the latest GitHub release after a SHA-256 check; --check only reports and --version installs a given release tag.

## Guides

- [Use multiple Claude Code accounts on one computer](https://ccam.dev/en/guides/multiple-claude-code-accounts.md): Run several Claude Code accounts side by side with CLAUDE_CONFIG_DIR, by hand with shell aliases or automatically with ccam, and switch between them.
- [What to do when Claude Code hits its usage limit](https://ccam.dev/en/guides/usage-limit-workflow.md): Wait for the reset or continue the same conversation on another Claude Code account right away. How the 5-hour and weekly limits work, step by step.
- [Using Remote Control with ccam](https://ccam.dev/en/guides/remote-control.md): Start Claude Code Remote Control as any account with ccam <name> rc, see which options apply, why ccam offers to copy shared MCP servers, and fix problems.

## Reference

- [Command reference](https://ccam.dev/en/docs/commands.md): Every ccam command and option, from ccam add and ccam <name> to ccam usage, ccam next and ccam doctor.
- [CLAUDE_CONFIG_DIR explained](https://ccam.dev/en/guides/claude-config-dir.md): What CLAUDE_CONFIG_DIR does in Claude Code, what is stored in the folder, where macOS keeps the login, and which files can be shared between accounts.
- [ccam compared with shell aliases](https://ccam.dev/en/compare/aliases.md): Shell aliases with CLAUDE_CONFIG_DIR compared with ccam for running several Claude Code accounts, feature by feature.
- [ccam and other Claude Code account switchers](https://ccam.dev/en/compare/account-switchers.md): How ccam compares with claude-swap, CCS, clausona, clauth, CAAM, cux and other tools for switching Claude Code accounts, and which approach fits which use.
- [Frequently asked questions](https://ccam.dev/en/docs/faq.md): Answers about ccam, Claude Code accounts, usage limits, sharing, privacy and supported systems.

## Blog

- [Introducing ccam](https://ccam.dev/en/blog/introducing-ccam.md): Why ccam exists, what it does for people with several Claude Code accounts, and how it stays out of the way.
