Keep Work and Personal Antigravity Accounts
Capture the two live Antigravity CLI logins as `antigravity work` and `antigravity personal`, then run `aisw use antigravity work` or `aisw use antigravity personal` whenever you change workspaces. Profiles remain local and Antigravity CLI stays in its supported shared-state mode.
Using Antigravity CLI for both work and personal projects is safer when the account boundary is explicit. aisw keeps the two logins named and makes the active choice visible before you start coding.
1. Capture the work account
Sign in to the work account through Antigravity CLI’s native flow, then save the live account:
aisw add antigravity work --from-live2. Capture the personal account
Sign in to the personal account through the provider’s own flow and save it separately:
aisw add antigravity personal --from-liveaisw list antigravityBoth profiles are local. AI Switcher does not proxy prompts, sync credentials, or create a second Antigravity CLI authentication service.
3. Switch before you code
aisw use antigravity workaisw verifyWhen you move to a personal repository:
aisw use antigravity personalaisw verifyPrevent the wrong account in a repository
For stronger protection, group the intended account in a context and bind that context to the repository:
aisw context create personal --antigravity personalaisw workspace bind . --context personalaisw workspace guard --mode strictThe shell guard checks the binding before a coding-agent launch and tells you which context is expected when the active state is wrong.
Desktop workflow
AI Switcher Desktop exposes the same named profiles and context bindings in a visual interface. Select the Antigravity CLI profile you need, activate it, and confirm the live-match indicator before opening the repository.
Important state-mode detail
Antigravity CLI is currently supported through shared-state switching. That means aisw separates saved account profiles, but it does not claim to isolate every piece of Antigravity CLI’s local runtime configuration per account. Use repository guardrails when account correctness matters most.
Frequently asked questions
Do work and personal Antigravity CLI profiles share credentials?
No. aisw stores named profile records locally and applies only the selected profile to Antigravity CLI's live credential state. Antigravity CLI's local runtime state remains shared because isolated auth roots are not currently documented upstream.
Can I bind a personal or work Antigravity CLI account to a repository?
Yes. Put the Antigravity CLI profile in an aisw context, bind the context to the repository, and enable warn or strict workspace guard mode.