{"id":37230398,"url":"https://github.com/realiti4/claude-swap","last_synced_at":"2026-04-14T19:00:45.911Z","repository":{"id":332065239,"uuid":"1132063646","full_name":"realiti4/claude-swap","owner":"realiti4","description":"Switch between multiple Claude Code accounts","archived":false,"fork":false,"pushed_at":"2026-04-14T10:14:39.000Z","size":264,"stargazers_count":137,"open_issues_count":6,"forks_count":15,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-14T12:15:18.291Z","etag":null,"topics":["claude","claude-code"],"latest_commit_sha":null,"homepage":"","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/realiti4.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-01-11T08:47:31.000Z","updated_at":"2026-04-14T11:04:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/realiti4/claude-swap","commit_stats":null,"previous_names":["realiti4/claude-swap"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/realiti4/claude-swap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realiti4%2Fclaude-swap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realiti4%2Fclaude-swap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realiti4%2Fclaude-swap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realiti4%2Fclaude-swap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/realiti4","download_url":"https://codeload.github.com/realiti4/claude-swap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realiti4%2Fclaude-swap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31810741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["claude","claude-code"],"created_at":"2026-01-15T03:38:14.958Z","updated_at":"2026-04-14T19:00:45.906Z","avatar_url":"https://github.com/realiti4.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# claude-swap\n\nMulti-account switcher for Claude Code. Easily switch between multiple Claude accounts without logging out. Works with both the Claude Code CLI and the VS Code extension.\n\n## Installation\n\n### Using uv (recommended)\n\n```bash\nuv tool install claude-swap\n```\n\n### Using pipx\n\n```bash\npipx install claude-swap\n```\n\n### From source\n\n```bash\ngit clone https://github.com/realiti4/claude-swap.git\ncd claude-swap\nuv sync\nuv run cswap --help\n```\n\n## Usage\n\n### Add your first account\n\nLog into Claude Code with your first account, then:\n\n```bash\ncswap --add-account\n```\n\n### Add more accounts\n\nLog in with another account, then:\n\n```bash\ncswap --add-account\n```\n\n### Switch accounts\n\nRotate to the next account:\n\n```bash\ncswap --switch\n```\n\nOr switch to a specific account:\n\n```bash\ncswap --switch-to 2\ncswap --switch-to user@example.com\n```\n\n**Note:** Restart Claude Code (or close and reopen the VS Code extension tab) after switching for the new account to take effect.\n\n### Refresh expired tokens\n\nIf an account's token expires, log back into Claude Code with that account and re-run:\n\n```bash\ncswap --add-account\n```\n\nThis will update the stored credentials without creating a duplicate.\n\n### Other commands\n\n```bash\ncswap --list                    # Show all accounts with 5h/7d usage and reset times\ncswap --status                  # Show current account\ncswap --add-account --slot 3    # Add account to a specific slot (prompts before overwrite)\ncswap --remove-account 2        # Remove an account\ncswap --purge                   # Remove all claude-swap data\n```\n\n## Tips\n\n- **Continuing sessions after switching:** You can resume the same Claude Code session after switching accounts. Close Claude Code or the VS Code extension tab, run `cswap --switch` in any terminal, then reopen and select your previous session. Note that the first message on the new account may use extra usage as the conversation cache rebuilds for that account.\n\n## How it works\n\n- Backs up OAuth tokens and config when you add an account\n- Swaps credentials when you switch accounts\n- Account credentials stored securely using platform-appropriate methods\n\n## Data locations\n\n| Platform | Credentials | Config backups |\n|----------|-------------|----------------|\n| Windows | Windows Credential Manager | `~/.claude-swap-backup/` |\n| macOS | macOS Keychain | `~/.claude-swap-backup/` |\n| Linux | File-based (`~/.claude-swap-backup/credentials/`) | `~/.claude-swap-backup/` |\n\n## Uninstall\n\nRemove all data:\n\n```bash\ncswap --purge\n```\n\nThen uninstall the tool:\n\n```bash\nuv tool uninstall claude-swap\n# or\npipx uninstall claude-swap\n```\n\n## Requirements\n\n- Python 3.12+\n- Claude Code installed and logged in\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealiti4%2Fclaude-swap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealiti4%2Fclaude-swap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealiti4%2Fclaude-swap/lists"}