Installation
Surge is available on multiple platforms. Choose the method that works best for you.System Requirements
Before installing Surge, ensure your system meets these requirements:- Operating System: Linux, macOS, or Windows
- Go Version: 1.24.4+ (only if installing via
go install) - Terminal: ANSI color support recommended for the best TUI experience
Installation Methods
- Prebuilt Binary
- macOS (Homebrew)
- Windows (Winget)
- Arch Linux (AUR)
- Go Install
- Docker
Download Prebuilt Binary
The easiest method—just download and run.Download the Latest Release
Visit the Surge Releases page and download the binary for your platform.
Move to PATH (Optional)
For easy access from anywhere:Linux/macOS:Windows:
Add the surge directory to your PATH environment variable.
Post-Installation
Generate API Token
Surge uses a bearer token for API authentication. Generate or view your token:The token is automatically generated on first run and stored in
~/.local/state/surge/token (Linux) or equivalent on other platforms.Configuration Directories
Surge uses the following directories:- State:
~/.local/state/surge/(database, token) - Logs:
~/.local/state/surge/logs/ - Settings:
~/.config/surge/settings.json
Next Steps
Quickstart Guide
Learn how to download your first file with Surge.
CLI Reference
Explore all available commands and options.