Skip to content
github-actions[bot] edited this page Oct 15, 2026 · 1 revision

drive — Google Drive for your AI agents

These wiki pages copy the docs/ folder on every change to main, so an edit made here is overwritten. To fix a page, open a pull request against docs/. The same guide is on wirecat.dev; start with the README.

Questions and ideas: Discussions. What changed: the changelog — there is no npm release yet. drive is part of WireCat.

WireCat Drive is a command-line tool for working with Google Drive and Google Docs yourself or through an AI agent. Browse and manage Google files, import the folders you choose, and keep their supported contents in a searchable local database. Use this guide to decide what to connect, what to keep offline and which task to try first.

What you can do

  • Find a decision across imported documents and return its passage, title and original Google link.
  • Read cached text and file metadata, navigate folder trees and find unreadable files without opening Drive.
  • Keep selected folders current through repeatable sync, including documents in subfolders.
  • Add local tags, notes and source-backed memories that survive renames and ordinary updates.
  • Connect documents to observed Google editors and existing people, projects or other sources.
  • Inspect live file metadata, permissions, comments, revisions and optional activity history.
  • Create and edit native Docs, copy or move files, and manage folders when you explicitly grant write access.
  • Let a terminal agent or local MCP client use the same commands, account profiles and permissions.

A profile names one connected Google account, such as personal or work. Every account command names it. A local copy is the text, metadata and context saved on the computer where Drive runs; it is separate from the original Google files.

Choose the way you want to work

Your task What Drive does Start here
Explore a folder or inspect a file Reads Google directly; browsing alone does not add documents to search Browse and import
Give an agent a project to remember Imports supported documents into the local database and managed snapshots Import a folder
Find evidence while offline Searches the imported copy and reads cached content/metadata Search documents
Keep useful context beside sources Adds local tags, notes, links and reviewed memories Task recipes
Change a Google file Uses the live API with a write grant and command permission Create and edit a Doc

What the local copy contains

Importing keeps more than a folder of downloads. Searchable source text and its chunks go into SQLite, a local database file. Optional embeddings help find related wording by meaning. Managed JSON and Markdown snapshots retain the source material for cached reading and export.

Saved information What you can do without Google
Text from native Doc tabs, tables and footnotes; uploaded Markdown/TXT Search passages, read a source and prepare an evidence-backed answer
Google ID, title, type, original link, parents, timestamps and version when available Identify the source and inspect the metadata from the last sync
Owners and last editor exposed by Google See observed contributors and their saved identity links
Local tags, notes, person/project links and memories Organize and recall context across repeated work
Google folders and parent relationships in the local database Navigate a cached tree, list children, tag folders and attach notes
Selected roots, checkpoints and pending work Keep sync scoped and resume interrupted imports

The catalog retains files and folders in the selected scope, including formats whose contents cannot be read. catalog search finds names, descriptions, types and observed owners/editors; search finds indexed content and local labels. A result's content says whether it has only metadata, indexed text or an unreadable-content reason. Folder tags and notes stay local.

Sync requests every file-metadata field Google makes available and retains that response in the database. Older cached sources keep their previously saved subset until refreshed. This remains a copy from the last sync: separate permission lists, comments, revision history and activity events are live reads and are not automatically cached. See offline folder browsing.

Ask for your first result

After installing and connecting, give your agent a small project folder:

Use drive CLI with profile personal. Import the Google folder I choose and its subfolders.
Find the budget decision, show its exact passage and original Google link, and list skipped files.
Keep the local index; do not create extra exports or change Google files.

The result should identify its sources and report unfinished or skipped work. Search then works from the local copy; run sync when you want newer edits. For manual use:

drive personal folders add FOLDER_ID
drive personal sync --json
drive personal --offline search 'budget' --exact --json

Replace FOLDER_ID and the profile name. Continue sync while pending work remains.

Supported content and connections

Local indexing supports native Google Docs and Sheets, and uploaded Markdown/plain text, PDF with a text layer, Word .docx, Excel .xlsx and CSV. Scanned PDFs, Slides, images, audio and shortcuts are skipped with their reason. Native Docs indexing includes body text, tables and footnotes across tabs; images, headers, footers, comments and suggested edits are not indexed. Live API access to a file's metadata is distinct from importing its content.

Sign-in opens Google's consent screen. Users authorize their own accounts; the application owner configures the shared Google app. A custom Desktop OAuth client remains an alternative. Read access is the default; remote changes need an additional write grant. Folder selection limits ingestion, while Google's read permission covers the account's Drive.

Start with installation and Google connection, then follow import and offline reading or a complete task recipe.

Clone this wiki locally