TorrentDrive
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

  1. Open Google Cloud Console → APIs & Services → Credentials
  2. Click Create Credentials → OAuth client ID
  3. Application type: Web application
  4. 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
  5. Copy the Client ID and Client Secret

Step 2: Connect Your Account

  1. In TorrentDrive, go to Storage → Add Storage Profile → Google Drive (or complete Step 2 of the first-run setup wizard)
  2. Save your Client ID and Client Secret
  3. Click Connect Google Account and complete the Google OAuth consent screen in the popup window
  4. 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-pgdata volume — 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.

On this page