A command-line tool for downloading files through the Real-Debrid service.
Provide a link from a supported file hoster (e.g. Rapidgator, 1Fichier) and rd-cli will unrestrict it via the Real-Debrid API and download the file at full speed.
- A Real-Debrid account with an API token
- Go 1.25+
Build from source:
git clone https://github.com/Opyd/rd-cli
cd rd-cli
go build -o rd-cli .rd-cli set-token # interactive prompt
rd-cli set-token YOUR_TOKEN_HERE # pass token directlyYour token is saved to user-config.json in the OS user config directory:
| OS | Path |
|---|---|
| Linux | ~/.config/rd-cli/user-config.json |
| macOS | ~/Library/Application Support/rd-cli/user-config.json |
| Windows | %AppData%\rd-cli\user-config.json |
rd-cli download <url> # download to current directory
rd-cli download <url> /path/to/dir # download to specific directory
rd-cli download <url> -n filename.mkv # custom filename
rd-cli download <url> /path/to/dir -n file # both| Command | Description |
|---|---|
set-token [token] |
Save your Real-Debrid API token |
get-config |
Display current configuration |
download <url> |
Unrestrict and download a file |
- Unrestrict link via Real-Debrid API
- Download file with progress bar
- Custom filename via
--nameflag - Custom output path as second argument
-
--pathflag instead of positional argument - Batch downloading (multiple links from file)
- Retry on network error with exponential backoff
- Resume interrupted downloads (HTTP Range header)
MIT