localhost:

Quick start

Add a Project, check its Services and start them.

Shortcuts are written for macOS; on Linux and Windows use Ctrl for ⌘ and Alt for ⌥ (see Keyboard shortcuts).

1. Add a Project

Press ⌘N (or the + in the sidebar) and choose your project’s folder. localhost fills in a name and a Key (a short handle such as my-saas, used in logs and by the command line), then scans the folder and lists what it found:

  • Node: package.json scripts, run with your package manager (pnpm run dev, …). Known dev servers get their default port, passed as $PORT.
  • Docker Compose: one Service per Compose service, docker compose up <service> in the foreground.
  • Python: Django, FastAPI and Flask apps, with uv, Poetry, Pipenv or a virtualenv.
  • Cargo: cargo run for each binary.

The likely Services are checked; the rest are folded under “N more found”. Click a row to edit it before adding, then click Add Project.

Nothing found, or a command it doesn’t know? Add the Project anyway and add Services yourself with ⇧⌘N. Detect Services… scans again later.

On Windows, Add Project also asks where the Project runs: on Windows itself, or in one of your WSL distros. See Windows and WSL.

2. Check its Services

Each Service is a command line, a working directory inside the Project, and optionally a Port, a URL and Dependencies. See Services and states for every field.

3. Run it

Select a Service and press ⌘R to start (or restart) it, ⌘. to stop it. ⇧⌘R starts every Service of the Project in dependency order, ⇧⌘. stops them all.

Select All services to see every Service’s output in one stream, each line prefixed with its Key. See Logs.

4. Leave it running

Closing the window doesn’t stop anything: your Services keep running, and the menu bar icon (the tray icon on Linux and Windows) shows them, with a red dot while one has Failed. Quitting asks first, then stops everything.

The menu bar panel: Acme Shop’s Services with their states and Start, Restart, Stop and Open in Browser buttons

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 →