Guide

Multiple Antigravity accounts on one Mac.

Antigravity keeps one Google sign-in per Mac. With a work account (Google Workspace or Gemini Enterprise) and a personal one, you sign out and back in every time you switch, and conversations, settings and quota get mixed up. You don't have to: give every account its own home folder.

Why one sign-in per Mac

Antigravity keeps everything under your home folder. Its state (conversations, settings, the sign-in fallback file) lives in ~/.gemini, and the sign-in itself goes to your macOS login keychain. Both are found through your home folder, so there is room for exactly one account.

agy has no setting for where it keeps its state, but it follows the HOME environment variable. Start it with a different HOME and it has a different ~/.gemini. That is the whole trick: a profile is a home folder of its own.

What a profile home needs

Set it up by hand

This is what the free CLI does for you; here it is spelled out, so you can see there is no magic.

  1. Make the profile home with its own .gemini and Library parts:
    P=~/.antigravity-switch/work
    mkdir -p "$P/.gemini" "$P/Library/Keychains" "$P/Library/Preferences" \
      "$P/Library/Application Support" "$P/Library/Caches" "$P/Library/Logs"
  2. Link the rest of your home in (everything except .gemini, Library and the profiles folder), and the rest of ~/Library:
    for e in ~/.[!.]* ~/*; do
      n=$(basename "$e")
      case "$n" in .gemini|Library|.antigravity-switch|.Trash) continue ;; esac
      [ -e "$P/$n" ] || ln -s "$e" "$P/$n"
    done
    for e in ~/Library/*; do
      n=$(basename "$e")
      case "$n" in Keychains|Preferences|"Application Support"|Caches|Logs) continue ;; esac
      [ -e "$P/Library/$n" ] || ln -s "$e" "$P/Library/$n"
    done
    In practice you also link most of Application Support and Preferences (all but Antigravity's own folders and com.apple.security.plist), which the CLI does for you.
  3. Give it its own keychain, with your login keychain second in its search list:
    KC="$P/Library/Keychains/login.keychain-db"
    HOME="$P" security create-keychain -p "" "$KC"
    HOME="$P" security unlock-keychain -p "" "$KC"
    HOME="$P" security list-keychains -d user -s "$KC" ~/Library/Keychains/login.keychain-db
  4. Sign in and use it. Your normal agy stays as it is:
    HOME="$P" agy     # work account, asks you to sign in once
    agy               # your normal account, untouched

When the browser opens for the sign-in, it is still signed in to the account you used last. Pick the other account in Google's account chooser, or finish the sign-in in a private window.

The Antigravity app too

The Antigravity app runs once per data folder: opening it again brings back the first window. Started as a second instance with HOME set to the profile and a data folder of its own, it has its own window, language server and sign-in:

open -n --env HOME="$P" /Applications/Antigravity.app \
  --args --user-data-dir="$P/Library/Application Support/Antigravity"

The same with one command

The free, open-source antigravity-switch CLI does all of the above, keeps the links up to date on every start, shares your GEMINI.md, skills, MCP servers, plugins and hooks with Main, and adds an agy-work alias:

curl -fsSL https://raw.githubusercontent.com/SaschaHeyer/antigravity-switch/main/install.sh | bash
antigravity-switch create work
antigravity-switch work          # agy on the work account
antigravity-switch app work      # the Antigravity app, in its own window

Switch for Antigravity, the Mac app, uses the same profiles and opens each one in the app or your terminal with one click, with the account email, plan and a green dot for what's running.

Questions

Can I be signed in to two Antigravity accounts at the same time?

Yes. Give each account its own home folder with its own .gemini and its own keychain. agy and the Antigravity app follow HOME, so two terminals or two app windows can use two accounts at once.

Where does Antigravity store its sign-in?

In the macOS keychain, found through your home folder, with a fallback token file in ~/.gemini. Conversations and settings live in ~/.gemini too.

Why did my second account sign in as the first one?

agy signs in through your browser, and the browser was still signed in to the other Google account. Pick the other account in Google's account chooser, or finish the sign-in in a private window.

Does this change my normal Antigravity?

No. Your real ~/.gemini and login keychain are not moved, changed or deleted. Profiles live in their own folders.

Is this allowed?

It's for people with more than one real account, for example one from work and one of their own. It doesn't share or create accounts; it only starts Antigravity with a different home folder.

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.

Checked December 2, 2026 · All guides