local.vibe
myapp.vibe instead of localhost:3000 — for every project on your Mac or Windows box.
Dev work drifts into a mess of localhost:3000, localhost:5173, localhost:8080 tabs. Which port was the blog on again? local.vibe gives every local project a friendly .vibe hostname and puts start/stop controls in one dashboard at https://local.vibe.
macOS and Windows. Single Go binary. No external services.
What you get
- Friendly hostnames —
myapp.vibe resolves to your local app over HTTP and HTTPS
- Auto-assigned ports — drop
port from vibe.json, vibe picks a free one and exposes it as $PORT
- Dashboard — start/stop managed apps, add bookmarks, pick icons, switch list/grid
- HTTPS built-in — a local CA is trusted in your Keychain; per-route SANs hot-reload without restart
- Agent-friendly — paste
curl http://localhost:7999/setup.md into Claude Code / Cursor and it understands the setup
- Git worktrees —
vibe start in a worktree gets its own branch.myapp.vibe on its own port, no config
- Bookmark anything — route
tailscale.vibe → your Tailscale machine, office.vibe → Home Assistant
- Peers (experimental) — pair two machines and open each other's apps by name:
design.vibe on your laptop reaches the app running on your desktop
- Zero hidden deps — single binary, Cobra + Go stdlib, no Node, no Docker
Install
macOS
git clone https://github.com/graiz/local.vibe.git
cd local.vibe
./setup.sh
Installs Homebrew (if missing), Go, dnsmasq, /etc/resolver/vibe, pf rules for port forwarding, and a local TLS CA trusted in your Keychain — then opens the dashboard.
Run it in Terminal on the Mac itself: macOS asks you to approve trusting the CA, and a session without a screen (SSH) can't show that prompt. Setup still finishes everything else over SSH and tells you to re-run sudo vibe setup locally to complete the trust step; re-running it never disturbs a CA that's already trusted.
Windows (preview)
Run from an elevated terminal (right-click → "Run as administrator", or sudo on Win11 24H2+):
git clone https://github.com/graiz/local.vibe.git
cd local.vibe
.\setup.bat
setup.bat is a thin wrapper that invokes setup.ps1 with the right ExecutionPolicy override, so you don't need to touch Set-ExecutionPolicy first. If you'd rather run the .ps1 directly, set the policy for the session and call it explicitly:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force
.\setup.ps1
The script installs Go via winget if missing, builds the binary, copies it to %LOCALAPPDATA%\Programs\vibe\vibe.exe, then runs vibe setup which:
- before any state change, checks UDP :53 is bindable; if it's held (Acrylic DNS, Internet Connection Sharing, NextDNS, Pi-hole are common), names the offender and offers a clean abort with no system modifications
- generates the local TLS CA + leaf cert and trusts it via
certutil -addstore Root
- adds netsh portproxy rules so 80→7999 and 443→7443
- snapshots each adapter's pre-vibe DNS to
~/.vibe/dns-backup.json, then repoints every connected adapter's primary DNS to 127.0.0.1 (the daemon embeds a tiny resolver that answers *.vibe locally and forwards everything else to whichever upstream answered first — your previous DNS server, falling back to 1.1.1.1 / 8.8.8.8 / 9.9.9.9)
- registers a Scheduled Task
vibe triggered on logon, running at your normal (medium) integrity level — the daemon's runtime needs are all unprivileged on Windows (binding low ports doesn't require admin, unlike POSIX), so dev servers and dashboard handlers don't inherit Administrator
- when a managed route's port is held by another process, the dashboard shows the offender's PID + image name (via
tasklist) and offers a one-click "Kill PID and Retry"
vibe uninstall reverses every step and restores each adapter's DNS from the snapshot. Three safety layers ensure you never end up with a dead resolver: loopback (127.x.x.x) entries are stripped at snapshot time, again at restore time, and a final pass after restore force-resets to DHCP on any adapter still pointing at vibe's removed listener. Re-running vibe setup preserves the original backup rather than overwriting it with the post-setup state, so the very first pre-vibe configuration is what gets restored at uninstall.
If something does go wrong, manual recovery is one command per adapter:
netsh interface ipv4 set dnsservers name="Wi-Fi" dhcp