This repository contains a complete setup for streaming content using Plex, Real-Debrid, Zurg, and Plex Debrid.
- Docker and Docker Compose
- A Real-Debrid account (Premium required)
- A Plex server
- Trakt.tv account (optional but recommended)
An interactive installer sets everything up for you — it checks/installs Docker, asks which services you want to use, writes the config files and starts the stack.
Linux (any distribution) / macOS:
git clone https://github.com/cobrabm12/plex_debrid_updated.git
cd plex_debrid_updated
./install.shWindows (PowerShell):
git clone https://github.com/cobrabm12/plex_debrid_updated.git
cd plex_debrid_updated
powershell -ExecutionPolicy Bypass -File .\install.ps1The installer asks for your Real-Debrid token and which content sources (Plex
Watchlist / Trakt / Overseerr-Jellyseerr), media servers (Plex / Jellyfin) and
collection service you want, then generates a complete settings.json, builds the
image and starts the containers. Accounts that use OAuth (Plex, Trakt) are linked
afterwards in the app's interactive menu (the installer tells you the exact command).
You can re-run the installer any time to reconfigure.
It can also install the media servers for you. For each server it asks whether to deploy it here or connect to one you already run:
- On Linux it can run Plex, Jellyfin and/or Jellyseerr in Docker (extra services
in
docker-compose.yml, enabled via compose profiles). Anrclonecontainer mounts the Zurg WebDAV into a shared./datafolder so Plex/Jellyfin can read your debrid library — point their libraries at/data. (FUSE mount sharing requires a Linux host.) - On Windows it installs Plex/Jellyfin natively via
wingetand uses the bundledrclone.exeto mount the library to a drive letter (Jellyseerr still runs in Docker).
If you prefer to configure everything by hand, follow the manual steps below.
The project ships a small, self-hosted Stremio addon (plex_debrid_src/stremio_addon.py)
that reuses the same scrapers and Real-Debrid integration to give you on-demand
streaming inside Stremio — like Torrentio, but running locally on your own machine.
Enable it in the installer ("Enable the local Stremio addon"), or start it manually:
docker compose --profile addon up -d stremio_addonThen in Stremio (Desktop / Web / Android / TV) → Addons → paste an addon URL:
http://<your-host>:7000/manifest.json
When you open a movie/episode, the addon scrapes torrents and lists them. Because
Real-Debrid removed batch instant-availability lookups, links are resolved on click:
selecting a stream adds the magnet to Real-Debrid, picks the right file, unrestricts it
and redirects the player to the direct link. It reads your Real-Debrid key from
plex_debrid/config/settings.json (or the RD_API_KEY env var); ADDON_SOURCES
(default torrentio) controls which scrapers it uses.
-
Clone the repository:
git clone https://github.com/cobrabm12/plex_debrid_updated.git cd plex_debrid_updated -
Configure Zurg:
- Copy
zurg/config.example.ymltozurg/config.yml. - Edit
zurg/config.ymland add your Real-Debrid API Token.
zurg: v1 token: YOUR_REAL_DEBRID_API_TOKEN
- Copy
-
Configure Plex Debrid:
- Copy
plex_debrid/config/settings.example.jsontoplex_debrid/config/settings.json. - Edit
plex_debrid/config/settings.jsonand fill in the required fields:Plex users: Your Plex username and token.Trakt users: Your Trakt client ID and secret (if using Trakt).Real Debrid API Key: Your Real-Debrid API Key.Plex server address: Address of your Plex server. Usehttp://host.docker.internal:32400when Plex runs on the Docker host (Windows, macOS, and Linux with this compose file). Use your LAN URL such ashttp://192.168.1.10:32400when Plex runs on another machine.
- Copy
-
Run the stack:
docker-compose up -d
- Docker stack: The compose setup is the recommended cross-platform path and works on Linux, macOS, and Windows with Docker Compose.
- Plex host access: The compose file maps
host.docker.internalto the Docker host, including Linux viahost-gateway, soplex_debridcan reach a Plex server running on the same machine. - Windows helper: Run
start_server.batto start Docker and mount Zurg toX:with the bundledrclone.exe. - Linux/macOS helper: Run
./start_stack.shto start the Docker stack. Mount Zurg separately with your system rclone/WebDAV setup if Plex needs filesystem access outside Docker. - Remote Plex server: Set
Plex server addressto the remote LAN address, for examplehttp://192.168.1.10:32400, and make sure the Plex token insettings.jsonbelongs to a user allowed to access that server.
- Plex watchlist monitoring uses the Plex metadata/discover endpoints with your Plex token.
- Plex library refresh uses the local Plex server URL from
Plex server address; partial scans require Plex to see the same media paths that Zurg/rclone exposes. - If Plex runs outside Docker, keep the Plex library path and rclone mount path consistent for the operating system running Plex. For example, Windows Plex can scan
X:\, while Linux Plex usually needs a mounted directory such as/mnt/zurg.
- Zurg will mount your Real-Debrid torrents as a WebDAV directory.
- Plex Debrid will monitor your Plex Watchlist (or Trakt watchlist) and automatically add movies/shows to Real-Debrid via Zurg.
- Rclone (optional, if used) can mount the Zurg WebDAV to a local drive letter for Plex to read.
Jellyfin has no built-in watchlist, so it cannot be a content source (the
"what to download" list). For a Jellyfin-based or mixed Plex + Jellyfin setup,
configure plex_debrid like this (all options are in the in-app settings menu under
Options/Settings):
- Content source (what to download): use Trakt lists, and/or Jellyseerr /Overseerr requests (Jellyseerr is API-compatible — set it up as the "Overseerr" service). On a mixed setup you can also keep the Plex watchlist enabled.
- Library collection service (what you already own, to avoid re-downloading):
choose Jellyfin Library or Plex Library. Because Plex and Jellyfin read
the same Zurg/Real-Debrid mount, either one reflects the same content.
Jellyfin Libraryreads your Jellyfin library via the Jellyfin API and matches items by their IMDb/TMDb/TVDb provider IDs. - Library update services (refresh after a download): enable Jellyfin Libraries and/or Plex Libraries — you can enable both at once when running them in parallel.
To configure Jellyfin, set your Jellyfin API Key (Jellyfin Dashboard → API Keys)
and Jellyfin server address (e.g. http://host.docker.internal:8096) in the
settings menu.
- The
plex_debrid_srcfolder contains the source code forplex_debrid. It has been patched to fix User-Agent issues with Torrentio and to handle Real-Debrid API limitations. - The core
plex_debrid_src/releases/package was previously excluded from version control by a stray Visual Studio.gitignorerule ([Rr]eleases/). The.gitignorehas been corrected and the package restored, otherwise the app fails to start withModuleNotFoundError: No module named 'releases'. - Do not commit
zurg/config.ymlorplex_debrid/config/settings.jsonto a public repository as they contain your private API keys. check_watchlist.pyreads your Plex token from thePLEX_TOKENenvironment variable (or the first CLI argument) — it is no longer hard-coded.- Credentials via environment variables: the OAuth app credentials (
TRAKT_CLIENT_ID,TRAKT_CLIENT_SECRET,DEBRIDLINK_CLIENT_ID,ORIONOID_CLIENT_ID) andPLEX_TOKENcan be supplied through environment variables instead of being hard-coded. Copy.env.exampleto.env(gitignored) and fill in only what you want to override; any value left empty falls back to the shared public plex_debrid defaults, so the stack still works out of the box.docker-composeautomatically loads.env. Your personal Plex token, Real-Debrid key, etc. are still entered in the in-app settings menu and stored in the gitignoredplex_debrid/config/settings.json— never in the source. - Plex API change (late 2025/2026): Plex deprecated the
metadata.provider.plex.tvendpoints for the watchlist. The Plex integration now usesdiscover.provider.plex.tvfor the watchlist, add/remove-from-watchlist and search operations (matching the canonicalpython-plexapilibrary); metadata and watch-status (scrobble) calls still usemetadata.provider.plex.tv, which remains active. If your Plex watchlist ever returns404, ensure you are on this updated version. - Real-Debrid API change (Nov 2024): Real-Debrid disabled the data returned by the
/torrents/instantAvailabilityendpoint, which plex_debrid relied on to detect cached torrents in a single batch call. The Real-Debrid integration now falls back to probing each release (add magnet → read/torrents/info→ detect cached status → remove the probe torrent) when instant-availability data is missing. This is heavier than the old batch check (a few API calls per release, bounded byMAX_CHECKindebrid/services/realdebrid.py) and should be tested against your own Real-Debrid account — it could not be verified here without live credentials. - The
rarbgscraper (scraper/services/rarbg.py) targetstorrentapi.org, which shut down in 2023; it is non-functional and not part of the default sources. Usetorrentio.
- Original Project: plex_debrid by itsToggle.
- Adapted & Updated by: cobrabm12 - Updated for Docker compatibility, fixed Torrentio scraping issues, and optimized for current Real-Debrid API requirements.
- Check logs with:
docker-compose logs -f - If Torrentio scraping fails, ensure the User-Agent fix in
plex_debrid_src/scraper/services/torrentio.pyis active.