Gemini CLI · Tested with aisw v0.3.7 · Updated July 16, 2026

Keep Work and Personal Gemini CLI Accounts Separate

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.

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 (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. 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.

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.