{"id":51312570,"url":"https://github.com/recepzgrmh/ccswitch","last_synced_at":"2026-07-01T05:03:49.879Z","repository":{"id":356278056,"uuid":"1231809203","full_name":"recepzgrmh/ccswitch","owner":"recepzgrmh","description":"Instantly switch between multiple Claude Code accounts — no browser, no login codes. macOS Keychain-based session manager.","archived":false,"fork":false,"pushed_at":"2026-05-07T12:03:19.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-07T12:08:45.662Z","etag":null,"topics":["account-switcher","claude","claude-code","cli","developer-tools","keychain","macos","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/recepzgrmh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-07T10:01:08.000Z","updated_at":"2026-05-07T11:59:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/recepzgrmh/ccswitch","commit_stats":null,"previous_names":["recepzgrmh/ccswitch"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/recepzgrmh/ccswitch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recepzgrmh%2Fccswitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recepzgrmh%2Fccswitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recepzgrmh%2Fccswitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recepzgrmh%2Fccswitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/recepzgrmh","download_url":"https://codeload.github.com/recepzgrmh/ccswitch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recepzgrmh%2Fccswitch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34993439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["account-switcher","claude","claude-code","cli","developer-tools","keychain","macos","python"],"created_at":"2026-07-01T05:03:49.178Z","updated_at":"2026-07-01T05:03:49.871Z","avatar_url":"https://github.com/recepzgrmh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ccswitch\n\n**Instantly switch between multiple Claude Code accounts — no browser, no login codes.**\n\nIf you use more than one Claude account (work, personal, backup), you know the pain: hit your rate limit, open the terminal, type `claude auth login`, wait for the browser, copy the verification code... every single time.\n\n`ccswitch` saves each account's session to macOS Keychain and swaps the active credentials in under a second.\n\n```\n$ ccswitch use work\n✓ switched to 'work' (work@example.com, pro)\n```\n\n---\n\n## How it works\n\nClaude Code stores its auth token in macOS Keychain under `Claude Code-credentials`. `ccswitch` saves a named snapshot of that entry for each account and hot-swaps it when you switch — no re-authentication needed.\n\nYour tokens never leave your machine. Everything goes through the macOS Keychain API (`security`).\n\n---\n\n## Requirements\n\n- macOS (uses Keychain)\n- [Claude Code](https://claude.ai/code) CLI installed\n- Python 3.8+\n\n---\n\n## Installation\n\n### Homebrew (recommended)\n\n```bash\nbrew tap recepzgrmh/ccswitch\nbrew install ccswitch\n```\n\n### One-liner\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/recepzgrmh/ccswitch/main/install.sh | bash\n```\n\n### Manual\n\n```bash\ngit clone https://github.com/recepzgrmh/ccswitch.git\ncd ccswitch\nbash install.sh\n```\n\n\u003e Add `~/.local/bin` to your `$PATH` if prompted.\n\n---\n\n## Usage\n\n### Save your current account\n\n```bash\nccswitch save main\n# ✓ saved as 'main' (you@example.com, pro)\n```\n\n### Add a new account\n\nOpens a browser for login, then saves the session automatically.\n\n```bash\nccswitch add work\n# Browser opens → log in → session saved as 'work'\n```\n\n### Switch accounts instantly\n\n```bash\nccswitch use work\n# ✓ switched to 'work' in \u003c1 second, no browser\n```\n\n### List saved profiles\n\n```bash\nccswitch list\n\n  PROFILE            ACCOUNT                        TYPE       SAVED\n  ────────────────────────────────────────────────────────────────────────\n  main               you@example.com                pro        2026-05-07 10:00\n  work               work@company.com               pro        2026-05-07 10:05 ◀ active\n  backup             backup@gmail.com               free       2026-05-07 10:10\n```\n\n### Show active account\n\n```bash\nccswitch status\n\n  ── Active session ──────────────────────────────\n  Account  : work@company.com\n  Profile  : work\n  Plan     : pro (default_claude_ai)\n  Expires  : 2026-06-15 12:00 UTC\n\n  ── Saved profiles ──────────────────────────────\n   ◀ work             work@company.com             pro\n     main             you@example.com              pro\n     backup           backup@gmail.com             free\n```\n\n### Remove a profile\n\n```bash\nccswitch remove backup\n# ✓ profile 'backup' removed\n```\n\n---\n\n## Typical workflow\n\n```bash\n# First time setup — save all your accounts\nccswitch save main\nccswitch add work      # opens browser for second account\nccswitch add backup    # opens browser for third account\n\n# Day to day — hit rate limit on 'main', switch instantly\nccswitch use work\n\n# Check where you are\nccswitch status\n```\n\n---\n\n## Security\n\n- Credentials are stored in **macOS Keychain** under the service name `ccswitch-profiles`.\n- The tool only calls the standard `security` CLI — no network requests, no third-party libraries.\n- Tokens are never written to disk in plaintext.\n\n---\n\n## Uninstall\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/recepzgrmh/ccswitch/main/uninstall.sh | bash\n```\n\nOr if installed via Homebrew:\n\n```bash\nbrew uninstall ccswitch\nbrew untap recepzgrmh/ccswitch\n```\n\n---\n\n## FAQ\n\n**Does this work with Claude Max / Pro / Free?**  \nYes. The tool works with any Claude Code subscription type.\n\n**Will switching break anything mid-session?**  \nNo. Claude Code reads credentials at the start of each request, so switching takes effect on the next command.\n\n**Can I use this on Linux?**  \nNot yet — Linux doesn't have Keychain. A `libsecret` / `pass` backend is a potential future addition. PRs welcome.\n\n**Is this official / supported by Anthropic?**  \nNo. This is an unofficial community tool that interacts with Claude Code's local credential storage.\n\n---\n\n## Troubleshooting\n\nSee [TROUBLESHOOTING.md](TROUBLESHOOTING.md) for common issues.\n\n---\n\n## Contributing\n\nIssues and PRs are welcome. Keep it simple — the goal is a single-file script with no dependencies beyond the Python standard library and macOS `security`.\n\n---\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecepzgrmh%2Fccswitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frecepzgrmh%2Fccswitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecepzgrmh%2Fccswitch/lists"}