Download for Mac

The promise

Nothing goes to the internet. Locals makes no connection to any host outside your Mac or your local network. It has no accounts, analytics, updates, cloud services, tunnels or port forwarding.

Nothing is reachable from your network unless you share it. Locals listens on no port by default. Sharing is per server, only on a network you've trusted, and needs a confirmation.

Locals reads as little as it can. From other processes it reads ports, command lines, working folders and a short allow-list of environment variables. Secrets in environments are dropped before anything is stored.

What it does, and the limits on each part

CapabilityLimits
Health checkAn HTTP GET to / every 10 seconds, to dev servers only. Literal loopback addresses (127.0.0.1 or [::1]), so no name lookup. Any other host is refused before connecting, and redirects to non-loopback hosts are refused. Cookies, cache and the system proxy are off.
Sharing (LAN proxy)Off by default, started per server with a confirmation, and only on a trusted network. It listens on the Mac's private LAN address only: never 0.0.0.0, never a VPN or tunnel, never a public IP. It accepts only private addresses on the same subnet and relays to that one server's port, so it can't be used to reach anything else. It stops when the server stops, when the Mac leaves the network, changes address or sleeps, and when Locals quits. Shares are never saved.
Trusted networksRecognised by the router's hardware address, so another network using the same 192.168.1.1 doesn't count. Router unknown means not trusted.
Start and WakeRuns the command shown in the UI through your login shell, in the project folder, only on your click. Commands rebuilt from other processes quote every word, so a crafted process title can't inject shell syntax. Project commands come from a fixed list of script names, never from text in package.json.
Start DoctorChecks read project files and ask your login shell which node and tools it would use, offline. Fixes run only on your click and show the exact command first. Commands are fixed templates filled from parsed values, so text from a project's files never reaches the shell. Fixes that change the whole Mac ask again; fixes that download are labelled. Copying .env never overwrites.
StopSignals only processes you own (the OS enforces this). It re-checks the process's start time first, so a reused PID is never hit. It refuses PID 0, PID 1 and itself.
Reading other processesEnvironment variables by value: __CFBundleIdentifier, TERM_PROGRAM, CLAUDE_CODE_ENTRYPOINT, LOCALS_STARTED, PORT, HOST, NODE_ENV. By presence only: CLAUDECODE, TMUX, VSCODE_PID, CURSOR_TRACE_ID, CODEX_*. Everything else is discarded while parsing.
Files~/Library/Application Support/Locals/ (recents, trusted networks) and ~/Library/Logs/Locals/ (output of servers Locals started). Folders are 0700 and files 0600. Log names are sanitised so they can't escape the log folder.
QR, AirDrop, clipboardOnly on your click, and only private LAN or .local links.

What remains, by design

  • A shared server is open to everyone on that network. That's the point of sharing. If a trusted network has guests, they can open it too. Share what you'd show them, and stop sharing when you're done.
  • Plain HTTP on the LAN. Traffic between your phone and your Mac isn't encrypted. Fine on your own network, and the reason sharing is limited to trusted ones.
  • Trust is a guard, not authentication. A hostile network could copy your router's hardware address. Shares still need your explicit click, end on sleep and on a network change, and aren't restored on relaunch.
  • Same-user access. Locals runs as you. Anything already running as your user could also edit its data files. That's not a new risk, since such a program can already run commands, and Wake always shows the exact command first.
  • Health checks send GET / to your dev servers every 10 seconds. Harmless for normal sites; a server with side effects on / would see those requests.
  • Not notarised yet. The current build is signed ad hoc, which is why macOS asks you to open it the first time. Each download has a SHA-256 checksum beside it.

Checked, not promised

The last audit covered a code review, the automated test suite including a dedicated security suite, and live checks of the release build (connections sampled over time, listening sockets while nothing is shared, the strings in the binary, and a proxy test against a loopback-only server). If you find something it misses, report it.