Overview
The Google Drive integration connects your Claws to your organization’s file storage through Google’s OAuth flow. Claws can browse folder structures, search for files across personal and shared drives, read file metadata, upload new files, and organize existing content, all from within their isolated ClawCage containers. This turns Drive from passive storage into an active part of your automated workflows.
You choose the access level during setup. Read-only mode lets your Claw search, browse, and read file metadata and content without modifying anything. Full access enables file creation, uploads, moves, and sharing permission changes. Only the scopes you select are requested from Google.
What Your Claw Can Do
Browse and explore. Your Claw can traverse folder hierarchies across personal drives, shared drives, and drives shared with you. It understands the organizational structure and can locate files by path, not just by search.
Search across Drive. Full-text search across file names, descriptions, and content. Your Claw can find documents by keyword, filter by file type, modification date, or owner, and surface relevant files from deep in your Drive hierarchy.
Upload and create files. With full access, your Claw can upload files to Drive: reports generated from other integrations, exported data, compiled artifacts. Files are placed in the correct folder with appropriate naming conventions.
Organize and manage. Move files between folders, rename files, update descriptions, and manage folder structures. Your Claw can enforce file organization policies, clean up shared drives, and ensure documents are filed in the right locations.
Manage sharing permissions. Control who can view, comment, or edit files. Your Claw can share files with specific users or groups, adjust permission levels, and generate shareable links for distribution.
Who Can Reach Your Claw
Drive whitelisting controls which files and folders your Claw can access:
- By shared folder. Whitelist specific Drive folders. The Claw only accesses files within those folders and their subfolders.
- By shared document. Whitelist individual files. The Claw accesses only the explicitly shared documents.
- By shared drive. Whitelist entire shared drives for team-wide access within those drives.
This works alongside three Claw scoping levels:
Private Claw. Only the creator interacts. Your Claw organizes your personal Drive, searches for files on your behalf, and manages your document workflow. Example: a personal file assistant that automatically organizes downloads by project, surfaces relevant documents when you start a new task, and archives stale files.
Team Claw. Whitelisted team members share the Claw. It manages a team’s shared Drive, organizes project folders, and helps team members find documents. Example: an engineering team Claw that maintains the technical documentation folder, moves completed project files to archive, and posts weekly file activity summaries in Slack.
Organization-wide Claw. Any org member can request file searches and organization. The Claw manages company-wide shared drives, enforces naming conventions, and serves as a knowledge retrieval tool for the entire organization.
Security
- OAuth scope minimization. Read-only requests
drive.readonly. Full access requestsdrive. No unnecessary scopes. - Tokens encrypted at rest. Drive OAuth tokens are stored with AES-256 encryption and decrypted only inside the ClawCage.
- ClawCage isolation. Each Claw runs in its own Docker container. Drive credentials are injected securely at runtime.
- No file caching. Files are processed in-memory within the ClawCage. ClawStaff does not cache Drive files outside the container.
- Audit logging. Every Drive API call is logged in the ClawStaff dashboard.
- Revoke anytime. Disconnect from ClawStaff or Google account settings to invalidate tokens immediately.
How It Works
- Connect Google Drive. Start a Google Workspace connection and enable Drive. Choose read-only or full access.
- Authorize with Google. Review the Drive-specific OAuth scopes and click Allow.
- Configure your Claw. Define which folders and drives to access, organization rules, and automation triggers.
- Claw manages your files. Your Claw browses, searches, and organizes Drive from within its ClawCage container.
Cross-Integration Workflows
Google Drive combined with other tools connects your files to your workflows:
- Slack to Drive. A team member shares a file in Slack. Your Claw uploads it to the appropriate project folder in Drive with standardized naming, and posts the Drive link back to the thread.
- GitHub to Drive. When a release is published on GitHub, your Claw generates release documentation and uploads it to the team’s shared Drive folder.
- Drive to Notion. Your Claw monitors a Drive folder for new files. When a new document appears, it creates a corresponding entry in a Notion database with file metadata, a link, and a summary.
- Google Forms to Drive. Form submissions with file uploads are automatically organized into Drive folders by respondent, date, or category.