Repository navigation
Description
Problem / motivation
A team member can reach Google Drive only through the Google Drive connector on the owner's Claude account. That works only when the business's files live in the same Google account the owner uses for Claude. Often they don't: the business runs on its own Google account (for example a shared office account), while Claude is signed in with a personal one. The team member then knows it needs Drive, but there is no way to connect the right account.
Mail already solved this with the app's own mailbox connection, which works for any address. Drive has no equivalent.
Example: a team member keeps a leads list in step with a sheet the business updates every day. The sheet lives in the business's Google account, not in the account behind the Claude login.
Proposed solution
What an owner could do:
- In Settings, connect any Google account with one browser sign-in, then pick the files (or folders) the team may use. No Google Cloud setup.
- Team members read and update only the picked files, and the changes land in the real files the owner and staff already use.
- Team members can create new files (reports, sheets) and keep working on them, since files the app makes stay open to it.
- Pick more files any time; take access back from the app or from the Google account's security page.
What it would not do:
- No searching the whole Drive. A file the owner did not pick, including a new file staff add later, stays out of reach until it is picked.
How it could be built (from research into Google's docs and other open source tools):
- One project owned Google OAuth client of type Desktop app, shipped in the installers. Sign in happens in the owner's browser with a loopback redirect (127.0.0.1 on a random port) and PKCE. Google treats desktop apps as public clients, so the client ID and secret protect nothing; inject them at build time to keep them out of the repo and away from secret scanners.
- Scope
drive.fileonly. Google classes it as non sensitive and recommends it. That avoids restricted scope verification, the yearly CASA security assessment and the 100 user lifetime cap for unverified apps. Only brand verification is left (app name and logo on the consent screen), which needs the website domain and a privacy policy page. - Google Picker for desktop apps: the app opens the OAuth URL with
trigger_onepick=true; the owner picks files in the browser and the redirect carriespicked_file_idswith the code. This picker permits onlydrive.file. - Tokens stay on the owner's computer, encrypted with Electron
safeStorage(macOS Keychain, Windows DPAPI). Never sent to a server, which would bring server side rules of the security assessment into play. - Per member access like mailboxes (Access tab), checked by the hook and the broker, following the md-mail pattern.
Open questions to settle before building:
- Does picking a folder grant its contents, including files added later?
- Does the picker behave the same for personal Gmail and Workspace accounts, and for shared drives?
- rclone reports Google will charge for requests made through shared, built in client IDs. Does that apply to
drive.fileclients? - This is an app built connection, an exception to preferring Claude connectors (as mail and GitHub are).
Alternatives considered
- Full Drive scope on one shared client. Restricted scope: verification limited to certain app categories, a yearly paid CASA assessment if data or tokens touch a server, and a 100 user lifetime cap until approved. rclone is retiring its shared Drive client ID during 2026 for this reason.
- Each owner creates their own Google Cloud project and client ID. Works without verification, but it is a long technical setup for a small business owner, and tokens from a project left in Testing expire after 7 days. Worth keeping only as an advanced option for whole Drive access.
- Service accounts. They reach the service account's own Drive, not the owner's existing files.
- Keep the Claude connector only. Works only when the business files are in the Claude account.
Sources:
- https://developers.google.com/identity/protocols/oauth2/native-app
- https://developers.google.com/drive/about-auth
- https://developers.google.com/workspace/drive/picker/guides/overview-desktop
- https://support.google.com/cloud/answer/13463817
- https://support.google.com/cloud/answer/10311615
- https://rclone.org/drive/
Kept open until enough owners ask for it.
Activity