Claude Code · Tested with aisw v0.3.10 · Desktop v0.2.1 · Updated July 17, 2026
How to Switch Claude Code Accounts
Claude Code's native `/login` command switches the login used by the current workflow. For repeatable work and personal profiles, save each account in aisw, activate it with `aisw use claude <profile>`, and verify the live state before starting the next process. AI Switcher Desktop exposes the same saved-profile switch as one click.
Claude Code supports native account changes with /login, and its storage varies by installation. That native flow is useful for changing the current login, but it does not give you named local profiles, repository bindings, or a cross-tool context. aisw turns each account into a named profile so repeatable switching and verification are one command.
Before you start
Install aisw if you haven’t already:
brew tap burakdede/tap && brew install aiswCLI method
1. Save the account you’re currently signed into.
aisw initaisw init bootstraps ~/.aisw/, offers to install the shell hook, and, if it detects you’re already signed into Claude Code, Codex CLI, or Gemini CLI, offers to import each one as a named profile right there in the prompt. Accept the prompt and you’re done with this step. If you skip it, or you already ran init on this machine before, capture the account explicitly:
aisw add claude work --from-live--from-live captures whatever Claude Code account is currently active, without a fresh sign-in. Running aisw init again later is safe, it re-detects live accounts and reports current state without touching profiles you’ve already saved.
2. Add a second account.
If you want to add another account interactively (this opens Claude Code’s native OAuth flow):
aisw add claude personalOr save an API key directly:
aisw add claude work --api-key "$ANTHROPIC_API_KEY"3. Switch between them.
aisw use claude workaisw use claude personalEach use call writes the named profile’s credentials to Claude Code’s live location and records it as the active profile for that tool.
If you only need Claude Code’s native login flow, run /login inside the current session. Use aisw when you want saved work, personal, or client profiles that can be checked before a new process starts and bound to a repository.
4. Verify which account is active.
aisw statusThis reports the recorded profile and cross-checks it against Claude Code’s live credential state.
Desktop method
The current public AI Switcher Desktop release covers macOS, Windows x64, and Linux x64. Download the matching build from /download/, then follow the same profile-switching flow below.

- Open AI Switcher Desktop and go to Overview.
- In the Claude Code column, select the profile you want active.
- Click Open Profile, then Activate, or use Quick Switch (⌘K) and type the profile name.
Common problems
If /login or aisw use changes the account but Claude Code still shows the old state, follow Claude Code’s normal re-authentication prompts and start a fresh process. Some installs cache credentials in memory for the running session. If aisw status reports a mismatch between the recorded and live profile, run aisw verify for a full diagnosis and repair path.
If aisw add claude <name> --from-live fails with an error naming a different existing profile, that account is already saved under that other name, aisw checks the underlying Claude identity, not just the profile name, and refuses to create a duplicate. Use the existing profile (aisw use claude <existing-name>) or remove it first if you genuinely want to re-add it under a new name.
If aisw add claude <name> fails with “profile already exists,” that name is already taken by a different account. Either choose a different name or re-run with --yes to overwrite it, overwriting replaces the stored credential, so make sure that’s what you want first.
Frequently asked questions
Does switching profiles log me out of Claude Code?
Claude Code provides `/login` for its native re-authentication flow. With aisw, routine switching uses a saved profile and applies it before the next Claude Code process, so you do not need to repeat the provider login flow for every saved profile switch.
Can I switch Claude Code without touching Codex CLI or Gemini CLI?
Yes. aisw use claude <profile> only touches Claude Code's credentials. Use a context if you want to switch multiple supported tools together.
