googGitHub
v0.2.16Anonymous usage counts

Google Workspace from your terminal

Drive, Docs, Sheets, Slides, Calendar and Gmail across every Google account you use. Built for power users and AI agents.

$curl -fsSL https://raw.githubusercontent.com/SainyTK/goog-cli/main/install.sh | sh
The goog terminal logo floating among Gmail, Docs, Drive, Sheets and Slides icons, with a robot and a friendly character typing on laptops

Multiple accounts

Every account, one login each

Work, client and personal accounts side by side. Point goog at any file and it finds the account that can open it.

1

Log in once per account

One consent screen covers all six apps. Commands never open a browser again.

2

Paste any link

goog tries the remembered account, then the active one, then the rest, and remembers which one worked.

3

Strict when you say so

--account uses exactly that account, with no fallback.

zsh
~/work $
Workactive
alex@acme.com
Client
alex@northwind.io
Personal
alex.personal@gmail.com
My Drive - Drive
drive.google.com/drive/my-drive
A
My Drive
NameModified
Q4 PlanningNov 27
Board updateNov 26
Hiring plan 2027Nov 24
Team budgetNov 20

Demos

From the terminal to Workspace

Type the commands yourself or ask Claude Code. The result lands in Google Workspace.

claude
✻ Welcome to Claude Code
cwd: ~/work
>
Inbox - Gmail
mail.google.com/mail/u/1/#inbox
A
Priya ShahPilot store list - All 12 pilot stores confirmed for 7 December.Nov 27
Tom ReyesKiosk firmware delay - Firmware 2.4 slips one week, to 18 December.Nov 26
FacilitiesParking pass renewal - Renew your pass before the end of the month.Nov 25
Priya ShahWeek 48 budget sign-off - Budget approved, with a 5% buffer for training.Nov 24

Coverage

Six apps, one CLI

High-level commands for everyday work, with a raw API path when you need the last mile.

Drive

List, find, upload, replace, move, convert Office files and trash. Comments on any file.

Docs

Create from templates, edit text, images, tables and styles, anchor comments and write suggestions.

Sheets

Read and write values as tables or CSV, format ranges, manage tabs, filters and protection.

Slides

Create decks and edit slides, text, images, tables and shapes, or send raw batch updates.

Calendar

Check free/busy, then create, update, move and delete events and calendars.

Gmail

Search and read messages, download attachments, write reply drafts and edit drafts in place.

AI agents

Made for coding agents

Add the skill and Claude Code, Codex or any agent with a shell uses goog for every Workspace task.

$npx skills add SainyTK/goog-cli

Readable by default, JSON on request

Tables for people, the full structured result for scripts.

goog calendar events list primary --json

Clean stdout

Progress and update notices go to stderr, so pipes and exit codes stay intact.

goog sheets values get-table ID 'A1:D9' --format csv | wc -l

Preview before writing

Dry runs show the exact change. Revision guards stop overwriting a newer edit.

goog docs text replace ID --find draft --replace final --dry-run

Respect other people's files

Edits can land as suggestions and comments anchor to the text they discuss.

goog docs text replace ID --find old --replace new --suggest

No browser in the loop

One consent screen per account at login. Ordinary commands never open a browser or prompt.

goog auth login

Get started

Up and running in four steps

$curl -fsSL https://raw.githubusercontent.com/SainyTK/goog-cli/main/install.sh | sh
1

Set up Google Cloud

Create the OAuth app goog signs in with, in your own Google Cloud project.

Open the setup guide
2

Add your OAuth app

$goog auth setup --client-secret-file ~/Downloads/client_secret_*.json
3

Log in to each account once

$goog auth login
4

Work across all of them

$goog drive ls --limit 20