Installation
Install the mekong CLI on macOS, Linux, or Windows.
Installation
mekong CLI (Recommended)
The mekong CLI is the easiest way to use MekongTunnel. It handles SSH connections, auto-reconnect, QR code display, and clipboard copying automatically.
macOS โ Apple Silicon (M1, M2, M3, M4)
sudo curl -L https://github.com/MuyleangIng/MekongTunnel/releases/download/v1.4.9/mekong-darwin-arm64 -o /usr/local/bin/mekong
sudo chmod +x /usr/local/bin/mekong
sudo xattr -d com.apple.quarantine /usr/local/bin/mekong
mekong 3000macOS โ Intel
sudo curl -L https://github.com/MuyleangIng/MekongTunnel/releases/download/v1.4.9/mekong-darwin-amd64 -o /usr/local/bin/mekong
sudo chmod +x /usr/local/bin/mekong
sudo xattr -d com.apple.quarantine /usr/local/bin/mekong
mekong 3000The xattr line removes macOS Gatekeeper quarantine so the binary runs without a security warning. It's safe to skip if you build from source.
Linux โ amd64
sudo curl -L https://github.com/MuyleangIng/MekongTunnel/releases/download/v1.4.9/mekong-linux-amd64 -o /usr/local/bin/mekong
sudo chmod +x /usr/local/bin/mekong
mekong 3000Linux โ arm64
sudo curl -L https://github.com/MuyleangIng/MekongTunnel/releases/download/v1.4.9/mekong-linux-arm64 -o /usr/local/bin/mekong
sudo chmod +x /usr/local/bin/mekong
mekong 3000Windows
- Download
mekong-windows-amd64.exe - Rename it to
mekong.exe - Move it to a directory in your
PATH(e.g.C:\Windows\System32) - Open a terminal and run
mekong 3000
Build from source (Go 1.24+)
git clone https://github.com/MuyleangIng/MekongTunnel.git
cd MekongTunnel
make build-client
# binary at: bin/mekongOr install directly via Go:
go install muyleanging.com/mekongtunnel/cmd/mekong@latestUpgrading
If you already have mekong installed, just run:
mekong updateThe CLI detects your platform, downloads the latest release, and replaces the binary in-place. No need to re-run the curl install script.
Raw SSH (no install needed)
Skip the CLI entirely and use the ssh command you already have.
Basic
ssh -t -R 80:localhost:3000 mekongtunnel.devWith keep-alive (recommended)
ssh -t -R 80:localhost:3000 -o ServerAliveInterval=60 -o ServerAliveCountMax=3 mekongtunnel.devWith expiry
ssh -o SetEnv=MEKONG_EXPIRE=48h -t -R 80:localhost:3000 mekongtunnel.devReplace 3000 with your local port. The -t flag is required, or the server cannot display your tunnel URL.
If your SSH client supports passing remote arguments cleanly, you can also use:
ssh -t -R 80:localhost:3000 mekongtunnel.dev --expire=1wVerify the install
mekong --helpYou should see the usage information and available flags.
