Guide
How to switch accounts in agy.
There are two ways to change the Google account agy uses: sign out and in again each time, or keep every account signed in in its own home folder and pick the folder.
The built-in way: sign out, sign in
agy keeps one sign-in. To use another account, sign out in agy (or in the Antigravity app, which shares the same sign-in), start agy again and sign in with the other Google account.
- Good: nothing to install.
- Less good: one account at a time, a browser sign-in on every switch, and both accounts' conversations and settings in one
~/.gemini.
Fine if you switch once a month. Tiring if you switch every day.
Keep every account signed in
agy finds its state and its sign-in through your home folder. Start it with another HOME and it is a separate account there, signed in once and staying signed in:
HOME=~/.antigravity-switch/work agy # work account
agy # your normal account
Both can run at the same time in two terminals. A bare folder isn't quite enough though: the profile home needs your dotfiles linked in (so git, gh and gcloud work) and a keychain of its own (so the two sign-ins don't overwrite each other in your login keychain). Here is the full setup, step by step.
With the free CLI
The antigravity-switch CLI builds those profile homes for you and gives each one a short alias:
antigravity-switch create work # once; adds an agy-work alias to ~/.zshrc
agy-work # agy on the work account
antigravity-switch list # every profile with its account email and plan
antigravity-switch status work # signed in or not
With the Mac app
Switch for Antigravity shows every profile with its account and plan, and opens agy in Terminal, iTerm, Ghostty or Warp, or the Antigravity app in its own window, with one click from the app, the menu bar or a floating bar.
Which one to pick
| Sign out, sign in | Home folder per account (by hand or CLI) | Switch for Antigravity | |
|---|---|---|---|
| Several accounts open at once | No | Yes | Yes |
| Sign in again to switch | Every time | No, once per profile | No, once per profile |
| Conversations per account | Shared | Separate | Separate |
| Antigravity app per account | One at a time | Yes, with open -n or antigravity-switch app | Yes, one click |
| Price | Free | Free, MIT | $9.99 once |
Questions
How do I log in to another account in the Antigravity CLI?
Sign out, start agy again and sign in with the other Google account. To keep both signed in, run agy with a separate HOME per account, by hand or with the free antigravity-switch CLI.
Can agy use two Google accounts at the same time?
Yes, from two terminals, if each one runs agy with its own home folder. Each folder has its own sign-in.
Why does the sign-in keep picking my old account?
The browser is still signed in to that Google account. Pick the other one in Google's account chooser, or finish the sign-in in a private window.
Switch for Antigravity does this with one click on a Mac: every account in its own Antigravity app window and in your terminal, all open at once, from the app or the menu bar. $9.99 once, no subscription.