Worktree Gateway
A Go CLI that gives every Git worktree its own URL. When several branches or AI agents run side by side, each checkout gets a stable local hostname and port, and webhooks and OAuth callbacks are routed to the right one. Built on Caddy, with cloudflared or ngrok for tunnels.
- Year
- 2026
- Platform
- CLI
- Type
- Personal
- Status
- Shipped
What it does
- {branch}.{project}.localhost over HTTP and HTTPS, no /etc/hosts edits
- Stable, collision-free ports for every service
- Multiple services per worktree, each with its own hostname
- Picks up new, removed and renamed worktrees automatically
- One tunnel for webhooks into any worktree, with allowlisted paths
- One OAuth redirect URI for every worktree via signed state
- Webhook capture and replay with credentials redacted