Overview
TorrentDrive is a self-hosted torrent-to-cloud platform. One Docker container, one command, no configuration files.
TorrentDrive downloads torrents on your server and uploads them directly to Google Drive or S3-compatible storage, then cleans up local disk space automatically.
Everything ships as a single container that generates its own secrets on first boot and is configured entirely in the browser. If you find yourself editing a config file to do something ordinary, that is a bug — please open an issue.
Install
curl -fsSL https://raw.githubusercontent.com/TorrentDrive/backend/main/install.sh | bashOr with Docker Compose (zero .env required):
curl -fsSL https://raw.githubusercontent.com/TorrentDrive/backend/main/docker-compose.yml -o docker-compose.yml
docker compose up -dWindows, in PowerShell:
irm https://raw.githubusercontent.com/TorrentDrive/backend/main/install.ps1 | iexDocker is the only requirement. Open the URL it prints and complete the 3-step setup wizard.
What it does
- Upload one or more
.torrentfiles, inspect live UDP/HTTP tracker swarm health, and download only the files you actually want. - Hardened BitTorrent engine with MSE/PE RC4 stream encryption, strict BEP 27 private-torrent isolation (disabling DHT, PEX, Local Peer Discovery, and public fallback trackers on private torrents), and zero UPnP/NAT-PMP gateway noise on cloud VPSs.
- Upload finished downloads to Google Drive or S3-compatible storage — AWS S3, Cloudflare R2, Backblaze B2, DigitalOcean Spaces, Wasabi, and MinIO.
- Uses your storage credentials. Nothing is proxied through a third party.
- Continuously probes storage health and automatically reroutes a failing upload to another healthy drive instead of giving up.
- Deletes local copies once they are safely uploaded, or lets you purge them on demand.
- Bundled Prometheus and Grafana dashboards for real-time transfer and queue observability.
Ports
| Port | Default Bind | Service |
|---|---|---|
| 47100 | 0.0.0.0 | Web interface (proxies API calls same-origin) |
| 47200 | 127.0.0.1 | REST API, /metrics, and /hangfire |
| 47500 | 127.0.0.1 | Grafana dashboards |
| 47600 | 127.0.0.1 | Prometheus metrics |
Only port 47100 needs to be reachable for normal use. Internal admin ports are bound to
127.0.0.1 by default so they are never accidentally exposed on public VPS interfaces.
Where to go next
Getting started
- Installation — one-liner, Docker Compose, reverse proxies, custom domains
- PaaS Deployments — 1-click templates for Dokploy, Coolify, Render, and Railway
- First-run setup — claiming your instance and connecting Google Drive or S3
Running it
- Usage guide — batch torrent analysis, selective file picking, destination failover, and pinning
- Configuration — every setting and environment override
- Updating — upgrades, backups, rollbacks
- Troubleshooting — when something does not work
Understanding it
- Architecture — what runs inside the container and how the transfer pipeline works
- Security — where secrets live, what is exposed, and how to put it behind a proxy
Source
| Repository | Contents |
|---|---|
| backend | .NET 9 API, Hangfire orchestrator, transfer workers, unified all-in-one container, compose manifests, PaaS blueprints, and installers |
| frontend | Next.js web application |
| website | Landing site and documentation |
MIT licensed.