Gogcli
lastmod 2026-03-04created 2026-03-041 edits
A fast CLI for controlling Google Workspace from the terminal
About
- An agent-friendly, lightweight and fast CLI tool built to control Google Workspace as a whole from the terminal, including Gmail, Calendar, Drive, Docs, Sheets, Chat, Contacts, Tasks, Forms, and Keep
- A project by the creator of OpenClaw, mainly used for Google integration in OpenClaw, but also usable as a standalone CLI
- JSON-first output makes it useful for all kinds of automation; multiple accounts are also supported
- Gmail features
- Supports searching threads/messages, sending mail, viewing attachments, and managing labels, filters, delegation, and vacation settings
- Provides email open tracking based on Cloudflare Workers
- Viewing, creating, and editing events, managing invitations, checking free/busy status, managing team calendars and recurring events
- Supports special event types such as focus-time, out-of-office, and working-location
- Supports searching, uploading, and downloading files, managing permissions and comments, and managing shared drives and folder structures
- Can export Docs/Slides/Sheets files to PDF, DOCX, PPTX, and more
- Provides document creation, copying, and editing, plus Markdown-based sedmat document editing
- Supports spreadsheet automation such as cell formatting, inserting rows and columns, and reading comments and links
- Supports searching, creating, editing, and deleting personal and Workspace directory contacts
- Can list group members and access Workspace user profiles
- Scheduled task management and recurrence settings via the Tasks API
- Creating surveys and viewing responses with the Forms API
- Supports running Apps Script and managing projects, and managing Classroom courses, assignments, announcements, and students
- Supports OAuth2 and Workspace service accounts (domain-wide delegation)
- Secure credential storage via the OS keychain or an encrypted file-based keyring
- Keeps least privilege with automatic token refresh and read-only scope (--readonly) settings
- Optimized for script pipelines with --json and --plain modes
- Separate stderr output keeps data parsing reliable
- Command restriction (allowlist) can control sandboxed execution environments
- Manages multiple OAuth clients and accounts at the same time
- Per-domain automatic mapping and aliases simplify account switching
- Written in Go, installable via Homebrew and AUR
- Provides shell completion, Makefile builds, and integration test scripts
- Supports non-interactive authentication and test runs in CI/CD environments