Google Drive for Openclaw

A managed OAuth integration allowing AI agents to search, create, and manage files and folders within Google Drive.

sprinterx69
v1.0.0
Mar 16, 2026
0
1.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install googledrive

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install googledrive using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Google Drive?

The Google Drive skill for Openclaw Skills provides a robust gateway for AI agents to interact with the Google cloud storage ecosystem. By utilizing managed OAuth authentication, developers can bypass the complexities of handling sensitive tokens directly within their agent logic, ensuring a more secure and maintainable architecture.

This skill enables comprehensive file lifecycle management, allowing agents to perform tasks such as searching for specific file types, uploading media, and exporting Google Workspace documents into portable formats. It acts as a secure proxy that automatically injects required credentials, making it an essential tool for any developer leveraging Openclaw Skills for advanced document automation and data management.

Google Drive Use Cases

  • Automating file organization and uploads for data-heavy workflows using Openclaw Skills.
  • Searching for specific documentation to provide context-aware responses in AI research agents.
  • Synchronizing local project assets with cloud storage through automated agent scripts.
  • Exporting Google Docs or Sheets to PDF and other formats for automated report distribution.

How Google Drive Works

  1. Authenticate your request using a valid Maton API key provided in the Authorization header.
  2. Initialize a connection to the Google Drive app via the centralized connection management endpoint.
  3. Open the generated OAuth URL to authorize the skill to access your Google Drive account.
  4. Route your requests through the gateway, which proxies calls to the native Google Drive API v3 endpoints.
  5. The gateway handles all token refreshes and injections, returning standard JSON metadata or file content streams.

Google Drive Setup

To start using this Openclaw Skills integration, configure your environment and authorize your Google account:

export MATON_API_KEY="YOUR_API_KEY"

Register a new connection to initialize the OAuth flow:

# Create a Google Drive connection
curl -X POST https://ctrl.maton.ai/connections \
  -H "Authorization: Bearer $MATON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"app": "google-drive"}'

Navigate to the URL provided in the response to complete the authorization process. Once active, you can begin making proxy requests to the gateway.

Google Drive Data Schema & Taxonomy

This skill utilizes the native Google Drive v3 data structures. Resources are identified by a unique fileId. Key metadata fields include:

Attribute Description
id The unique string identifier for the file or folder.
name The user-visible name of the file.
mimeType The media type of the file (e.g., application/pdf, application/vnd.google-apps.folder).
parents An array containing the IDs of the parent folders.
size The size of the file content in bytes.

For large result sets, the API employs cursor-based pagination using the nextPageToken field.

Google Drive Advanced Features

  • Support for resumable uploads, allowing AI agents to handle large files (up to 5TB) with chunked transfer reliability.
  • Managed OAuth lifecycle management, eliminating the need to store or refresh Google access tokens locally.
  • Multi-connection support using the Maton-Connection header to switch between different Google accounts dynamically.
  • Direct export capabilities for converting Google Workspace files (Docs, Sheets, Slides) into standard formats like PDF or CSV.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*