About ZapTun

Zaptun is a fast, open-source reverse tunnel built in Go. It lets you expose local ports with a secure public URL—ideal for testing webhooks, demos, or remote access without complex setups.


Installation

Download with cURL, grant permissions, and move to your PATH.

# Install latest release
curl -fsSL https://zaptun.com/install.sh | sudo bash

Open PowerShell as Administrator and run:

irm https://zaptun.com/install.ps1 | iex

Usage

Authenticate

First, get an auth token from our auth server. Visit this link, then authenticate the CLI.

# Replace <your-auth-token> with the one you received
zaptun auth <your-auth-token>

Start a Tunnel

Expose a local web server (e.g., on port 3000) to the internet.

# Expose local port 3000 via HTTP
zaptun http 3000

You can also expose any TCP service, like SSH.

# Expose local port 22 via TCP for SSH
zaptun tcp 22

Serve Static Files

Instantly share a local folder or host a static website directly from your machine.

# Serve the current directory
zaptun serve .

# Or serve a specific folder
zaptun serve ./my-website