Documentation

First setup

By jhyunwoo
Last updated November 29, 2026
Checked with ccam 0.16.1 and Claude Code 2.1.302

On this page

This page takes you from a fresh install to accounts you can switch between in one word. Install ccam first; it needs Claude Code. If you already use Claude Code, read Already using ~/.claude? at the end of this page before you start.

1. Add your first account

ccam add

The wizard asks for a name such as personal or work, which items the account should share with your other accounts, and whether to create a shortcut command (see step 3). Then it runs claude auth login, which opens the browser so you can sign in. On a remote machine, your browser may end up on an http://localhost:…/callback page that does not load; paste that address into the terminal and ccam finishes the sign-in. When sign-in is complete, you see:

✓ personal (me@example.com) added
  no shortcut (add one with `ccam shortcut personal ccpersonal`)

2. Bring over your existing settings

If you have used Claude Code before, your settings, CLAUDE.md and extensions are in ~/.claude, and your MCP servers are in ~/.claude.json. Copy them into the shared default group so that every account gets them:

ccam migrate

ccam shows what it will copy and asks first. It only reads ~/.claude, never copies a login, and leaves conversation history out unless you add --history. See copying an existing setup for details.

3. Add the second account

ccam add work

The wizard skips the name, which you gave on the command line, and shows the groups to join with default checked. This time, give the account a shortcut command of its own, such as ccwork, so you can start it with one word. After the groups, the wizard asks:

 Create a shortcut command for work? [y/N]
 A command such as ccwork that opens Claude Code as this account.

Press y, then type a name, or press Enter to use the suggested one:

 Shortcut name [ccwork]: █
 a-z, 0-9, '.', '-' and '_'; Enter alone uses ccwork

Then sign in with the other account in the browser. ccam confirms the account and its shortcut:

✓ work (work@example.com) added
  shortcut: ccwork

4. Switch accounts

ccam work starts Claude Code as the work account. If you skipped the shortcut question, add a shortcut at any time:

$ ccam shortcut work ccwork
✓ shortcut for work: ccwork

Each of these commands now starts Claude Code as the work account (2 is its number in ccam list):

ccwork
ccam work
ccam 2

Running ccam alone opens the dashboard: move to an account with the arrow keys or its number, then press Enter. Switching accounts shows every way to start an account.

Everything after the shortcut or the account name goes to Claude Code unchanged, so you keep using the options you know:

ccwork --resume
ccam work -p "fix the failing test" --output-format json
cat error.log | ccwork -p "what caused this?"

5. Turn on the plugin and the status line

Two more steps make usage limits easier to handle. First, install the ccam plugin inside Claude Code:

/plugin install ccam --marketplace jhyunwoo/ccam

The plugin tells you when a session stops at a usage limit, records the limit so ccam does not choose that account again too early, adds /ccam:switch and lets Claude hand parts of a task to your other accounts with ccam agent. Install it once: the default group shares extensions and settings.json, so every account in it gets the plugin. ccam ext shows which accounts load it (Claude Code plugin).

Then put the account name and its usage in Claude Code's status line:

ccam statusline install

The status line now reads, for example, [work] · Opus · 5h 24% · 7d 41%, so a limit does not come as a surprise.

6. Choose what to share

By default, MCP servers, settings.json, the global CLAUDE.md and extensions (agents, commands, skills and plugins) are shared between accounts through the default group. Conversation history is not. Add it to the group if you want to continue conversations across accounts:

ccam group set default --add history

ccam shows what it will move for each account before it changes anything. See sharing between accounts for details.

7. Check usage and keep going at the limit

ccam usage
ccam next --continue

ccam usage shows the 5-hour and weekly usage of every account (Usage of every account). When an account reaches its limit, ccam next --continue opens the same conversation as the next account, and /ccam:switch does it from inside Claude Code (Continuing at the limit). On Linux and macOS, automatic switching can make the move for you. For a long task, Claude can also hand parts of it to your other accounts with ccam agent.

Already using ~/.claude?

Register it instead of signing in again:

ccam import

The folder stays where it is, and plain claude keeps working as before.