Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

gog

Skill by openclaw

gog gives an AI assistant access to Gmail, Calendar, Drive, Contacts, Sheets, and Docs through the gog command line tool. It is for users who want their assistant to search, send, and manage Google Workspace data after OAuth setup.

  • Score 91
  • 395k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install gog

Built from the published package, never by AI.

git clone --depth 1 https://github.com/openclaw/openclaw /tmp/openclaw && mkdir -p ~/.claude/skills && cp -r /tmp/openclaw/skills/gog ~/.claude/skills/gog

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install gog in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

gog is an agent skill that teaches an AI assistant how to use the gog command line tool for Google Workspace. It covers Gmail, Calendar, Drive, Contacts, Sheets, and Docs. The skill lists common commands for searching and sending email, creating drafts and replies, managing calendar events and colors, searching Drive, listing contacts, and reading or writing spreadsheets and documents. Setup requires OAuth credentials and an authorized account, and the skill includes steps for remote or headless Gateway hosts.

The skill tells the assistant to use the already authorized account intended for the task and to resolve the target before sending or writing. It says never to ask for passwords, client secrets, or refresh tokens in chat. It is aimed at people who run gog on a Gateway host and want scripted, non-interactive use with JSON output and the --no-input flag. The source gives Homebrew as the install method, using the gogcli formula.

Written from the project's SKILL.md and checked against it.

What it can do

  • Gmail searchSearches threads with `gog gmail search` and individual messages with `gog gmail messages search`.
  • Gmail sendSends plain text, multi-line, stdin, or HTML email, and supports replies to a message ID.
  • Gmail draftsCreates drafts and sends existing drafts by draft ID.
  • Calendar eventsLists, creates, and updates events, with optional event colors.
  • Calendar colorsShows the available event color IDs, 1 to 11, with `gog calendar colors`.
  • Drive searchSearches Google Drive files with `gog drive search`.
  • Contacts listLists Google contacts with `gog contacts list`.
  • Sheets read and writeGets, updates, appends, clears, and reads metadata for spreadsheet ranges.
  • Docs exportExports a document to a file or prints it with `gog docs cat`.

What you need

  • Google OAuth client secret file for gog auth credentials
  • A Google account to authorize for the needed services
  • gog command line tool, installable with Homebrew (gogcli formula)

Try asking

  • Search my Gmail for unread messages from the last 7 days
  • Create a calendar event called Team sync next Tuesday at 10am
  • Append a row with today's totals to my expenses sheet

Good to know

  • In-place Docs edits require a Docs API client, which is not part of gog.
  • gog auth list --check exit status does not prove every stored token is valid.
  • --body does not unescape \n, so use --body-file for multi-paragraph messages.
  • gog gmail search returns one row per thread, not one row per email.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/gog/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB

Alternatives to gog

All alternatives →

Compare with ask-user-question, beads or google_tasks

gog: common questions

Does gog need OAuth setup before it works?

Yes. The source says gog requires OAuth setup, which means adding credentials once and authorizing an account for the services you need.

Can the assistant edit Google Docs in place with gog?

Not with gog alone. The source says in-place edits require a Docs API client, while gog supports export, cat, and copy.

How are passwords and tokens handled?

The skill says never to ask for passwords, client secrets, or refresh tokens in chat, and callback URLs must never enter chat or agent tool input.

How do I install gog?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is gog free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is gog safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to gog?

Similar skills: ask-user-question, beads, google_tasks, recall.

Add to stack

Loading.