Providers
Google Drive
Connect TorrentDrive to your Google Drive using your own OAuth 2.0 credentials.
Prerequisites
A Google Cloud project with the Google Drive API enabled.
Step 1: Create OAuth Credentials
- Open Google Cloud Console → APIs & Services → Credentials
- Click Create Credentials → OAuth client ID
- Application type: Web application
- Add the Authorized redirect URI shown in the TorrentDrive Google Drive form:
- Local:
http://localhost:47100/proxy/api/storage/gdrive/callback - Custom domain / Reverse proxy:
https://<your-domain>/proxy/api/storage/gdrive/callback
- Local:
- Copy the Client ID and Client Secret
Step 2: Connect Your Account
- In TorrentDrive, go to Storage → Add Storage Profile → Google Drive (or complete Step 2 of the first-run setup wizard)
- Save your Client ID and Client Secret
- Click Connect Google Account and complete the Google OAuth consent screen in the popup window
- Give the profile a name, optionally set a target folder ID, and mark it as your Default profile if desired
Health Probes & Automatic Failover
TorrentDrive periodically checks each Google Drive profile's token validity and free quota:
- Healthy profiles display a Healthy badge and remaining free storage.
- If a Google Drive account runs out of storage or its refresh token is revoked, TorrentDrive marks the profile as Quota Exceeded or Needs Re-auth and automatically reroutes active uploads to another healthy storage profile (unless the job is pinned to that drive).
Data Privacy & Security
- OAuth credentials and refresh tokens are stored inside your container's PostgreSQL database on the
torrentdrive-pgdatavolume — protect access to the host volume as described in Security. - Files stream directly from your server to Google Drive using resumable upload sessions.
- To revoke access at any time, visit myaccount.google.com/permissions.