If you've already tried Google's new agent-based editor, you might have noticed a nuisance: by default, Antigravity runs as a Windows application. This means your bash scripts and Linux tools are unavailable to the agent.
Here's a quick guide on how to set up full-fledged operation in WSL (Windows Subsystem for Linux)
🛠 Quick Fix: Connecting
You don't need to download extensions manually. Everything is already built into Antigravity.
- Open the command palette: Ctrl + Shift + P.
- Enter: wsl.
- Select: Remote-WSL: Connect to WSL.
After the window restarts, the status [WSL: Ubuntu] will appear at the bottom. The agent is now running on the Linux kernel!
🤓 For pros: Launching from the terminal
Want to type "agy ." directly in the Ubuntu console? A small hack will be required, as the command launches the Windows version by default.
Create a symlink:
ln -sf "/mnt/c/Users/<USER>/AppData/Local/Programs/Antigravity/bin/antigravity" ~/.local/bin/agy
Config Edit: In the launch file, change the extension ID to google.antigravity-remote-wsl.
🌐 Network and Browser Issue
The Browser Subagent may not see Chrome on Windows due to network isolation.
We'll fix it using .wslconfig:
In the %userprofile%.wslconfig file (on Windows), enable network mirroring:
[wsl2]
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=true
After that, run wsl --shutdown. Now the agent can see local ports and control the browser normally.