| Crates.io | lj |
| lib.rs | lj |
| version | 0.1.0 |
| created_at | 2026-01-11 08:08:24.487491+00 |
| updated_at | 2026-01-11 08:08:24.487491+00 |
| description | CLI tool to download magnets via Real-Debrid |
| homepage | |
| repository | https://github.com/mat-lo/lj |
| max_upload_size | |
| id | 2035386 |
| size | 86,020 |
A CLI tool to download magnet links via Real-Debrid with background downloading support.
lj dlnix run github:user/lj -- <magnet>
cargo build --release
cp target/release/lj /usr/local/bin/
# Download a magnet link (downloads to current directory)
lj "magnet:?xt=urn:btih:..."
# Check download progress
lj dl
# Set or update API key
lj set-key
On first run (or if no API key is configured), lj will prompt for your Real-Debrid API key.
Get your API key from: https://real-debrid.com/apitoken
The key is stored in ~/.config/lj/api_key (or equivalent on your OS).
lj <magnet>Downloads from a magnet link. Files are saved to the current directory.
lj dlShows all downloads with status, progress, and speed. Interactive commands:
c <n> - Cancel download #nr <n> - Remove completed/failed download #nC - Clear all completed/failed/cancelledq - Quitlj set-keyInteractively set or update your Real-Debrid API key.
Config files are stored in:
~/Library/Application Support/lj/~/.config/lj/Files:
api_key - Your Real-Debrid API tokendownloads/ - Per-download state filesRD_API_TOKEN - Real-Debrid API key (overrides config file)MIT