localhost:

Install

Download localhost app for macOS (DMG or Homebrew), Linux (.deb, .rpm, AppImage) or Windows, what each needs, and how to open it the first time.

Download the latest release from GitHub Releases.

Download Needs
macOS localhost-<version>.dmg: open it and drag localhost to Applications macOS 15 or later, Apple silicon or Intel
Ubuntu, Debian localhost-app_<version>_amd64.deb: sudo apt install ./localhost-app_<version>_amd64.deb Ubuntu 22.04+, Debian 12+, x86_64
Fedora localhost-app-<version>-1.x86_64.rpm: sudo dnf install ./localhost-app-<version>-1.x86_64.rpm x86_64
Other Linux localhost-app_<version>_amd64.AppImage: chmod +x it and run it x86_64, glibc as new as Ubuntu 22.04’s
Windows localhost_<version>_x64-setup.exe: run it. It installs for your user only, no administrator rights Windows 10 or 11, x64; WSL 2 for Projects in WSL

Releases aren’t notarized or code-signed by a known publisher yet, so the first launch needs one extra step on macOS and Windows; see First launch. There are no Flatpak or Snap packages: their sandboxes can’t run your project’s commands.

Homebrew (macOS)

brew install --cask marcellosso/tap/localhost

The same app, from the same release, in Applications. Homebrew also links its localhost command into its own bin, so terminals can run localhost without Add to PATH. The app keeps updating itself, so brew upgrade leaves it alone. brew uninstall --cask localhost removes it; with --zap it also deletes localhost’s data folder (your Projects and logs; Secrets stay in the Keychain). Homebrew marks what it downloads as quarantined, as a browser does, so the first launch needs the same extra step: see First launch.

Updates

localhost checks for a new version at launch and every 6 hours, and offers it in a notice at the bottom of the sidebar; installing it stops your running Services first, after asking. The AppImage, the Windows installer and the macOS app (also when installed with Homebrew) update themselves; for a .deb or .rpm, your package manager does. See Updates.

First launch

macOS: a build that isn’t notarized

Releases aren’t notarized by Apple yet, so macOS refuses to open what your browser downloaded the first time (“Apple could not verify “localhost” is free of malware…”; it may name the DMG instead). There are three ways past it, each only for a copy from this project’s releases, and each new version needs one again.

Open Anyway, in System Settings:

  1. Click Done in that dialog.
  2. Open System Settings → Privacy & Security and scroll to Security. It says the item was blocked to protect your Mac.
  3. Click Open Anyway, confirm with your password or Touch ID, then click Open Anyway once more.

System Settings, Privacy & Security: under Security, “localhost” was blocked to protect your Mac, with an Open Anyway button System Settings → Privacy & Security → Open Anyway.

If the warning named the DMG, macOS may ask again the first time you open localhost: do the same.

Download from Terminal. macOS only checks files marked as downloaded from the internet, and curl doesn’t mark them. Download and open the DMG, then drag localhost to Applications as usual:

curl -fLO https://github.com/marcellosso/localhost/releases/download/v<version>/localhost-<version>.dmg
open localhost-<version>.dmg

To check the download, also fetch localhost-<version>.dmg.sha256 from the same release and run shasum -a 256 -c localhost-<version>.dmg.sha256.

Remove the quarantine flag the browser added, from Terminal, once localhost is in Applications:

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

Windows: SmartScreen

Unsigned releases make SmartScreen say “Windows protected your PC”. Click More info, check that the file name is what you downloaded from this project’s releases, then click Run anyway. Each new version asks once again.

SmartScreen’s “Windows protected your PC” dialog, with the More info link Click More info…

The same dialog after More info: the app’s file name, Publisher: Unknown publisher, and the Run anyway button …check the file name, then click Run anyway.

Next: add your first Project.

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 →