Quickstart Guide
This guide will walk you through downloading your first file with Surge in under 5 minutes.Your First Download
Launch the TUI
Simply run You’ll see the Surge dashboard with a beautiful interface showing your download queue, progress, and speed graphs.
surge to enter the interactive Terminal User Interface:Surge automatically starts an HTTP API server on port 1700 (or the next available port) for browser extension integration and remote control.
Add a Download
There are several ways to add downloads:Method 1: Start with URLs (Recommended)Queue downloads directly when launching:Method 2: Use a Batch FileCreate a text file with URLs (one per line):Then run:Method 3: Combine Both
Specify Output Directory
Control where files are downloaded:Or set a default download directory in your settings file at
~/.config/surge/settings.json:Monitor Progress
The TUI shows real-time information:
- Download progress with percentage and speed
- Active workers downloading chunks in parallel
- Speed graphs showing bandwidth utilization
- Queue status for pending downloads
↑/↓- Navigate downloadsp- Pause/Resume selected downloadd- Delete downloadq- Quit
Advanced Usage
Download with Multiple Mirrors
Speed up downloads by using multiple mirrors simultaneously:Surge distributes workers across all available mirrors and automatically handles failover if a mirror becomes unavailable.
Server Mode (Headless)
Run Surge in the background without the TUI—great for servers or Raspberry Pi:Get Your API Token
In another terminal:Save this token—you’ll need it for CLI commands and API requests.
The server binds to
0.0.0.0 by default, making it accessible via localhost and your local network IP.Remote TUI
Connect to a running Surge daemon from another terminal or machine:Resume Interrupted Downloads
Surge automatically saves download state. If interrupted:Browser Extension Integration
Intercept browser downloads and send them straight to Surge:Install the Extension
Chrome/Edge/Brave:
- Clone the Surge repository
- Navigate to
chrome://extensions - Enable “Developer mode”
- Click “Load unpacked”
- Select the
extension-chromefolder
- Stable: Get the Add-on
- Development: Load
manifest.jsonfromextension-firefoxfolder viaabout:debugging
Common Operations
Global Flags
These flags work with all commands:CLI Commands Quick Reference
Next Steps
CLI Reference
Explore all available commands, flags, and options.
Settings Guide
Configure Surge to match your preferences.
API Reference
Integrate Surge with your automation workflows.
Optimizations
Learn how Surge achieves blazing fast speeds.