AI Switcher is an account switching tool for coding agent users. Its core command-line program is aisw, released as open source and written in Rust. It solves the problem, when using multiple Claude Code, Codex CLI, Gemini CLI, or Antigravity CLI accounts on the same computer at the same time, of needing to repeatedly log out, copy hidden credential files, and having difficulty confirming which account is currently in effect.
Purpose and main capabilities
- Save each login as a named profile, such as personal, work, work-api-key, and then activate the desired account with a single command.
- Support switching a single agent individually, and also support switching all four agents at once; you can also use contexts to combine differently named profiles by purpose, such as work, personal, client projects, and switch them all as a single transaction.
- Support adding accounts through each provider's own OAuth login, and also saving API keys, or directly keeping the currently logged-in account without needing to log out.
- Can bind folders, repositories, or Git remotes to a context; a workspace guard will warn or block starting the corresponding agent when the account does not match, and print the fix command. A single Git remote rule can cover all repositories of a GitHub organization, including repositories cloned later.
- Provide a Verify feature that compares saved profiles with the accounts actually used by each agent.
- Back up before every switch and roll back if writing fails, avoiding ending up in a half-switched state.
How to use After installing aisw, run aisw init to save the currently logged-in account as a named profile. To add an account, use commands such as aisw add claude <name>, aisw add codex <name>; to switch, use forms such as aisw use claude <name>. Switching only takes effect for new agent processes started afterward and does not affect sessions already running, so you should start a new session after switching. In addition to the command line, AI Switcher Desktop is also provided (supporting macOS, Windows, Linux, with ⌘K quick switching), as well as VS Code and Cursor extensions that can display the current context in the status bar and switch from Quick Pick.
Credential handling and limitations The tool runs only locally, uses the credential files that each agent originally reads and the operating system keychain, does not route model requests, does not read prompts, does not upload or sync credentials, and does not collect telemetry. It does not create accounts or bypass providers' login flows; authentication is still completed by each provider. Switching always requires the user to actively execute a command; automatic behavior is limited to the workspace guard's checks and warnings.
Applicable scenarios Suitable for developers who need to frequently switch coding agent accounts among work, personal, and client projects, especially scenarios where there are multiple Claude Code or Codex CLI accounts on the same computer, where they want to prevent a personal login from being mistakenly used for a client repository, or where they need to unify accounts by GitHub organization.
Other information The specific installation commands, how to obtain the desktop app and extensions, platform details, and FAQ answers are not fully provided in the materials and are not yet available.