# cc-account-switcher

> Account Switcher for Claude Code

Source: https://talira.ai/catalog/cc-account-switcher-vd662ja9
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / ai coding / account switching](https://talira.ai/categories/developer-tools/ai-coding/account-switching)
- Platforms: macos, linux, cli[^1]
- Licence: MIT[^2][^3]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^1]
- Creator: Shuna Maekawa (fairy-pitta)

cc-account-switcher (`ccs`) is a Bash script that saves several [Claude Code](https://talira.ai/catalog/claude-code-jqv5000a.md) logins and switches between them, keeping themes, settings and history. Its rate-limit auto-switch installs a PreToolUse hook that checks the 5-hour usage before each tool call and switches to the next account past a threshold (default 80%), then tells you the `claude --resume` command to continue; `ccs run` retries a headless `claude -p` run on the next account after a 429. It also maps directories to accounts, adds custom endpoints ([OpenRouter](https://talira.ai/catalog/openrouter-7b9zt83p.md), gateways) as accounts, runs accounts in parallel through `CLAUDE_CONFIG_DIR` on Linux and WSL, and stores credentials in the [macOS](https://talira.ai/catalog/macos-8swyggxb.md) Keychain or protected files. It's a fork of ming86/cc-account-switcher, which is archived.

## Links

- GitHub: https://github.com/fairy-pitta/cc-account-switcher

## Problems it solves

- a small shell script to save and swap my Claude Code logins
- switch Claude Code to my work account automatically when I cd into my work directory
- move to the next Claude account when 5-hour usage passes a threshold, without a background process
- retry a headless claude -p run on another account when it fails with a 429
- run orchestrator agents on different Claude accounts at the same time on Linux
- add OpenRouter or a company gateway as another switchable Claude Code account
- carry the current Claude conversation across an account switch
- a status line showing which Claude account is active and its 5-hour usage
- preview what a Claude account switch will change before doing it
- name my Claude accounts work and personal and switch by name
- roll back automatically if a Claude account switch fails halfway

## Features

- add, remove, list and rotate accounts; switch by number, email or profile name
- rate-limit auto-switch through a PreToolUse hook (default 80% of the 5-hour window)
- ccs run: retry a failed command on the next account after a rate limit
- directory-based switching
- custom endpoints as switchable accounts
- --resume handoff, forking or keeping the session id
- parallel isolation with CLAUDE_CONFIG_DIR (ccs exec, Linux and WSL)
- optional status line with the active account and 5-hour usage
- dry-run mode and automatic rollback
- health checks, status and per-account usage statistics
- credentials in the macOS Keychain or protected files

## Limitations

- Doesn't run different accounts in parallel on macOS: Claude Code rejects a copied token in an isolated config dir[^1]
- Doesn't support native Windows: it works on macOS, Linux and WSL[^1]

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.33 out of 1.
Signals: maintenance 0.45, adoption 0.37, momentum 0.29, community 0.24, backing 0.20, extensibility 0.20.

- last commit 3 months ago
- latest release v0.7.0 3 months ago
- 67 GitHub stars
- 3 contributors
- created by Shuna Maekawa (fairy-pitta)

## Related

- Works with [Claude Code](https://talira.ai/catalog/claude-code-jqv5000a.md)

## Alternatives

- [claude-swap](https://talira.ai/catalog/claude-swap-nspe4ndx.md): Multi-account switcher for Claude Code
- [Claude account rotator](https://talira.ai/catalog/claude-account-rotator-e7evstww.md): Claude Code mod: rotates between your Claude logins as their usage limits fill
- [clauth](https://talira.ai/catalog/clauth-7t9x9vy6.md): Claude Code multi-account manager, usage monitor (CLI, TUI & cross-account delegation via MCP)
- [cux](https://talira.ai/catalog/cux-asdkysrq.md): Run multiple Claude Code accounts as one
- [Claude account rotator (Nathan Broadbent's fork)](https://talira.ai/catalog/claude-account-rotator-nathan-broadbent-s-fork-hd1dc51t.md): The account rotator with one coordinator for every session, a menu bar app and weekly-limit rotation
- [claude-multi-desktop](https://talira.ai/catalog/claude-multi-desktop-wz3vek0n.md): Run multiple Claude Desktop accounts at the same time on a Mac

## Sources

[^1]: https://github.com/fairy-pitta/cc-account-switcher (checked 20 Nov 2026)
[^2]: https://github.com/fairy-pitta/cc-account-switcher/blob/main/LICENSE (checked 20 Nov 2026)
[^3]: https://registry.npmjs.org/@fairy-pitta/cc-account-switcher (checked 20 Nov 2026)
