gog (Google Workspace CLI) for Openclaw

A comprehensive command-line interface for managing Gmail, Calendar, Drive, Contacts, Sheets, and Docs with OAuth security.

liang0591
v1.0.0
Mar 8, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install gog-1

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-1 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 (Google Workspace CLI)?

gog is a high-performance command-line utility designed to provide programmatic access to the Google Workspace ecosystem. By wrapping complex Google APIs into intuitive CLI commands, it allows developers and AI agents to interact with productivity tools without a GUI. This skill is essential for Openclaw Skills users who need to bridge the gap between local terminal environments and cloud-based office suites, providing a secure and scriptable way to handle documents, emails, and schedules.

gog (Google Workspace CLI) Use Cases

  • Automating the creation and updating of Google Sheets for data logging or reporting.
  • Searching and retrieving specific email threads in Gmail for context-aware AI processing.
  • Programmatically managing Calendar events and checking availability across multiple accounts.
  • Exporting Google Docs to plain text to feed into large language models or static site generators.
  • Managing and searching files within Google Drive directly from automated pipelines.

How gog (Google Workspace CLI) Works

  1. The user provides a Google Cloud client secret to initialize the OAuth authentication flow.
  2. Specific Google accounts are linked to the tool with granular service permissions (scopes).
  3. Commands are issued to interact with specific Workspace services like Sheets or Gmail.
  4. For scripting and automation, the tool generates structured JSON output that can be parsed by other Openclaw Skills.
  5. Environment variables manage active account sessions to ensure seamless multi-account workflows.

gog (Google Workspace CLI) Setup

To integrate this utility with your Openclaw Skills setup, install the binary and configure your credentials:

# Install the gog CLI
brew tap steipete/tap/gogcli
brew install gog

# Configure OAuth credentials
gog auth credentials /path/to/client_secret.json

# Authorize your account and services
gog auth add [email protected] --services gmail,calendar,drive,contacts,sheets,docs

# Set default account
export [email protected]

gog (Google Workspace CLI) Data Schema & Taxonomy

The gog skill handles diverse data types across the Google ecosystem, often converting API responses into accessible formats for Openclaw Skills.

Service Data Handled Default Output
Gmail Email metadata, body content, and threads Text / JSON
Sheets Grid data, cell values, and sheet metadata JSON
Drive File IDs, names, and search results JSON
Docs Document content and structural metadata TXT / Export
Contacts Contact lists and detail records JSON

gog (Google Workspace CLI) Advanced Features

  • Support for --json and --no-input flags, making it ideal for non-interactive AI agent environments.
  • Granular Sheets manipulation including append, update, and clear operations using USER_ENTERED formatting.
  • Batch export capabilities for Google Docs into multiple file formats for local processing.
  • Environment variable persistence via GOG_ACCOUNT to minimize command-line verbosity.
  • Advanced Gmail search filtering using standard Google search operators directly from the terminal.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*