BuildWithMatija
Get In Touch
  1. Home
  2. Blog
  3. Tools
  4. rclone Google Drive client_id: Create Your Own OAuth App

rclone Google Drive client_id: Create Your Own OAuth App

Step-by-step guide to create a Google OAuth app and use its client_id/client_secret with rclone to avoid Drive API…

31st March 2026·Updated on:14th March 2026·MŽMatija Žiberna·
Tools
rclone Google Drive client_id: Create Your Own OAuth App

📚 Get Practical Development Guides

Join developers getting comprehensive guides, code examples, optimization tips, and time-saving prompts to accelerate their development workflow.

No spam. Unsubscribe anytime.

Here is a short reference doc you can keep:

Google Drive client_id for rclone, headless server setup

Because the default rclone Google Drive client_id is shared by many users, it can hit Google rate limits more easily. For a more stable setup, create your own Google OAuth app and use its client_id and client_secret in rclone.

Why this matters

  • Better reliability than the shared default rclone client
  • Lower chance of quota and rate-limit issues
  • Better for production and multiple services

What I had to create

When creating the Google OAuth app, I had to choose:

  • Application type: Desktop app

This is correct for rclone authentication, even if the final usage is on a headless Ubuntu server.

Steps

  1. Open the Google API Console and create or select a project.

  2. Enable Google Drive API.

  3. Open Credentials.

  4. Configure the OAuth consent screen.

    • App name: anything, for example rclone
    • Audience: usually External
    • Add yourself as a test user
  5. In Data Access, add these scopes:

    • https://www.googleapis.com/auth/docs
    • https://www.googleapis.com/auth/drive
    • https://www.googleapis.com/auth/drive.metadata.readonly
  6. Save the consent screen settings.

  7. Create an OAuth client.

  8. Choose Desktop app.

  9. Copy the generated:

    • client_id
    • client_secret
  10. Put them into your rclone Google Drive remote config.

  11. Reconnect/authenticate the remote.

Notes

  • Even on a headless server, the OAuth client type should still be Desktop app.
  • Google may show an unverified app warning during login. That is expected for a personal setup.
  • For External apps, adding yourself as a test user is important.

Useful rclone command

To reconnect the remote after adding your own credentials:

rclone config reconnect hetzner-dev:

Result

After reconnecting, I was able to download files from Google Drive directly to:

~/smow/db_dumps

If you want, I can turn this into a cleaner README.md version you can paste into your project.

📄View markdown version
0

Frequently Asked Questions

Comments

Leave a Comment

Your email will not be published

Stay updated! Get our weekly digest with the latest learnings on NextJS, React, AI, and web development tips delivered straight to your inbox.

10-2000 characters

• Comments are automatically approved and will appear immediately

• Your name and email will be saved for future comments

• Be respectful and constructive in your feedback

• No spam, self-promotion, or off-topic content

Matija Žiberna
Matija Žiberna
Full-stack developer, co-founder

I'm Matija Žiberna, a self-taught full-stack developer and co-founder passionate about building products, writing clean code, and figuring out how to turn ideas into businesses. I write about web development with Next.js, lessons from entrepreneurship, and the journey of learning by doing. My goal is to provide value through code—whether it's through tools, content, or real-world software.

Table of Contents

  • Google Drive `client_id` for rclone, headless server setup
  • Why this matters
  • What I had to create
  • Steps
  • Notes
  • Useful rclone command
  • Result
On this page:
  • Google Drive `client_id` for rclone, headless server setup
Build With Matija Logo

Build with Matija

Matija Žiberna

I turn scattered business knowledge into one usable system. End-to-end system architecture, AI integration, and development.

Quick Links

Projects
  • How I Work
  • Blog
  • RSS Feed
  • Services

    • Payload CMS Websites
    • Bespoke AI Applications
    • Advisory

    Payload

    • Payload CMS Websites
    • Payload CMS Developer
    • Audit
    • Migration
    • Pricing
    • Payload vs Sanity
    • Payload vs WordPress
    • Payload vs Strapi
    • Payload vs Contentful

    Industries

    • Manufacturing
    • Construction

    Get in Touch

    Have a project in mind? Let's discuss how we can help your business grow.

    Book a discovery callContact me →
    © 2026BuildWithMatija•Principal-led system architecture•All rights reserved