localhost:

Windows and WSL

Projects on Windows itself or in a WSL distro.

A Project runs on its Execution Target: Windows itself (the default), or a WSL distro such as Ubuntu. Add Project asks which.

On Windows itself

Commands run in cmd.exe with your user environment read fresh at every start, so a toolchain you just installed is found without restarting localhost. Version managers that only work through a PowerShell profile (fnm or mise in activate mode) aren’t seen; their shim modes, nvm-windows and Volta are.

In WSL

Pick the folder under Linux in the folder picker (\\wsl.localhost\<distro>\…). Commands, detection and the Ports view run inside the distro, as on Linux. A folder on a Windows drive also works, through /mnt/c/…, but is much slower.

The first time a distro is used, localhost copies a small helper, localhostd, into ~/.local/share/localhost/windows/ there; it is replaced when localhost updates, and stops every Service it started when localhost quits.

Open in Browser uses localhost:<port>, which WSL forwards to Windows by default. If a Service in WSL is Running but the browser can’t reach it, check that %UserProfile%\.wslconfig doesn’t turn localhostForwarding off, then run wsl --shutdown and start it again.

Terminal, editors and the tray

  • Open in Terminal uses Windows Terminal (with the distro’s profile for WSL Projects). VS Code, Cursor, VSCodium and Windsurf open WSL folders through their WSL remote.
  • Windows puts a new app’s tray icon in the overflow (the ^ next to the clock). To keep it on the taskbar, turn localhost on in Settings › Personalization › Taskbar › Other system tray icons. Left-click it to open the window, right-click it for the menu.

Uninstall

Uninstall from Settings › Apps › Installed apps, then remove the copies in each distro with rm -rf ~/.local/share/localhost/windows.

Edit this page on GitHub

Install localhost for macOS

Two quick steps, usually under a minute.

  1. Drag it to Applications

    Open localhost-<version>.dmg and drag localhost to Applications.

    Download localhost-<version>.dmg
  2. Open it the first time

    localhost isn’t notarized by Apple yet, so macOS blocks the first launch once:

    1. Click Done in the warning.
    2. Open System Settings › Privacy & Security and scroll to Security.
    3. Click Open Anyway, and confirm with your password or Touch ID.

    Or run this in Terminal, then open localhost:

    xattr -dr com.apple.quarantine /Applications/localhost.app

macOS 15 or later · Apple silicon or Intel

  1. Run the installer

    Open localhost_<version>_x64-setup.exe. It installs for your user only, no administrator rights needed.

    Download localhost_<version>_x64-setup.exe
  2. Get past SmartScreen

    The installer isn’t signed by a known publisher yet, so Windows says “Windows protected your PC”:

    1. Click More info.
    2. Check that the file is localhost_<version>_x64-setup.exe.
    3. Click Run anyway.

Windows 10 or 11 · x64 · WSL 2 for Projects in WSL

  1. Download your package

  2. Install it

    From the folder you downloaded it to:

    sudo apt install ./localhost-app_<version>_amd64.deb
    sudo dnf install ./localhost-app-<version>-1.x86_64.rpm
    chmod +x localhost-app_<version>_amd64.AppImage && ./localhost-app_<version>_amd64.AppImage

    Secrets need a Secret Service (GNOME Keyring, KWallet). On stock GNOME the tray icon needs the AppIndicator extension.

x86_64 · Ubuntu 22.04+ · Debian 12+ · Fedora

On another system?Install guide →