Claude Code · Tested with aisw v0.3.7 · Updated July 16, 2026

How to Switch Claude Code Accounts

Save each Claude Code account as an aisw profile, then activate the one you need with `aisw use claude <profile>`. aisw applies the stored credentials to the same location Claude Code already reads from and records which profile is active. AI Switcher Desktop exposes the same switch as one click in the Claude Code column.

Claude Code stores its active account in the macOS Keychain or in local files, depending on how it was installed. There’s no built-in way to save a second account and switch back later — you’d normally have to sign out, sign back in, or manually copy credential files. aisw turns each account into a named profile so switching is one command.

Before you start

Install aisw if you haven’t already:

Terminal window
brew tap burakdede/tap && brew install aisw

CLI method

1. Save the account you’re currently signed into.

Terminal window
aisw init
aisw add claude work --from-live

--from-live captures whatever Claude Code account is currently active, without a fresh sign-in.

2. Add a second account.

If you want to add another account interactively (this opens Claude Code’s native OAuth flow):

Terminal window
aisw add claude personal

Or save an API key directly:

Terminal window
aisw add claude work --api-key "$ANTHROPIC_API_KEY"

3. Switch between them.

Terminal window
aisw use claude work
aisw use claude personal

Each use call writes the named profile’s credentials to Claude Code’s live location and records it as the active profile for that tool.

4. Verify which account is active.

Terminal window
aisw status

This reports the recorded profile and cross-checks it against Claude Code’s live credential state.

Desktop method (coming soon)

AI Switcher Desktop is currently in private testing and not yet available for public download. The steps below reflect the current build; use the CLI method above until it ships.

  1. Open AI Switcher Desktop and go to Overview.
  2. In the Claude Code column, select the profile you want active.
  3. Click Open Profile, then Activate — or use Quick Switch (⌘K) and type the profile name.

Common problems

If aisw use succeeds but Claude Code still shows the old account, quit and relaunch Claude Code — 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.

Frequently asked questions

Does switching profiles log me out of Claude Code?

No. aisw writes the target profile's credentials to the same Keychain entry or local file Claude Code already reads, so the next Claude Code session picks up the new account without an explicit logout step.

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 all three tools together.