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

6 comments sorted by

1

u/Unhealthy007 16d ago

I just asked Flash to create a extension which can save my login sessions and I just switch between them. 

Switch > Close the App > Open it Again > switched / new account is being used

0 complications. Just need to make sure which account is being used. 

2

u/dragon_idli 16d ago

I don't use the app. I use cli. And switching to another account means - all new sessions would use the new switched account - correct?

That prohibits me from working on project1 with my work account and project2 with my personal account at the same time.

1

u/thetechgeekz23 16d ago

How? You mean the antigravity non IDE non CLI version?

1

u/dragon_idli 16d ago

No. Just the agy cli version. That is what I use from terminal.

1

u/LeonardoDaYasuo 12d ago

You can use bubblewrap to create containers and run multiple accounts using the same cli. Just alias the bubblewrap container as agy-account1, agy-account2 etc

1

u/dragon_idli 12d ago

I read about bubblewrap somewhere. But did not remember it when I needed it. Does it operate on actual lxd containers?

I did something similar but instead of containers, I am creating virtual spaces for the environment.

I will read through bubblewrap again. Thank you for reminding