◉ANTIGRAVITY LABJP
Articles/Tips & Best Practices
✦ Tips & Best Practices/2026-10-25Intermediate

Which Antigravity Does "antigravity" Launch in WSL2 — Windows or Linux? How to Tell, and Which One to Keep

You installed the Linux build in WSL2, yet things feel slow or a Windows window opens. This walkthrough uses type -a and PATH order to find what actually launches, then helps you decide which build to keep.

antigravity470wsl2windows3PATH3troubleshooting124

You type antigravity . in a WSL2 terminal and a window does open. But it isn't quite the Linux build you expected, and every save has a small pause. Which Antigravity is actually running? Many of us keep tweaking settings without ever answering that.

A write-up on Zenn lays out the situation well: the deb package in WSL only points you back to a Windows install, uninstalling it can leave another entry point behind, and the Windows executable can be found first on the PATH. This article takes that report as a starting point and narrows it to two questions — what launches, and which one to keep.

One caveat up front. I work on a Mac as an indie developer and haven't reproduced WSL2 myself. The commands below rely on standard Linux and WSL behavior; anything Antigravity-specific comes from public reports. Please compare the output on your own machine as you read.

List everything that could be called

which antigravity prints only the first hit. type -a prints them all.

hash -r                  # drop the shell's cached lookups
type -a antigravity      # every match, in PATH order

The first line is what actually runs. If it starts with /mnt/c/, you're launching the Windows executable. If it's under /usr/local/bin or /opt, it's the Linux side.

/mnt/c/ shows up because WSL appends the Windows PATH to the Linux PATH by default. The appendWindowsPath option in /etc/wsl.conf controls that.

When there are several entry points, look inside

Even if the first line is /usr/bin/antigravity or /bin/antigravity, that may not be the real program. In the Zenn report, the deb installs a thin entry that only tells you to install on Windows; while it's first, the Linux build never runs.

p="$(command -v antigravity)"
readlink -f "$p"        # where a symlink really points
file "$p"               # ELF = real binary, script = relay
head -c 300 "$p" | cat -v   # peek inside if it's a script

If file says "ASCII text executable" or "shell script", it's a relay. Open it and check whether it calls the Windows side or just prints a message.

Decide by where your code lives

Once you know what launches, the next question is which build to keep. One axis settles it: which filesystem holds your code.

Where the code livesBetter fitWhy
/home/<user>/ (WSL ext4)Linux build, or the Windows app connecting into WSLI/O stays on the Linux side
/mnt/c/ (Windows NTFS)Windows buildAvoids crossing the boundary
Scattered across bothConsolidate firstIt matters more than the launcher

I wrote about slow file watching across /mnt/c in WSL2 file watching problems. If the launcher is right and things are still slow, location is the next suspect.

Narrowing it to one entry point

If you decided to keep the Linux build, here is the cleanup. Only remove what you've inspected.

sudo apt purge -y antigravity || true   # remove the deb that creates the thin entry
hash -r
type -a antigravity                     # recheck what remains

If you unpack a tar.gz under /opt, add a single symlink in /usr/local/bin. Don't unpack under /mnt/c; permissions break there. To drop Windows from the PATH entirely, add this to /etc/wsl.conf:

[interop]
appendWindowsPath = false

You'll need to run wsl --shutdown from Windows for it to take effect. Note that this removes every Windows command from the PATH — code, explorer.exe, and so on — not just Antigravity. If you call those from WSL, putting /usr/local/bin first in ~/.bashrc has a smaller blast radius.

The line I'd draw

Before blaming settings or versions, be able to say in one line what launches. Once you can paste the first line of type -a, the rest of the investigation gets much shorter.

If the app itself fails to start, see triaging "server crashed unexpectedly". For agent commands failing in Windows shells, the PowerShell preflight is a good companion.

Start by running type -a antigravity once in your current terminal and noting the first line.

Share

Thank You for Reading

Antigravity Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

If you found this article helpful, a small tip ($1.50) would mean a lot to us. Your support helps keep this site ad-free and covers server and hosting costs.

Related Articles

✦ Tips2026-04-25
When Antigravity's Workspace Indexing Won't Finish: A Field Guide to Fixing Stalled Indexes
Indexing that never moves, or finishes while the agent still can't find your files. A count-first diagnostic: measure the project, verify your ignore rules, and test with .git set aside. No undocumented internal paths.
✦ Tips2026-04-25
Mastering Antigravity's Retry: How to Recover Stuck Agents Without Wasting Credits
How to tell which agent failures Retry can fix, how to read the log in 30 seconds, and three checks to run before pressing it again.
✦ Tips2026-04-22
Fixing Antigravity Connection Errors Behind Corporate Proxies and Firewalls
Antigravity works fine at home but fails to sign in or reach the Gemini API on your office network. This guide walks through reading the logs, configuring HTTP proxies, trusting corporate CAs, and getting domain allowlisting right.