/ccam:ccamfrom ccam
Manages multiple Claude Code accounts via ccam: checks usage limits, switches accounts, and distributes work across accounts. Useful when hitting rate limits or running parallel tasks.
Ships in ccam. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
ccam gives each Claude Code account its own CLAUDE_CONFIG_DIR and starts Claude Code as the account you name. It is installed as the ccam command. These commands are safe to run from this session; they only read, except where noted.
ccam usage --json # 5-hour and weekly usage of every account
ccam list --json # accounts, emails, what they share
In the JSON, limits.five_hour.percent and limits.weekly.percent are 0-100, and resets_at says when each window starts over. status is api for API key accounts, which have no limits.
You cannot move this session to another account yourself, and Claude Code does not run /ccam:switch from a prompt you schedule; the user can. Tell them to type /ccam:switch (or /ccam:switch <account>): it notes this conversation and ends the turn. With relay = true (or auto_switch = true, on Linux and macOS) in ccam's config.toml, ccam then ends this session and continues the conversation on the other account by itself (on Windows, once they type /exit), with the permission mode, effort level, agent and options such as --add-dir it had. For an account they name in another organization than this session's, ccam does not end the session: they type /exit, and ccam asks them on the terminal before it moves the conversation. It asks the same before an account of another organization that it picks itself, which only cross_org = true allows. Otherwise they type /exit and run, in this folder:
ccam next --continue # as the account /ccam:switch named, else the next one (asks first for another organization)
ccam next --auto --continue # or the account with the most room
When a session stops at a usage limit, the ccam plugin notes it the same way, and --auto leaves that account out. If the accounts share conversation history, this very conversation continues; if not, Claude Code copies it into the new account and the original stays as it is.
ccam next --continue --brief starts a new conversation as the other account instead, which reads a summary ccam writes of this one without a model rather than all of it: that costs the other account much less, but details are left out. Suggest it for long conversations.
With auto_switch = true in ccam's config.toml (Linux, macOS; off by default), ccam continues the conversation on another account by itself when Claude Code stops the session at a usage limit and another account like this one has room. The new session then starts with: "Your usage limit was reached and ccam moved this conversation to another account. Continue the task you were working on when the limit was reached; do not repeat work that is already complete." When you see that message, carry on from where the conversation stopped. A subagent that stops at the limit counts too, also while you wait for it; the new session then starts with: "A subagent hit your usage limit and ccam moved this conversation to another account. The subagents, workflows and background commands that were running then have stopped, and their results may be missing: run again what the task still needs, then continue it; do not repeat work that is already complete." Background shells, dev servers and agents started before the move have stopped; start again only what the task still needs.
ccam agent runs a task with claude -p as another of the user's accounts, in this folder, and prints Claude's last reply: a subagent that uses that account's usage instead of this session's, so the task as a whole lasts longer. Use it when the user asks you to use their other accounts (in this conversation or in their CLAUDE.md); otherwise use your own subagents.
ccam agent "<the task, with everything the agent needs to know>"
run_in_background: true: an agent can take longer than a command in the foreground may run. You are told when it ends; its output then holds the agent's last reply and ccam's lines. Agents started together get different accounts.ccam agent --resume <id> "<follow-up>" continues that conversation, with what the agent learned, also after it stopped.--wait waits for an account to reset.--model opus sets the agent's model; --json prints {account, session_id, result, is_error, accounts}.--resume <id>.For non-interactive work, start a new claude -p through ccam. Pick the account with ccam pick; calls made close together return different accounts, so parallel workers spread out:
ccam "$(ccam pick)" -p "fix the failing test in pkg/parse" --output-format json
Or let ccam switch when an account hits its limit mid-job:
ccam --fallback "$(ccam pick)" -p "…" --output-format json
--wait (ccam pick --wait, ccam --fallback --wait …), which waits for the first account to reset, up to 5 hours by default.ccam pick --model opus also counts that model's weekly limit.--fallback run is held until it finishes, so stream-json arrives at the end.ccam ext # what every account loads, and from where
ccam ext work --json
ccam doctor # broken share links, logins, permissions
ccam ext shows each skill, command, agent, plugin, MCP server and hook per account, with its source (a share group name, account, local for one folder only, or project), and lists problems such as broken links, skill folders without SKILL.md, MCP servers defined differently in two places or only in one account, and servers another account is signed in to. Suggest ccam doctor --fix for broken share links and ccam mcp import <account> <server> to share a server the account added on its own.
claude mcp add gives one account a server for one folder only; ccam mcp add (or claude mcp add -s user, then ccam mcp import) shares it./mcp in a session of that account; ccam never copies sign-ins. claude.ai connectors belong to each claude.ai account.mcp_strategy (flag), claude mcp list does not show the group's servers (sessions get them with --mcp-config): use ccam ext or ccam mcp list to check. Under mcp_strategy = "sync" ccam copies them into the account's .claude.json, so claude mcp list shows them.~/.claude.json load in no account until ccam migrate --mcp copies them; suggest it, do not run it..credentials.json or any token; ccam never needs them in a conversation.ccam add, ccam login, ccam group (other than ccam group and ccam group show, which only read), ccam remove or ccam migrate yourself: they log in through a browser or move files. Suggest the command to the user instead.auto_switch or relay in ccam's config.toml yourself; that is the user's choice. On Team and Enterprise seats auto_switch moves work between seats of the organization, which Anthropic's seat rules may not allow: point the user to https://ccam.dev/en/features/next/#auto-switch.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jhyunwoo/ccam --plugin ccamOther plugins' skills for the same job