googGitHub

First release

Sign in to many Google accounts with one OAuth app, and reach Drive, Docs, Sheets and Gmail without switching accounts.

v0.1.0
zsh
~/work $
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

Many accounts, one OAuth app

Set up your OAuth app once, log in to each account, and pick the active one.

$goog auth setup
$goog auth login
$goog auth switch alice@example.com

Unified Access

Commands that target a file try the remembered account, then the active account, then the rest, and remember which one worked. --account uses exactly that account.

$goog --account bob@example.com drive ls

Drive, Docs, Sheets and Gmail

List, upload and download Drive files, read Docs and Sheets, and search Gmail.

$goog drive upload ./report.pdf --folder FOLDER_ID
$goog sheets values get SPREADSHEET_ID 'Sheet1!A1:D10'
$goog mail list --limit 10
Downloads and checksums on GitHub