Run setup once
Installs cloudflared if needed, authenticates Cloudflare, creates your tunnel, writes config, and can auto-start both services.
tunnel setupA local reverse proxy with Cloudflare Tunnel routing. No port forwarding. No firewall rules. Just run one command.
Features
$ tunnel 5173
✓ Connected to Cloudflare Tunnel
→ https://5173.yourdomain.com
Keep this window open to maintain the tunnel.
$ tunnel list
PORT URL STATUS
5173 5173.yourdomain.com active
8080 8080.yourdomain.com active
Quick start
Installs cloudflared if needed, authenticates Cloudflare, creates your tunnel, writes config, and can auto-start both services.
tunnel setupPrints https://5173.yourdomain.com and keeps it discoverable in tunnel list.
tunnel 5173Traffic flows browser → Cloudflare edge → cloudflared tunnel → requests-proxy (:7999) → localhost:<port>.
Yes. Register aliases with tunnel --name <name> <port> and use URLs like https://api.yourdomain.com.
The install script supports macOS and Linux on amd64 and arm64.
By default it blocks sensitive ports, rejects nested subdomains, limits body size, and only proxies to 127.0.0.1 targets.