Use stunl without an account, or set auto-shutdown timers on any tunnel
Pass -anonymous to create a tunnel with no API key and no account. Useful for quick one-off shares when you don't need the full feature set.
$ stunl -port 3000 -anonymous
● STUNL (anonymous)
╭── ◎ ── HTTP
│ HTTPS https://anon-7f3k2.stunl.io
│ Local localhost:3000
│ Expires 30 minutes
| Limit | Value |
|---|---|
| Session duration | 30 minutes |
| Bandwidth | 100 MB |
| Protocol | HTTP only |
| Tunnels per day per IP | 3 |
| Visitor warning | Interstitial page shown before reaching your site |
Creating a free account at portal.stunl.com removes most anonymous restrictions without requiring a credit card.
| Anonymous | Free Tier | |
|---|---|---|
| Session duration | 30 min | 60 min |
| Bandwidth | 100 MB | 2 GB |
| Protocols | HTTP | HTTP + WebSocket |
| Visitor warning | Yes | No |
| API key required | No | Yes |
The -duration flag sets an auto-shutdown timer on any tunnel (not just anonymous). When the duration expires, the tunnel shuts down gracefully with a 30-second cleanup period.
$ stunl -port 8080 -duration 2h
● STUNL
╭── ◎ ── HTTP
│ HTTPS https://abc123.stunl.io
│ Local localhost:8080
│ Expires 2 hours
| Flag | Description |
|---|---|
-anonymous |
Run without an API key (anonymous limits apply) |
-duration |
Auto-shutdown after duration (e.g., 30m, 2h, 24h) |
Anonymous mode skips API key authentication entirely. The server assigns a random subdomain and enforces strict limits. A warning interstitial is shown to visitors before they reach your site, informing them the tunnel is anonymous.
Duration starts a countdown timer when the tunnel connects. At expiry, the CLI sends a graceful shutdown signal and waits up to 30 seconds for in-flight requests to complete before closing the connection.
$ stunl -port 3000 -anonymous
$ stunl -port 8080 -duration 2h -id staging-preview
$ stunl -port 9000 -duration 30m
$ stunl -port 4000 -duration 24h -id overnight-test