Installation
Install the Localport CLI on macOS, Linux, or Windows in under 30 seconds. One binary, zero dependencies. Homebrew, curl, or manual download.
Localport is a single binary with zero dependencies. No runtime, no Docker, no package managers required. Download it and run it.
Install Recommended#
Run the command that corresponds to your operating system:
Install via Homebrew:
brew install localport/tap/localport
Or use the install script:
curl -fsSL https://localport.io/install.sh | shInstall with the install script:
curl -fsSL https://localport.io/install.sh | sh
This detects your CPU architecture, downloads the correct binary, and places it in /usr/local/bin.
Install with the install script (PowerShell):
irm https://localport.io/install.ps1 | iex
This downloads the correct binary, verifies its checksum, installs it under
%LOCALAPPDATA%\Programs\localport, and adds it to your user PATH.Manual Installation#
Download the latest build for your platform from GitHub:
Verify your download with checksums.txt.
Make it executable, clear the Gatekeeper quarantine flag macOS adds to downloads, then move it onto your PATH:
chmod +x localport-darwin-*
xattr -d com.apple.quarantine localport-darwin-*
sudo mv localport-darwin-* /usr/local/bin/localportVerify your download with checksums.txt.
chmod +x localport-*
sudo mv localport-* /usr/local/bin/localportVerify your download with checksums.txt.
Rename it and clear the download block Windows adds to new files:
Rename-Item localport-windows-amd64.exe localport.exe
Unblock-File localport.exe
Then move localport.exe to a folder in your PATH, or add its location to your PATH environment variable.
Verify the installation#
localport --version
You should see the version number. If you get "command not found," make sure /usr/local/bin is in your PATH.
Next steps#
- Quick Start. Your first tunnel in under 60 seconds, token included from the dashboard.
- HTTP Tunnels. Share a web app with a public HTTPS URL.
- TCP Tunnels. Expose a database, game server, or SSH.