Searches for a Gemini CLI account switcher usually come from a work and personal login sharing one computer. Signing out and back in each time is slow, and it makes the active identity hard to check before opening a repository.
Save each Gemini CLI account as a named profile
Sign in through Gemini CLI's normal flow, then capture the live account. Add the next account the same way and give each profile a label that describes its boundary.
aisw init
aisw add gemini work --from-live
aisw add gemini personal
aisw list geminiIf the account uses an API key, pass it through the supported environment input rather than placing a secret in shell history. Profile names are local labels; aisw does not create provider accounts or send credentials to a cloud service.
Switch users before starting Gemini CLI
Activate the profile, inspect the result, and then start a new process. Gemini CLI keeps authentication and related local state together under ~/.gemini, so aisw switches the complete profile state instead of copying one credential file.
aisw use gemini work
aisw status
aisw verify
geminiUse a work and personal account safely
A new terminal or editor session should start after the switch. An existing Gemini CLI process can retain its previous environment and session, so account switching is a deliberate boundary rather than a hot swap.
aisw use gemini personal
aisw verify
geminiBind the expected account to a repository
For client or production repositories, use a context and workspace guard so remembering to switch is not the only protection.
aisw context create client-acme --gemini acme-gemini
aisw workspace bind . --context client-acme
aisw workspace guard --mode strictCLI or Desktop?
Use the CLI for shell hooks and repeatable scripts. Use AI Switcher Desktop when you want a visible profile list, activation controls, and diagnostics for the active Gemini state. Both interfaces use the same local profile boundary.
For command details, read How to Switch Gemini CLI Accounts. To coordinate several tools, see Switch Claude Code, Codex CLI, Gemini CLI, and Antigravity together.
