Google just dropped Antigravity (their new Gemini-powered IDE), and naturally, I wanted to try it immediately.
If you're on Arch, you probably already tried yay -S antigravity-bin and hit a wall of red text. Between the AUR servers getting hugged to death (Error 502) and the "Sign In" button refusing to actually sign you in, it's been a bit of a mess.
I spent my morning figuring it out so you don't have to. Here is the proper way to get it installed and actually running.
Method 1: The "Lazy" Way (AUR Helper)
If you are lucky and the servers are up, just run:
yay -S antigravity-bin
Method 2: The Git / Manual Method (Reliable)
Use this if yay is giving you timeouts or 502 errors.
If the AUR helpers are choking, the manual git method works best. This is what finally worked for me when the servers were struggling.
-
Clone the repository:
git clone https://aur.archlinux.org/antigravity-bin.git(Note: If the official AUR link is timing out, you can try finding a GitHub mirror, but usually
githandles the connection better thanyay). -
Enter the directory:
cd antigravity-bin -
Build and Install:
makepkg -si
This pulls the .deb directly from Google's servers and packages it locally, bypassing most of the AUR traffic issues.
The Real Problem: Fixing the "Login Loop"
Once installed, you’ll hit the main boss: The Login Screen.
You click "Sign in with Google," your browser opens, says "Success," and... the IDE just sits there waiting.
This is because the app's desktop file is missing the link handler. Here is the fix:
-
Open the desktop file:
sudo nano /usr/share/applications/antigravity.desktop -
Scroll to the bottom and add this line (or edit
MimeTypeif it exists):
MimeType=x-scheme-handler/antigravity; -
Save (
Ctrl+O,Enter) and exit (Ctrl+X), then update the database:
sudo update-desktop-database
Now, when you click Sign In, your browser should prompt you to "Open Antigravity," and you're in.
Still stuck? (Manual Auth)
If you're on a window manager like Hyprland/Sway and the redirect still won't work:
- Log in via browser until you see the "Success" page.
- Copy the URL from your address bar (starts with
antigravity://). -
Run this in your terminal:
antigravity "PASTE_YOUR_URL_HERE"
Let me know in the comments if this worked for you!
Top comments (0)