Antigravity accounts
Agent Switch keeps several Antigravity accounts signed in at once, so agy
starts on the right account for each project without signing out and in
again.
Antigravity support is narrower than for Claude Code and Codex. Antigravity reports no usage numbers that Agent Switch can read, so everything built on usage (balanced starts, limit protection, suggestions) does not apply. Folder pins and a preferred account work fully.
Turn it on
Section titled “Turn it on”Antigravity is off by default, so the desktop app does not show it. Turn it on in Settings › Providers, or from the CLI:
agent-switch providers enable --provider antigravityagent-switch providers statusThe CLI commands accept --provider antigravity either way. If agy is not
on your PATH, point Agent Switch at it:
agent-switch providers link --provider antigravity --path ~/.local/bin/agyHow the accounts stay apart
Section titled “How the accounts stay apart”agy keeps its settings under your home folder, so each Antigravity account
gets its own home: ~/.agent-switch/antigravity/<name>/config. The agy
shell wrapper sets HOME to that folder before it starts the real agy.
On macOS, agy also stores its login in the keychain, always under the same
name. Agent Switch therefore gives each account its own keychain file inside
its folder. The password of that keychain is kept in your login keychain under
an anonymous name. Your own agy login is not touched. agent-switch doctor
checks these keychains.
Add your accounts
Section titled “Add your accounts”-
Add the account.
agyhas no separate login command, so Agent Switch startsagyitself in the new account’s folder. Sign in there when it asks.Terminal window agent-switch add work --provider antigravity -
Do the same for every other account.
Terminal window agent-switch add personal --provider antigravity -
Turn on the shell wrapper, if you have not yet, and open a new terminal.
Terminal window agent-switch shellenv install
To sign an account in again later, run agent-switch login work --provider antigravity; it starts agy the same way. Use add, not import: there is
no Antigravity login file that import could copy.
Choose which account agy uses
Section titled “Choose which account agy uses”Without usage numbers there is nothing to balance, so a plain agy start uses
your preferred Antigravity account:
asw antigravity workPin a folder to an account, and agy started there always uses it:
cd ~/code/client-aagent-switch map client-a --provider antigravityOr start one session on a given account:
agent-switch run personal --provider antigravityPools add nothing for Antigravity: a pool chooses by usage, and there is none to compare.
Account identity macOS
Section titled “Account identity ”Agent Switch reads which Google account an Antigravity account is signed in
to from its keychain, so the email shows up in list, status and the app.
This works on macOS only. On Linux and Windows, Antigravity accounts work but
show no email.
What works and what does not
Section titled “What works and what does not”| Works | Does not work |
|---|---|
| Separate accounts, each signed in | Usage readout and meters |
The agy shell wrapper and run | Balanced starts and pools |
| Folder pins and a preferred account | Limit protection and limit suggestions |
disable, enable, label, color, rename, remove | Sessions, takeover and handoff |
| Opening the Antigravity app per account (macOS) | One account, one session (the guard) |
rebind, share, keep accounts signed in |
The Antigravity app macOS
Section titled “The Antigravity app ”On macOS, Agent Switch can open the Antigravity desktop app as a specific account, each with its own browser data, so two accounts can run side by side:
agent-switch open antigravity workagent-switch launcher add antigravity workSee Desktop apps and launchers.