CLI tool to interact with Gmail, Calendar, Drive, Contacts, Sheets, and Docs from your AI agent via Google Workspace APIs.
npx clawhub@latest install gogRequirements
Platforms
gog is a command-line interface for Google Workspace that lets AI agents read, search, send, and manage Gmail, Google Calendar, Drive, Contacts, Sheets, and Docs. After a one-time OAuth setup, agents can run structured commands against all major Google Workspace services without writing custom API integration code. It is designed for scripting and automation, with --json and --no-input flags that make it easy to pipe output into other tools.
npx clawhub@latest install gogClick the Install button at the top of this page for one-click setup
gog supports export and read but not direct Docs edits (a full Docs API client is required for that).Search your inbox using Gmail query syntax (e.g. newer_than:7d) and send emails directly from the CLI. Agents should confirm before dispatching mail.
List and query calendar events by calendar ID and ISO date range, making it easy to build scheduling assistants or read upcoming meetings.
Get, update, append, clear, and inspect metadata for any Google Sheet using cell range notation. Values are passed as JSON arrays, and output can be returned as --json for downstream processing.
Search Drive files using flexible query strings and retrieve results in structured JSON format.
Export Docs to plain text or other formats, or stream content directly to stdout with gog docs cat, without needing a separate API client.
Set GOG_ACCOUNT to avoid repeating --account on every command. Use --json and --no-input flags for clean, scriptable, non-interactive output suitable for agent pipelines.
An agent searches Gmail for recent unread messages, summarizes them, and drafts or sends replies — all via gog gmail search and gog gmail send.
An agent fetches today's or this week's calendar events using gog calendar events and composes a daily schedule summary for the user.
An agent reads rows from a Google Sheet, processes or enriches the data, then writes results back using gog sheets update or gog sheets append — without any manual copy-paste.
An agent exports a Google Doc to plain text with gog docs cat or gog docs export to feed its contents into a summarization or analysis workflow.
client_secret.json file from Google Cloud Console is needed to run gog auth credentials and authorize access to Workspace services. Each Google account must be added via gog auth add with the desired services (gmail, calendar, drive, contacts, sheets, docs).npx clawhub@latest install gogRequirements
Platforms
Log in to write a review
No reviews yet. Be the first to share your experience!