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.jsonscripts, run with your package manager (pnpm run dev, …). Known dev servers get their default port, passed as$PORT. - Docker Compose: one
InfraService 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,venvorvirtualenvis detected for Python commands and used as the Service’s Python environment;uv run,poetry runandpipenv runcommands are left as they are. - Cargo:
cargo runfor 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.

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.