🚀 Open-Source HTTP/HTTPS Tunneling

Expose Local Web Servers to the Internet

Self-hosted HTTP/HTTPS tunneling for webhook testing and local development. Custom domains, no usage limits, complete privacy.

terminal
$ cgrok --port 3000
CGrok - Secure Tunnel
SESSION INFORMATION
Public URL: https://wild-dolphin-2b7b51.crisego.com
Local URL: http://localhost:3000
Status: 🟢 CONNECTED
Connected: 19:06:42
Commands: Ctrl+C=Exit | Ctrl+S=Stats | Ctrl+R=Reconnect | Ctrl+L=Clear
✅ 19:06:42 📊 Session started - Traffic will appear below
100%
Self-Hosted
No Limits
🔓
Open Source
🔒
Privacy First

Two Components, Complete Solution

Everything you need for HTTP/HTTPS tunneling

💻

cgrok

CLI Client

Install on your development machine. Connect to your cgrok-server and expose local web applications over HTTP/HTTPS instantly.

Advanced configuration management
Real-time metrics & monitoring
Auto-reconnection with backoff
Custom subdomain support
Built-in compression
# Install globally
npm install -g @crisego/cgrok
# Or use with npx
npx @crisego/cgrok --port 3000
View on NPM →
🖥️

cgrok-server

Tunneling Server

Deploy on your VPS or cloud server. Manage HTTP/HTTPS connections, handle requests, and provide secure tunneling for your team.

WebSocket connection management
Built-in rate limiting
Token & basic authentication
Custom subdomain allocation
Daemon mode operation
# Install on your server
npm install -g @crisego/cgrok-server
# Start the server
cgrok-server --port 5001
View on NPM →

Why Choose CGrok?

Self-hosted HTTP/HTTPS tunneling for web development

🎯

Full Control

Own your infrastructure. No third-party dependencies or vendor lock-in.

🌐

Custom Domains

Use your own domains and subdomains. Professional URLs for your team.

No Limits

Unlimited connections, bandwidth, and requests. Scale as you grow.

🔒

Privacy First

Your traffic stays on your servers. Complete data privacy and security.

🚀

Easy Setup

Built with Node.js and TypeScript. Simple installation and configuration.

👥

Team Collaboration

Multiple developers sharing one server. Perfect for distributed teams.

📊

Real-Time Metrics

Monitor requests, response times, and connection status in real-time.

🔄

Auto Reconnection

Intelligent retry system with exponential backoff. Never lose connectivity.

🛡️

Authentication

Token-based and basic auth support. Secure your tunneling infrastructure.

Quick Start

Get up and running in minutes

1

Install the Server

Deploy cgrok-server on your VPS or cloud server

# Install globally
npm install -g @crisego/cgrok-server
# Run interactive setup wizard
cgrok-server --setup
# Or start directly with custom port
cgrok-server --port 5001
2

Install the Client

Install cgrok CLI on your development machine

# Install globally
npm install -g @crisego/cgrok
# Run interactive setup wizard
cgrok --setup
# Or use with npx (no installation needed)
npx @crisego/cgrok --port 3000
3

Connect & Start Tunneling

Connect to your server and start exposing local applications

# Using saved configuration
cgrok --port 3000
# Or specify all options manually
cgrok --port 3000 \
--server wss://tunnel.yourdomain.com/_tunnel \
--subdomain my-app

💡 Pro Tip

Use the --setup flag to launch an interactive configuration wizard that guides you through all options and creates persistent config files automatically.

Configuration files are saved at ~/.cgrok/config.json (client) and ~/.cgrok-server/config.json (server).

CGrok vs. ngrok

Comparison for HTTP/HTTPS tunneling

Feature CGrok (Self-Hosted) ngrok Free ngrok Paid
Protocol Support HTTP/HTTPS Only HTTP, TCP, TLS HTTP, TCP, TLS
Custom Domains ✓ Unlimited Limited
Monthly Cost $0 (+ VPS hosting) $0 $8-39+/mo
Concurrent Tunnels 1 3-10
Data Privacy 100% Yours Third-party Third-party
HTTP Rate Limits Your Rules 40 req/min Higher
Team Members 1 1-5+
Open Source ✓ MIT License

Note: CGrok focuses on HTTP/HTTPS tunneling for web development and webhook testing. If you need TCP or UDP tunneling, consider ngrok or other alternatives that support those protocols.

Perfect For

Common use cases for CGrok

🔗

Webhook Testing

Test HTTP webhooks from GitHub, Stripe, PayPal, and other services on your local web server.

👨‍💻

Team Collaboration

Share web apps in development with teammates without deploying.

📱

Mobile App Development

Test mobile apps with local REST APIs over HTTPS.

🎨

Client Demos

Show clients your web projects without deploying to production.

🏠

Home Lab Projects

Access your home web server applications from anywhere via HTTPS.

🌐

API Development

Test and debug REST APIs with external services during development.

Ready to Get Started?

Take control of your tunneling infrastructure today. No credit card required.