Here is the script - https://gist.github.com/devame/ae86149a62761159b5695f51e6b451ec.js
What this script does
Finds Paths: It locates your Windows User directory to find both the Antigravity bin file and the VS Code .vscode/extensions folder.
Patches bin/antigravity: It runs sed to change the WSL_EXT_ID variable from the Microsoft default to
google.antigravity-remote-wsl.Locates Scripts: It lists all folders matching ms-vscode-remote.remote-wsl-*, sorts them by version number, and picks the highest one.
Copies Files: It copies the contents of the scripts folder from that VS Code extension into the Antigravity extension resources folder.
Install server: The scripts in previous steps try to download from Microsoft, they will fail. So it downloads the correct server binary from Google and "tricks" the launcher into thinking it succeeded.
Once the script finishes, run antigravity . from your project folder in WSL. It will detect the installed server, skip the broken download step, and connect immediately.
You should get an output similar to this -