Get up and running with stunl in under 5 minutes
Install stunl using your preferred package manager or download the binary directly.
$ brew install stunl/tap/stunl
$ curl -fsSL stunl.com/install.sh | bash
# Download from GitHub releases
https://github.com/stunl/cli/releases/latest
# Start any local server (Python, Node, etc.)
$ python -m http.server 3000
# or
$ npm run dev # typically starts on port 3000
Get your key at portal.stunl.com (free tier available)
$ export STUNL_API_KEY=st_live_xxx
$ stunl -port 3000
● STUNL
╭── ◎ ── HTTP
│ HTTPS https://abc123.stunl.io
│ HTTP http://abc123.stunl.io
│ Local localhost:3000
Your local server is now accessible from anywhere! Share the URL with teammates, clients, or use it for webhook testing.
Sign up at portal.stunl.com to get your API key. Free tier with no credit card required.
# Set your API key
$ export STUNL_API_KEY=st_live_xxx
# Create a tunnel
$ stunl -port 3000
-id myapp)
stunl can be configured via command-line flags, environment variables, or a config file.
# Set your API key (persists across sessions)
$ export STUNL_API_KEY=st_live_your_key_here
# Optional: Use a different server
$ export STUNL_SERVER=grpc.stunl.com
# Generate example config
$ stunl -init-config
# View current configuration
$ stunl -show-config
$ stunl -port 3000 -id my-react-app
$ stunl -port 8080 -password secret123
$ stunl -host 172.17.0.2 -port 80
$ stunl -protocol tcp -port 5432 -id mydb
Make sure your local server is running and listening on the specified port.
stunl -port 3000 -host localhost
Make sure you've exported your API key correctly. Check for typos or extra spaces.
echo $STUNL_API_KEY
Logs are written to ~/.stunl/logs/. Check the latest log file for detailed information.