lewp is a macOS local domain router. Run one command in your project directory and get a stable, trusted-HTTPS URL — no port to remember. It routes traffic; it never starts your app.
$lewp lease
The problem
Running several apps at once means memorizing a pile of ports. Add a few git worktree checkouts and it gets worse — each one wants its own URL, its own port, its own cert warning to click through.
BEFORE
AFTER
How it works
lewp is not a process manager. It doesn't boot Rails, Vite, or Next for you — it just routes browser traffic to the port you leased.
What you get
Stable, human-readable URLs derived from your directory — the same one every time.
A locally-trusted certificate, so no more clicking through browser warnings.
Every checkout gets its own hostname and port, cleanly, with no collisions.
lewp routes traffic and gets out of your way. You start your apps however you like.
Use OAuth-friendly local domains that providers accept where localhost is rejected.
A port stays assigned to your project and survives restarts, so it stays reliable.
Install
Requires macOS · Go 1.25+
Install script
$curl -fsSL https://raw.githubusercontent.com/scottwater/lewp/main/install.sh | bash
Or with Go
$go install github.com/scottwater/lewp/cmd/lewp@latest