Open Source · MIT Licensev1.5.0 — What's new

Expose your local server in one command

MekongTunnel is a self-hosted SSH tunnel server. No signup, no config, no agents. Just run mekong 3000 and get a public HTTPS URL instantly.

MIT
Open Source
1,000
Tunnels
Go
Written in
mekong — zsh
~$█

Get started in seconds

Install the CLI

One binary. No dependencies. Works on macOS, Linux, and Windows.

Terminal
$curl -fsSL https://mekongtunnel.dev/install.sh | sh
$mekong login
$mekong 3000
Detects your OS and architecture automatically. Adds mekong to PATH and removes macOS quarantine if needed.

Or use raw SSH (no install needed)

Skip the CLI entirely — just use the ssh command you already have.

Basic

$ssh -t -R 80:localhost:3000 proxy.mekongtunnel.dev

With keep-alive (recommended)

$ssh -t -R 80:localhost:3000 -o ServerAliveInterval=60 -o ServerAliveCountMax=3 proxy.mekongtunnel.dev

With expiry

$ssh -o SetEnv=MEKONG_EXPIRE=48h -t -R 80:localhost:3000 proxy.mekongtunnel.dev

Replace 3000 with your local port. The -t flag is required — without it the server cannot display your URL. For raw SSH expiry, use SetEnv like MEKONG_EXPIRE=48h.

Also available as SDK

Simple by design

How it works

MekongTunnel uses standard SSH reverse port forwarding. No agents, no proprietary protocol, no account required.

  1. 01

    Run the CLI

    Run `mekong 3000` in your terminal. The CLI connects to MekongTunnel via SSH reverse port forwarding.

    $mekong 3000
  2. 02

    Get a Public URL

    The server assigns a unique HTTPS subdomain and displays it in your terminal. The URL is copied to clipboard automatically.

    $https://happy-tiger-a1b2.proxy.mekongtunnel.dev
  3. 03

    Share & Demo

    Paste the URL anywhere — your phone, a client's browser, a webhook endpoint. All traffic proxies through to your local app.

    $curl https://happy-tiger-a1b2.proxy.mekongtunnel.dev

Under the hood

SSH reverse forwarding

One command opens an SSH tunnel from your machine. Mekong Edge gives it a public HTTPS address.

  • No port forwarding
  • HTTPS automatic
  • Replies stream back over the same tunnel

Everything you need

Built-in features

No plugins, no extensions. Everything ships in a single ~6 MB binary.

Auto-reconnect

The mekong CLI automatically reconnects with exponential backoff if the tunnel drops.

QR Code

Your public URL is printed as a QR code in the terminal. Scan with your phone instantly.

WebSocket Support

WebSocket connections are detected and proxied transparently. No special config needed.

HTTPS by Default

TLS is terminated at the server. Every tunnel gets a valid HTTPS URL out of the box.

Zero Config

One command. No YAML, no accounts, no dashboard. Just your port and you're live.

Abuse Protection

Per-IP rate limiting, sliding-window connection limits, and automatic IP blocking for abusers.

Live Request Log

Every HTTP request is streamed live to your SSH terminal — method, path, status, and latency.

Self-Hostable

Run your own MekongTunnel server on any VPS. Full control, your own domain, MIT licensed.

Multiple Ports

Expose several local ports at once — mekong 3000 8080 — each gets its own public URL.

Daemon Mode

Run tunnels in the background with mekong -d 3000. Check status or stop anytime.

Pricing

Free to start. Pay when you grow.

Every plan includes HTTPS tunnels, WebSocket support, and live request logs.

Free

Free
  • 4 active tunnels
  • 5 GB/month
  • 1d tunnel lifetime
Get started
For Students

Student

Free
  • 6 active tunnels
  • 20 GB/month
  • 7d tunnel lifetime
  • 1 reserved subdomain
  • Request inspection
  • 7-day request logs
Get started
Most Popular

Pro

$10/mo
  • 10 active tunnels
  • Unlimited bandwidth
  • Persistent tunnels
  • 3 reserved subdomains
  • 1 custom domain
  • Request inspection
  • 30-day request logs
  • Priority support
Not available yet
For Teams & Schools

Organization

$40/mo
  • Unlimited tunnels
  • Unlimited bandwidth
  • Persistent tunnels
  • Request inspection
  • 90-day request logs
  • Priority support
Not available yet

Transparent

Server limits

All limits apply to the public hosted instance. Self-hosters can adjust everything via env vars.

Max tunnels per IP1,000
Total server tunnelsUnlimited
New SSH connections/minUnlimited
IP auto-blockingDisabled
Requests per tunnelDisabled
Max request body1 GB
WebSocket transferUnlimited
Inactivity timeout2h
Max tunnel lifetime1w
SSH handshake timeout30s

Open Source

Run your own tunnel server

MekongTunnel is MIT licensed. Deploy on any VPS with Docker in under 5 minutes. Your domain, your rules, your data.