🎬 TorBox Media Server
A single-command, zero-storage personal streaming setup - powered by TorBox cloud.
Your request → TorBox finds & stores → You stream. Zero local storage.
A single script that installs, configures, and runs a complete debrid-powered media server using Docker. No media is stored locally - everything streams from TorBox's cloud. Think of it as your own personal Netflix where you decide what's available, backed by TorBox's cloud download and cache infrastructure.
Disclaimer: This is an independent open-source project and is not affiliated with or endorsed by TorBox. This project does not condone or allow piracy; users are solely responsible for ensuring they have the legal right to access and stream any content.
⚡ Quick Start
Linux
git clone https://github.com/nordicnode/TorBox-Media-Server.git && cd TorBox-Media-Server
chmod +x setup.sh && ./setup.sh
For unattended installs:
TORBOX_API_KEY="your-api-key" TORBOX_MEDIA_SERVER="plex" ./setup.sh --yes
Run ./setup.sh --help for all available options.
CasaOS (Ubuntu)
SSH into your CasaOS box. You must pass your TorBox API key (the curl one-liner cannot prompt interactively):
curl -fsSL https://raw.githubusercontent.com/nordicnode/TorBox-Media-Server/main/install-casaos.sh | TORBOX_API_KEY="your-api-key" bash
What it does:
- Clones source to
/DATA/AppData/torbox-media-server-src
- Installs configs + containers to
/DATA/AppData/torbox-media-server
- Mounts media at
/DATA/Media/torbox-media
- Exposes ports on your LAN (not just localhost)
After install, open Seerr at http://YOUR-CASAOS-IP:5055 (replace with your box's IP).
cd /DATA/AppData/torbox-media-server && ./manage.sh status
Containers run via Docker Compose - they won't appear as CasaOS app tiles. Use the URLs above or manage.sh urls.
If install failed or nothing is running, re-run the curl command above (it's safe to re-run), or manually:
cd /DATA/AppData/torbox-media-server-src
TORBOX_INSTALL_DIR=/DATA/AppData/torbox-media-server TORBOX_CASAOS=true TORBOX_API_KEY="your-api-key" ./setup.sh --yes
cd /DATA/AppData/torbox-media-server && ./manage.sh start
Windows
Open PowerShell as Administrator and run:
git clone https://github.com/nordicnode/TorBox-Media-Server.git
cd TorBox-Media-Server
.\setup.ps1
For unattended installs:
$env:TORBOX_API_KEY="your-api-key"; $env:TORBOX_MEDIA_SERVER="plex"; .\setup.ps1 -y
Run .\setup.ps1 --help for all available options.
Prerequisites:
- Linux: A Linux machine with an internet connection, and a TorBox paid plan. The script auto-installs Docker, FUSE, curl, jq, and openssl.
- Windows: A Windows machine running Windows PowerShell 5.1+ or PowerShell Core, with Docker Desktop installed and running, and a TorBox paid plan.
📑 Table of Contents
How It Works
You search for a movie in Seerr (or Radarr/Sonarr)
│
▼
Radarr/Sonarr search Prowlarr's indexers for the best torrent
│
▼
The torrent is sent to Decypharr (which pretends to be qBittorrent)
│
▼
Decypharr sends the torrent hash to TorBox via its API
│
▼
TorBox checks its cache - if someone else already downloaded it,
it's available INSTANTLY. Otherwise, TorBox downloads it in the cloud.
│
▼
Decypharr mounts TorBox's storage via WebDAV and creates symlinks
(shortcuts) that point to the cloud files
│
▼
Plex or Jellyfin reads these symlinks and streams the content
to any device on your network - phone, TV, tablet, computer
Example: Requesting Your First Movie
- You open Seerr in your browser and search for "Inception"
- You click "Request" - Seerr tells Radarr to find it
- Radarr asks Prowlarr to search torrent indexers for the best quality version
- Prowlarr finds a 1080p Bluray torrent and sends it back to Radarr
- Radarr sends the torrent to Decypharr (which looks like qBittorrent to Radarr)
- Decypharr sends the torrent hash to TorBox - TorBox already has it cached (popular movie!), so it's available instantly
- Decypharr creates a symlink:
/movies/Inception (2010) [imdbid-tt1375666]/Inception (2010) [Bluray-1080p].mkv
- Radarr imports the file and notifies Plex/Jellyfin
- You open Plex or Jellyfin on your TV and press play - it streams directly from TorBox's cloud
The whole process takes seconds for cached content (most popular movies/shows).
Architecture
User Request Search & Automation Cloud Download
┌───────────┐ request ┌────────────┐ search ┌──────────────┐
│ Seerr │ ──────────→│ Radarr │ ─────────→│ Prowlarr │
│ :5055 │ │ Sonarr │ │ :9696 │
└───────────┘ └─────┬──────┘ │ + Byparr │
│ grab torrent └──────────────┘
▼
┌──────────────┐ TorBox API
│ Decypharr │ ──────────────→ TorBox Cloud
│ :8282 │ (download/cache)
│ (mock qBit) │ ←── WebDAV ──── TorBox WebDAV
└──────┬───────┘ mount via webdav.torbox.app
│ rclone FUSE
│ symlink
▼
┌──────────────┐
│ Plex :32400 │ Streams to any device
│ or │ Zero local storage
│ Jellyfin │
│ :8096 │
└──────────────┘
Components
| Service |
Port |
What It Does |
| Decypharr |
8282 |
The bridge between Radarr/Sonarr and TorBox. Pretends to be qBittorrent, mounts TorBox's cloud storage via WebDAV, and creates symlinks (shortcuts) to cloud files. |
| Prowlarr |
9696 |
Manages your torrent indexers (search sources). When Radarr/Sonarr need a torrent, Prowlarr searches all your configured sites. |
| Byparr |
8191 |
Helps Prowlarr bypass Cloudflare protection on some indexer sites. Works automatically in the background. |
| Radarr |
7878 |
Movie manager. Searches for movies, picks the best quality torrent, sends it to Decypharr, and organizes your movie library. |
| Sonarr |
8989 |
TV show manager. Same as Radarr but for TV series - handles seasons, episodes, and ongoing shows automatically. |
| Seerr |
5055 |
Beautiful web UI where you (and your family/friends) can browse and request movies and TV shows. Supports Plex, Jellyfin & Emby. |
| Plex |
32400 |
Media server option 1. Streams your library to any device. Requires a free Plex account. |
| Jellyfin |
8096 |
Media server option 2 (open-source, no account needed). Streams your library to any device. |
Note: All service ports including Plex and Jellyfin are bound to 127.0.0.1 (localhost only) by default for security. To stream from other devices on your LAN, you will need to expose the Plex/Jellyfin ports. See Accessing From Other Devices.
Before You Begin
Before running the setup script, make sure you have everything ready:
Required
- A Linux or Windows machine - Designed for Linux (CachyOS/Arch, Ubuntu, etc.) or Windows (using PowerShell + Docker Desktop)
- A TorBox account with a paid plan - Sign up at torbox.app (plans start at a few dollars/month)
- Your TorBox API key - After signing up:
- Go to torbox.app/settings
- Scroll to the "API Key" section
- Click "Create API Key" or copy your existing one
- Save it somewhere - you'll paste it during setup
- ~30 minutes for the initial setup (most of it is automated)
- ~5–8 GB of bandwidth for downloading Docker images on the first run
Optional
- Plex claim token (only if you choose Plex as your media server):
- Go to plex.tv/claim
- Sign in to your Plex account (or create one for free)
- Copy the claim token (starts with
claim-)
- Use it within 4 minutes - they expire quickly!
Technical Prerequisites
The setup scripts check for these dependencies:
| Requirement |
Purpose |
Linux Auto-installed? |
Windows Requirement |
| Docker + Docker Compose |
Runs all services in containers |
✅ Yes |
Docker Desktop (Installed & running) |
| FUSE |
Enables rclone WebDAV mounts |
Checked (usually pre-installed) |
Handled inside WSL2 VM / Docker Desktop |
| jq |
JSON API configuration |
✅ Yes |
Handled natively via PowerShell |
| openssl |
Random API keys and passwords |
✅ Yes |
Handled natively via PowerShell RNGCrypto |
Setup Walkthrough
The script will interactively ask you for:
| Prompt |
What to enter |
| TorBox API key |
Paste the API key from your TorBox settings |
| Plex or Jellyfin |
Choose 1 for Plex or 2 for Jellyfin |
| Plex claim token |
(Plex only) Paste your claim token, or press Enter to skip |
| Mount directory |
Press Enter to accept default (/mnt/torbox-media) or type a custom path |
| User/Group IDs |
Press Enter to accept auto-detected PUID/PGID, or enter custom values |
| Timezone |
Press Enter to accept auto-detected timezone, or enter a custom one |
| Hardware acceleration |
Auto-detected; prompted only if multiple GPUs are present or none detected |
| Start services? |
Press Enter or Y to start immediately (recommended) |
Auto-detected values: Mount directory (/mnt/torbox-media), user/group IDs, timezone, and hardware acceleration are auto-detected. Override via environment variables: TORBOX_MOUNT_DIR, TORBOX_HW_ACCEL, TORBOX_INDEXER_URL.
Then the script automatically:
- Checks and installs dependencies (Docker, FUSE, jq, openssl)
- Creates the full directory structure
- Generates Decypharr config with your TorBox API key
- Pre-seeds API keys into Radarr, Sonarr, and Prowlarr config files
- Generates the
.env file and Docker Compose
- Creates the
manage.sh management script
- Sets up FUSE mount propagation
- Installs a systemd service for automatic startup on boot
- Starts all Docker containers
- Waits for services to initialize, then auto-configures via API:
- Download clients, root folders, media management, naming conventions, quality profiles, and service interconnections
- Seerr connected to Radarr, Sonarr, and Plex/Jellyfin
- Plex libraries (Movies + TV Shows) if claim token was provided
- Default public indexer (1337x) in Prowlarr
First run takes 5–15 minutes (mostly downloading Docker images). Subsequent starts take seconds.
Re-running the script is safe - it detects existing installations, preserves your API keys to avoid breaking integrations, and lets you keep your existing TorBox API key or enter a new one.
What the Script Configures Automatically
The setup script pre-seeds and auto-configures as much as possible so you don't have to. Here's exactly what's handled for you:
Pre-Seeded (via config.xml, before containers start)