If you juggle two or three Google accounts with Google Antigravity ( agy ), you eventually notice an odd bug after switching accounts manually. You switch to Account B, start a coding session, and an hour later Antigravity silently flips back to Account A.
No crash happened, and nobody ran a login command. Another agy process running in a forgotten terminal or IDE workspace simply refreshed its hourly OAuth token and wrote the updated credentials back into the shared local state under ~/.gemini .
Here is why that race happens, how the open-source terminal switcher agy-swap isolates switches and harvests background refreshes without clobbering your active account, and how to run two completely separate accounts side by side when you need concurrent agents.
Why switching accounts by hand often reverts an hour later
Both the standalone agy CLI and the Antigravity IDE read and write shared credential files under ~/.gemini alongside your system keychain entry.…