Gemini CLI · Tested with aisw v0.3.10 · Desktop v0.2.1 · Updated July 17, 2026

Work and Personal Gemini CLI Accounts

Create two aisw profiles for Gemini CLI, one for work, one for personal, and switch between them with aisw use gemini <profile>. Because Gemini CLI stores everything under ~/.gemini, each profile is a fully isolated snapshot; there's no shared-state option to accidentally leak one into the other.

Mixing a personal Google account with a work Gemini CLI setup risks conversation history, cached files, and configuration bleeding between the two. Because Gemini CLI keeps everything together under ~/.gemini, isolating them fully is actually simpler than with tools that split credentials from config.

CLI method

1. Add your work account.

If you haven’t run aisw init on this machine yet, start there, it bootstraps ~/.aisw/ and, if Gemini CLI is already signed in, offers to import the account right in the prompt:

Terminal window
aisw init

Otherwise, or to add a second account after init, capture it explicitly:

Terminal window
aisw add gemini work --from-live

2. Add your personal account.

Terminal window
aisw add gemini personal

3. Switch based on what you’re doing.

Terminal window
aisw use gemini work
# ... work session ...
aisw use gemini personal

4. Verify isolation.

Terminal window
aisw status

Confirms the active profile and that its state mode is Isolated, the only mode Gemini CLI supports.

Desktop method

The current public AI Switcher Desktop release covers macOS, Windows x64, and Linux x64. Download the matching build from /download/, then use the same work/personal profile flow below.

AI Switcher Desktop Profiles screen showing work and personal Gemini CLI profiles with isolated state information
  1. Open AI Switcher Desktop and go to Overview.
  2. Add both profiles under the Gemini CLI column if you haven’t already.
  3. Click Activate on whichever one matches your current session.

Common problems

If Gemini CLI still shows your personal history after switching to a work profile, confirm you actually ran aisw use gemini work rather than just adding the profile, adding a profile saves credentials but doesn’t activate them.

If adding the second account fails with an error naming your work profile, that usually means you’re still signed into the work Google account when aisw add gemini personal runs, aisw checks the underlying identity and won’t save the same account twice under different names. Sign out of Gemini CLI (or sign into the personal account first) before adding it.

Frequently asked questions

Is isolation automatic, or do I need to configure it?

It's automatic. Gemini CLI doesn't support aisw's shared-state mode at all, so every Gemini profile is isolated by default, there's no setting to get wrong.

Can I still use the same Google account for both profiles, just with different project settings?

Yes. aisw profiles isolated storage, not the underlying Google account. You can point two profiles at the same account with different local configuration if that's what you need.