gog for Openclaw

A comprehensive command-line interface for managing Google Workspace services including Gmail, Drive, Sheets, and Calendar.

steipete
v1.0.0
Jan 5, 2026
932
187.1k
5.4k

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install gog

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 gog 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 gog?

gog is a versatile CLI tool designed to bridge the gap between terminal environments and the Google Workspace ecosystem. It provides a structured way to interact with Gmail, Calendar, Drive, Contacts, Sheets, and Docs without the need for a graphical interface. This tool is particularly valuable for developers looking to automate personal or professional workflows through scripts or AI-driven logic.

By incorporating this tool into your Openclaw Skills library, you enable your AI agents to perform complex administrative tasks like searching email history, managing spreadsheet data, and scheduling meetings. It leverages OAuth for secure access, ensuring that interactions with sensitive Google data remain controlled and authenticated.

gog Use Cases

  • Automating lead management by appending contact info to Google Sheets.
  • Searching and summarizing recent Gmail threads for quick context retrieval.
  • Programmatically creating or updating Calendar events for team scheduling.
  • Exporting Google Docs to plain text for ingestion by LLMs or data pipelines.
  • Managing file organization and searching within Google Drive via command-line scripts.

How gog Works

  1. Provide a Google Cloud client secret JSON file to initialize the OAuth handshake.
  2. Authorize specific services like Gmail or Sheets for your Google account.
  3. Execute targeted commands using the gog binary to query or modify Google Workspace data.
  4. Utilize the JSON output flag to pipe structured data into other tools or AI agents.
  5. Use environment variables to handle multiple accounts and streamline script execution.

gog Setup

To get started with gog for your Openclaw Skills, install the CLI via Homebrew:

brew tap steipete/tap
brew install gog

Next, perform the one-time OAuth setup:

gog auth credentials /path/to/client_secret.json
gog auth add [email protected] --services gmail,calendar,drive,contacts,sheets,docs

Verify your authenticated accounts:

gog auth list

gog Data Schema & Taxonomy

The gog skill interacts with various Google APIs, returning data in structured formats. Below is a summary of core data interactions:

Service Primary Entities Common Data Formats
Gmail Messages, Threads, Search Results Text, JSON
Sheets Rows, Cell Ranges, Metadata JSON, USER_ENTERED Values
Drive Files, Folders, Metadata Search Result Lists
Calendar Events, Intervals ISO-8601 Strings
Docs Document Content TXT Export, Raw Cat Output
Contacts Contact Lists, Profiles Paginated Lists

gog Advanced Features

  • Multi-account support using the GOG_ACCOUNT environment variable to switch contexts easily.
  • Script-friendly JSON output for all major commands to support complex Openclaw Skills workflows.
  • Headless execution mode with the --no-input flag for automated environments.
  • Granular Sheets management including appending, clearing, and metadata retrieval.
  • Direct Google Docs content streaming via the cat command for immediate text processing.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0