Wormhole exposes a local HTTP server on a public HTTPS URL with one command, using a Go client and a Cloudflare Workers relay. No account is required to start; GitHub sign-in unlocks custom subdomains.
Overview
Wormhole is a command-line utility that puts a publicly reachable URL in front of a web server running on your machine, so you can share in-progress work, accept webhooks, or preview an app from another device. A single HTTP tunnel command targets your local port; TLS terminates at the Cloudflare edge while your process receives traffic through a WebSocket-based relay.
The client reaches the edge, obtains a subdomain under the project’s DNS zone, and passes inbound HTTP to your local service. A Cloudflare Worker sends each hostname to the matching Durable Object session, and the CLI carries responses back over the same path. WebSockets can traverse the tunnel, and dropped connections retry with exponential backoff.
Starting a tunnel also runs a local traffic inspector that streams requests and responses, displays headers and bodies, and supports filtering, one-click replay, and HAR export. Use an interactive terminal UI with color-coded logs or a headless plain-log mode. Optional GitHub sign-in reserves memorable subdomains within per-user limits.
Default protections block sensitive dot-segments and node_modules paths before traffic reaches your server, tighten inspector CORS to loopback origins, and sanitize remote error text when the local service is down. Install via shell script, Homebrew on macOS, release binaries, or by building the Go client from source. A self-hosted relay is on the future roadmap and is not the default deployment path.
Key features
- One-command public HTTPS tunnels
- Cloudflare Workers edge relay
- Free custom subdomains via GitHub login
- Local traffic inspector with live stream
- Request replay and HAR export
- WebSocket passthrough
- Automatic reconnect with backoff
- Terminal UI or headless logging
Use cases
- Sharing a local dev server publicly
- Testing incoming webhooks locally
- Previewing apps on other devices
- Inspecting and replaying HTTP traffic
- Tunneling WebSocket apps during development
Open-source alternative to
ngrok“Open-source ngrok alternative. Expose your localhost to the internet with one command. Built with Go + Cloudflare Workers.” source