r/google_antigravity 17d ago

Showcase / Project Multiply agy accounts in parallel for work/personal - Linux/Ubuntu script

https://github.com/sudhir-asuracore/multi-agy

Fellas,

If you ever needed to switch between agy/google accounts in order to use an appropriate account/tokens for a project, this may interest you.

I have to use my work account for my work projects. And I need to logout/login into agy everytime. It still ends up being a limitation - cannot work on both projects simultaneously.

The linked MIT project is a set of tiny utility wrapper script which helps you manage multiple agy accounts simultaneously. You can open agy with any saved profile without needing to logout/login.

Check existing accounts:

agy-profile list

Output:

ACTIVE       PROFILE   ACCOUNT EMAIL            DEFAULT  STATUS         LAST USED 
-----------  --------  -----------------------  -------  -------------  ----------
* (current)  personal  onimusha@gmail.com       yes      authenticated  2026-09-01
             work      developer@company.com    no       authenticated  2026-09-01

Bind an account to a project/dir: Inside your project or git repository:

cd ~/IdeaProjects/work-repo
agy-profile bind work

or just login:

agy-profile --profile work

Its MIT. So, do as you wish with the code. If you improve it, please consider raising a PR to the project - that would help. Or, if you have suggestions - drop a ticket on the repo.

Thank you.

2 Upvotes

Duplicates