gogcli

gogcli is a skill for Claude Code, Codex from CraftOS-dev/CraftBot. It costs 40 tokens per session (695 once invoked), scanned B, original, MIT.

A command-line tool for Google Workspace, Google's set of work apps such as Gmail, Calendar, Drive, Sheets, and Docs.

In plain words
What is it for?
Use it to read and manage email, calendars, files, spreadsheets, documents, slides, contacts, tasks, groups, and notes.
Why use it?
It lets scripts and terminal workflows work with Workspace data without switching between separate web apps.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/craftos-dev/craftbot/gogcli
Any agent
npx skills add CraftOS-dev/CraftBot --skill gogcli
Clone the repo
git clone --depth 1 https://github.com/CraftOS-dev/CraftBot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gogcli

README.md
[![agentmods](https://agentmods.dev/badge/skills/craftos-dev/craftbot/gogcli.svg)](https://agentmods.dev/skills/craftos-dev/craftbot/gogcli)
Your own site
<a href="https://agentmods.dev/skills/craftos-dev/craftbot/gogcli"><img src="https://agentmods.dev/badge/skills/craftos-dev/craftbot/gogcli.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 695 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00040 $0.00695
Opus 5 $0.00020 $0.00347
Sonnet 5 $0.00008 $0.00139
Haiku 4.5 $0.00004 $0.00069

Measured yesterday against content hash e8dece8668ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

gogcli scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo make install
skills/gogcli/SKILL.md · 122 lines

How it starts

The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.

gogcli - Google Workspace CLI

Overview

gogcli is a CLI tool for managing Google Workspace services from the terminal. Supports Gmail, Calendar, Drive, Sheets, Docs, Slides, Contacts, Tasks, People, Groups, and Keep.

Installation

Quick Install (if you have brew):

brew install steipete/tap/gogcli

Build from Source (no brew):

# 1. Clone repository
git clone https://github.com/steipete/gogcli.git

# 2. Navigate to directory
cd gogcli

# 3. Build
make

# 4. (Optional) Make available globally
sudo make install

First Time Setup

Before using gogcli, set up OAuth credentials:

Step 1: Get OAuth Client Credentials

  1. Go to Google Cloud Console APIs & Services
  2. Create project or use existing one
  3. Go to OAuth consent screen
  4. Create OAuth 2.0 client with these settings:
    • Application type: "Desktop app"
    • Name: "gogcli for Clawdbot"
    • Authorized redirect URIs: http://localhost:8085/callback
  5. Enable APIs you need
  6. Download OAuth client credentials JSON file
  7. Copy to ~/Downloads/

Step 2: Authorize Your Account

cd gogcli
./bin/gog auth add [email protected] ~/Downloads/client_secret_....json

Step 3: Verify

./bin/gog auth list
./bin/gog gmail search 'is:unread' --max 5

Common Commands

Gmail

# Search
./bin/gog gmail search 'query' --max 20

# Send
./bin/gog gmail send '[email protected]' --subject 'Hello' --body 'Message'

# Labels
./bin/gog gmail labels list

Calendar

# List events
./bin/gog calendar events list --max 50

# Create event
./bin/gog calendar events create 'Meeting' --start '2026-01-30T10:00'

Drive

# List files
./bin/gog drive ls --query 'pdf' --max 20

# Upload file
./bin/gog drive upload ~/Documents/file.pdf

Sheets

# List sheets
./bin/gog sheets list

# Export sheet
./bin/gog sheets export <spreadsheet-id> --format pdf

Contacts

./bin/gog contacts search 'John Doe'

Tasks

# List tasklists
./bin/gog tasks list

# Add task
./bin/gog tasks add --title 'Task' --due '2026-01-30'

Read the full file on GitHub · 122 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 122 lines · 40 tokens per session scan B e8dece8668ad

Subscribe to this mod's changes

gogcli is a skill published in the GitHub repository CraftOS-dev/CraftBot (378 stars, last pushed 2d ago), licensed MIT. It adds 40 tokens to every session and 695 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.