Antigravity CLI · Tested with aisw v0.3.10 · Desktop v0.2.1 · Updated August 3, 2026
How to Switch Antigravity CLI Accounts
Save the currently active Antigravity CLI login with `aisw add antigravity <profile> --from-live`, then switch to it with `aisw use antigravity <profile>`. AI Switcher applies the saved account to Antigravity CLI's live local state and records which profile is active.
Antigravity CLI keeps one live account state active at a time. If you use separate work, personal, or client logins, manually signing out and back in makes it easy to use the wrong account. aisw turns each login into a named profile so switching is deliberate and repeatable.
Before you start
Install aisw and make sure Antigravity CLI is signed in to the account you want to save first.
CLI method
1. Save the account that is currently active.
aisw add antigravity work --from-liveReplace work with a label such as personal or client-acme. The live account is captured into a local profile; aisw does not send it to a cloud service.
2. Add another account.
Use Antigravity CLI’s own sign-in flow, then capture the new live account:
aisw add antigravity personal --from-live3. Switch accounts.
aisw use antigravity personalCheck the result before launching a repository:
aisw status --tool antigravityaisw verifyDesktop method
Open AI Switcher Desktop, find the Antigravity CLI column, and select Add from live for the account currently signed in. After saving more than one profile, choose Activate on the profile you need. The app shows the active and live-match state so you can verify the switch visually.
Keep the right account with a repository
If an account belongs to a client repository, put it in a context and bind that context to the repository:
aisw context create client-acme --antigravity client-acmeaisw workspace bind . --context client-acmeaisw workspace guard --mode strictStrict mode blocks a coding-agent launch when the active account does not match the repository binding.
Common issue: the live account does not match
Run aisw verify and inspect the reported state. If Antigravity CLI has refreshed or changed its live session outside aisw, re-import the current login under a new profile or repair the intended profile through the provider’s native sign-in flow. aisw fails explicitly when it cannot read the live state instead of silently creating a profile with unknown credentials.
Frequently asked questions
Can I switch Antigravity CLI accounts without signing in every time?
Yes. Capture each account as a named local aisw profile, then activate the profile you need. You only need to use the provider's native sign-in flow when adding or refreshing an account.
Does Antigravity CLI use isolated profiles?
Antigravity CLI is currently supported through shared-state switching because upstream does not expose a documented isolated auth root. aisw still keeps each saved profile separately and applies one profile to the live state at a time.
