Search, read, create, and organize files and folders in Google Drive. Supports Docs, Sheets, and uploaded files, with OAuth tokens injected for you.
Per-app Google setup is deprecated. All Google apps now share one Google OAuth client and one Redirect URI. To use your own client, follow the Google setup guide. Credentials saved for one Google app apply to all of them.
OneCLI connects AI agents to Google Drive through Google’s OAuth flow. Agents can search for files, read their contents, create new files, and organize them into folders. The gateway injects OAuth credentials into requests to the Google Drive API automatically.This is useful for agents that need to find documents, store outputs, or work with files shared across your team.
This is for self-hosted OneCLI, and for OneCLI Cloud when you choose Custom credentials instead of one-click. One Google client serves every Google app in OneCLI, so you set it up once. If you already did it for another Google app, skip to step 2.
1. Set up your Google client
Follow the Google setup guide. It enables the Google APIs, sets up the consent screen, creates the OAuth client, and adds the Redirect URI.You paste the client into Connections > Google Drive > Custom credentials, under the Redirect URI the guide asks you to register:
Custom credentials for Google Drive in OneCLI.
2. Connect Google Drive
Open Connections > Google Drive, select Connect Google Drive, pick your Google account, and click Allow.
The Google Drive connect window before a Google client is set up.
Access is per agent: grant the connection to each agent that needs it, choosing per tool what runs freely, what needs human approval, and what stays blocked — a read-only agent is a single grant. Organization rules add guardrails on top, like rate limits and blanket blocks. Everything is checked before credential injection, so a blocked request never reaches Google Drive.