localhost:

Quick start

Add your first Project to localhost app: scan its folder for Services, check the suggestions, press Start All, then let a coding agent run it too.

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

The first time you open localhost, a short welcome explains the three words that matter: a Project is a folder, a Service is a long-running command in it (pnpm dev, docker compose up), and its Port is how localhost knows it is Running. It ends in Add Project…, which is step 1 below; Skip or Not Now closes it, and it doesn’t come back by itself. If you used localhost before, you won’t see it.

Once you have a Project, a Get started checklist at the foot of the sidebar ticks off adding a Project, adding a Service and starting your first one, plus connecting your coding agents if you want to. Click an open item to go there. It disappears once everything is ticked, or close it with ×.

To see either again, choose Show Welcome… or Show Get Started Checklist from the Help menu (the ? at the foot of the sidebar on Linux and Windows) or the command palette.

1. Add a Project

Click Add Project… (or press ⌘N, or choose New Project… from 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 Infra Service running the whole file (docker compose up, in the foreground), or one per Compose service (docker compose up <service>) if you’d rather. In the review you can also merge Suggestions into one Service and pick what each starts after.
  • Python: Django, FastAPI and Flask apps, with uv, Poetry, Pipenv or a virtualenv. A .venv, venv or virtualenv is detected for Python commands and used as the Service’s Python environment; uv run, poetry run and pipenv run commands are left as they are.
  • Cargo: cargo run for each binary.

The likely Services are checked, such as Infra for a Compose file with two or more services; the rest, such as each Compose service on its own, are folded under “N more found”. Select several and click Merge… to make them one Service, or set what a Suggestion Starts after. 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

5. Let your coding agent run it too

Connect Claude Code, Cursor, Codex or another MCP client to localhost mcp, from Get started, Settings → Agents, the command palette, or with npx @getlocalhost/cli mcp install in a terminal, and it starts, stops and reads the logs of the same Services, instead of a pnpm dev in a shell you can’t see. What it starts shows in the window. See Coding agents (MCP) and the agent skill.

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 →