Documentation
Learn how to use wsgrok to create secure tunnels to your local development environment
Getting Started
Installation
Install wsgrok client using one of the following methods:
Linux / macOS
curl -sSL https://wsgrok.com/install.sh | bash
Windows (PowerShell)
iwr https://wsgrok.com/install.ps1 | iex
Manual Download
Visit the Download page to download binaries for your platform.
Authentication
Before using wsgrok, you need to authenticate with your account:
- Sign up or log in at wsgrok.com
- Go to your Profile page
- Copy your authorization token
- Run the authentication command:
wsgrok --auth
Paste your token when prompted. Your credentials will be securely stored in ~/.wsgrok/credentials
Basic Usage
Once authenticated, you can create a tunnel with a simple command:
wsgrok <port> <subdomain>
Example:
wsgrok 3000 myapp
This will create a tunnel from https://myapp.wsgrok.com to your local service running on port 3000.
Alternative Syntax
You can also use flags:
wsgrok -port 3000 -subdomain myapp
Advanced Options
Custom Client ID
wsgrok 3000 myapp -client-id my-custom-id
Specify a custom client identifier (auto-generated by default)
Multiple Connections
wsgrok 3000 myapp -connections 4
Use multiple parallel connections (1-4) for better performance (default: 2)
Tunnel Configuration
Configure your tunnels through the tunnel manager:
- Basic Authentication: Protect your tunnel with username/password
- IP Whitelisting: Restrict access to specific IP addresses
- Enable/Disable: Turn tunnels on or off without deleting them
HTTP Request Inspection
Monitor and debug HTTP traffic in real-time using the HTTP Inspector:
- View all incoming HTTP requests and responses
- Inspect headers, body, and status codes
- Replay requests with or without modifications
- Edit and resend requests for testing
Visit the HTTP Inspector to start monitoring your tunnels.
Troubleshooting
Authentication Errors
If you see authentication errors, refresh your credentials:
wsgrok --auth
Connection Issues
Ensure your local service is running and accessible on the specified port.
Subdomain Already in Use
Choose a different subdomain or delete the existing tunnel from the management console.
Need Help?
If you encounter any issues or have questions:
- Check your tunnel status in the management console
- Review the troubleshooting section above
- Contact support through your account settings
