
OneDL is a universal downloader for the command line — a single tool to download content via torrents, hosters, MEGA folders, and direct HTTP(S) links with support for Real-Debrid, AllDebrid, Premiumize.me and TorBox.
Whether you're pasting a magnet link or unlocking hoster URLs, OneDL handles everything from resolving links to downloading files with a clean, interactive terminal interface.
Make sure Python 3.10 or newer is installed:
python3 --version
If it's not installed, download it from python.org or install it using your system’s package manager.
The only required external Python packages are requests and bencodepy. Install them with:
pip install requests bencodepy
Use
pip3if you're on a system wherepiprefers to Python 2.
Download OneDL.py directly from GitHub:
curl -o OneDL.py https://raw.githubusercontent.com/ellite/OneDL/refs/heads/main/OneDL.py
curl -o ~/.onedl.conf https://raw.githubusercontent.com/ellite/OneDL/refs/heads/main/.onedl.conf
chmod +x OneDL.py
To make onedl available from any folder, create a hard link:
sudo ln OneDL.py /usr/local/bin/onedl
Now you can simply run:
onedl
curl -o OneDL.py https://raw.githubusercontent.com/ellite/OneDL/refs/heads/main/OneDL.py
Run the script:
bash
onedl
Choose how to provide your links:
Use a debrid service
If using a debrid service:
Paste your magnet, hoster, or HTTP(S) URL when prompted, or upload a .torrent or .nzb file
Select specific files (if applicable), and OneDL will download them to your current folder.
OneDL uses a configuration file to store your API keys securely. This file is named .onedl.conf and is usually located in your home directory.
nano ~/.onedl.conf
{
"REAL_DEBRID_API_TOKEN": "",
"ALLDEBRID_API_TOKEN": "",
"PREMIUMIZE_API_TOKEN": "",
"TORBOX_API_TOKEN": "",
"DEBRID_LINK_API_TOKEN": ""
}
Tokens are optional — just set the ones you have access to.

AGPLv3
$ claude mcp add OneDL \
-- python -m otcore.mcp_server <graph>