localhost:

Windows and WSL

localhost app on Windows: Projects on Windows itself or in a WSL distro, cmd.exe with a fresh environment, coding agents over a named pipe, and updates.

localhost on Windows installs for your user only, on Windows 10 or 11 (x64); see Install. 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.

Coding agents

localhost mcp works on Windows for Projects on Windows itself: the app and the agent share one background core, reached through a named pipe (\\.\pipe\localhostd-<number>) that only your user can open. It runs without a window, as a second localhost-app.exe or localhost.exe in Task Manager.

A Project in a WSL distro runs only from the app, which starts the localhostd inside the distro. An agent asked to start one is told so.

Updates

The app installed by localhost_<version>_x64-setup.exe updates itself: Restart to Update stops your running Services, after asking, then installs the new version and opens it. The localhostd in each distro is replaced with it. See Updates.

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-0.6.1.dmg and drag localhost to Applications.

    Download localhost-0.6.1.dmg

    Or install it with Homebrew, which also puts the localhost command in your terminal:

    brew install --cask marcellosso/tap/localhost

    Or download it from Terminal, which macOS doesn’t block, so you can skip step 2:

    curl -fLO https://github.com/marcellosso/localhost/releases/download/v0.6.1/localhost-0.6.1.dmg && open localhost-0.6.1.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_0.6.1_x64-setup.exe. It installs for your user only, no administrator rights needed.

    Download localhost_0.6.1_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_0.6.1_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_0.6.1_amd64.deb
    sudo dnf install ./localhost-app-0.6.1-1.x86_64.rpm
    chmod +x localhost-app_0.6.1_amd64.AppImage && ./localhost-app_0.6.1_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 →