gog Google Workspace CLI for Openclaw

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

hailinhmacduc
v1.0.0
Feb 21, 2026
0
1.4k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install asdasdas

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

The gog skill is a robust command-line interface designed to bridge the gap between terminal environments and the Google Workspace ecosystem. This utility enables users and AI agents to programmatically interact with Gmail, Google Calendar, Google Drive, Contacts, Sheets, and Docs without needing a browser. By integrating this tool into your Openclaw Skills library, you can automate complex cross-service workflows, such as extracting data from Sheets to send via Gmail or querying Drive for specific documents to process in your development pipeline.

Built for efficiency, gog provides a unified syntax for disparate Google APIs. It allows for seamless data extraction and manipulation, making it an essential component for developers building automated agents that require access to personal or organizational productivity data. Its ability to output JSON makes it particularly well-suited for integration with other automation scripts and AI-driven processes.

gog Google Workspace CLI Use Cases

  • Searching and reading recent Gmail messages based on specific search filters like newer_than or labels.
  • Appending data rows or updating specific cell ranges in Google Sheets for automated reporting and logging.
  • Listing and managing Google Calendar events to facilitate scheduling automation within a terminal.
  • Exporting Google Docs content to local text files for offline processing or LLM analysis.
  • Querying Google Drive for specific files and managing cloud-based assets directly via CLI.

How gog Google Workspace CLI Works

  1. Initialize authentication by providing a Google Cloud client secret file to the CLI.
  2. Add specific Google accounts and authorize the required service scopes such as gmail, calendar, or drive.
  3. Execute service-specific commands through the gog binary to fetch or modify data.
  4. Process command outputs, preferably in JSON format, to feed into other tools or display to the user.
  5. Manage multiple active accounts by switching the GOG_ACCOUNT environment variable for contextual execution.

gog Google Workspace CLI Setup

Installation

Install the gog binary using Homebrew:

brew install steipete/tap/gogcli

Configuration

Follow these steps to authorize your Google Workspace account:

# Provide your Google Cloud client secret
gog auth credentials /path/to/client_secret.json

# Add your account and specify the services you want to enable
gog auth add [email protected] --services gmail,calendar,drive,contacts,sheets,docs

# Verify the authorized accounts
gog auth list

gog Google Workspace CLI Data Schema & Taxonomy

The tool utilizes a structured approach to interact with Google APIs and organizes data as follows:

Data Type Description
JSON Output Standardized machine-readable responses via the --json flag for all major commands.
Sheets Ranges Uses standard A1 notation (e.g., 'Tab!A1:D10') for precise data targeting.
Auth Metadata Local storage of OAuth tokens and service permissions to maintain session persistence.
Document Formats Supports exporting Google Docs to various formats including .txt.

gog Google Workspace CLI Advanced Features

  • Support for multi-account management, allowing users to toggle between different Google identities using environment variables.
  • High-precision Google Sheets manipulation using --values-json for complex data structures and batch updates.
  • Script-friendly execution modes using the --no-input flag to prevent interactive prompt blocking in automated pipelines.
  • Robust Gmail search capabilities using native Google search operators directly from the command line.
  • Deep integration potential with Openclaw Skills to provide AI agents with a direct interface to user productivity data.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*