ngsrv vs untun
npm wrapper around Cloudflare quick tunnels. One command, no cloudflared install. ngsrv is a managed tunnel with a Go CLI, YAML config, reserved subdomains, and security policies on every plan. Same problem, different trade-offs.
What is untun?
npm wrapper around Cloudflare quick tunnels. One command, no cloudflared install.
Typical command:
npx untun tunnel http://localhost:3000
What is ngsrv?
ngsrv http 3000
Declarative multi-tunnel config via ngsrv.yml, dashboard analytics, custom domains, and edge policies (IP allowlist, rate limit, geo, header auth) without a separate Zero Trust product.
At a glance
| ngsrv | untun | |
|---|---|---|
| HTTP tunnel command | ngsrv http 3000 | npx ... |
| Account required | Yes (free) | No |
| Stable URLs | Reserved subdomains + custom domains | Random trycloudflare.com URL per session. |
| Security policies | Built into tunnel (free tier) | Same as Cloudflare quick tunnels. |
| TCP tunnels | Yes (ngsrv tcp) | HTTP only via the wrapper |
Where ngsrv fits better
Stable subdomains, custom domains, and security policies without nesting inside Cloudflare's quick tunnel flow.
Teams also pick ngsrv when they want:
- Config in git (
ngsrv.yml) instead of one-off shell commands - Webhook URLs that stay the same across restarts
- Structured logs and
/metricsfor CI pipelines
Where untun fits better
You want trycloudflare without installing cloudflared globally.
No shame in using the tool that matches your constraints.
Switching over
Replace npx untun tunnel http://localhost:PORT with ngsrv http PORT.
- Install:
brew install ngsrv/tap/ngsrvorcurl -fsSL https://get.ngsrv.com | bash - Auth:
ngsrv token <YOUR_TOKEN> - Replace the untun command with
ngsrv http <port>
FAQ
Is ngsrv a drop-in replacement for untun? For HTTP preview and webhooks, usually yes. For their specific platform features, check the table above.
Does ngsrv cost money? Free tier covers one tunnel, one custom domain, 10GB/month, and one policy per security type. Pro removes the Free visitor warning page. See /pricing.
Can I use both? Sure. Lots of teams keep untun for emergencies and ngsrv for day-to-day sharing.