openclaw

gogcli: Use Google Workspace from the Terminal

gogcli is a Go command-line client for Google Workspace, built for people, scripts, CI, and agents that need to work with Google services from the terminal. It supports account routing, structured output, and controls for safer automation.

ActiveGoMITCLIAutomationAPI
Stars
8.5k
Forks
722
Stars, last 30 days
+75
Last commit
today
Contributors
100+

Our take

Activeregular commits and releases

Health score

77/100

How it is scored
Activity
86
Community
65
Issues
72
Pull requests
83

+75 stars in the last 30 days

  • Merges more pull requests than 94% of the projects we track
  • Releases more often than 89% of the projects we track
  • More contributors than 78% of the projects we track

gogcli is an actively maintained, broad Workspace CLI with frequent releases, but its measured contributor concentration makes maintainer continuity worth considering.

Good fit if

  • You need terminal access to multiple Google Workspace services and can configure Google's OAuth authorization.
  • You want structured output and explicit execution controls for scripts, CI, or agents.
  • You are comfortable adopting a Go project that is actively developed and released, and the MIT license suits your use.

Look elsewhere if

  • You need an interface that does not depend on Google APIs, accounts, or OAuth setup.
  • You need consumer-account access to Workspace-only features such as Admin Directory, Cloud Identity Groups, Chat, or Keep.
  • You require a project whose development is not heavily concentrated among a small number of contributors.
All health signals
Last commit2026-10-27 (today)
Commits, last 90 days100+
Releases, last 12 months64 (latest v0.47.1, 2026-10-27)
Contributors100+ (top contributor: 78% of commits)
Issues closed, last 90 days21+ (typically closed in 2 days)
Pull requests merged, last 90 days91 (typically merged in 0 days)
Project age11 months

Checked on 2026-10-28 with the GitHub API.

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

8,587

Forks

731

Change since Nov 17, 2026: +3 stars·-1 forks

Overview

gogcli is a Go command-line client for Google Workspace, Google's suite of services including Gmail, Calendar, Drive, Docs, and Sheets. It gives people, scripts, CI jobs, and agents a terminal-based way to work across those services, with explicit account routing and machine-readable output.

Its focus is not just interactive commands: options such as read-only mode, command allowlists, and no-input operation let callers set boundaries for automation. The command surface also covers services such as Contacts, Tasks, Chat, and Workspace administration, though some features require a managed Workspace domain.

Key Features

  • Work with Gmail, Calendar, Drive, Docs, Sheets, Slides, Forms, Contacts, Tasks, and other Google services through one CLI.
  • Select among multiple Google accounts and configure OAuth clients, access tokens, application default credentials, or Workspace service accounts.
  • Emit JSON or stable TSV output for scripts and downstream tools.
  • Restrict automated execution with read-only mode, no-input operation, exact command allowlists, and Gmail no-send policy.
  • Generate command schemas and help from the installed binary's command tree.
  • Offer a typed, read-only-by-default MCP server, with explicit authorization required for writes.
  • Support OAuth scopes selected by service, including narrower Gmail authorization options.

Use Cases

  • A developer can search Gmail or inspect Calendar events from scripts without building a separate integration for each service.
  • A team can automate Drive sharing audits and consume the results as JSON in CI.
  • An agent workflow can access authorized Workspace commands while restricting writes and disabling interactive prompts.
  • A person managing personal and work Google accounts can route commands to the intended account without switching installations.

What you need

Detected in the repository

  • Go 1.26.0 or newer (from go.mod)
  • A Dockerfile, so it can run in a container
  • Automated checks on GitHub Actions

License in plain words

MITpermissive

  • Commercial use: yes
  • Modify and redistribute: yes
  • You must keep: the copyright and license notice
  • Share your changes: no

A summary, not legal advice: the LICENSE file is what applies.

Getting Started

Install with Homebrew on macOS or Linux:

brew install openclaw/tap/gogcli

Then follow the README for Google Cloud OAuth setup, service authorization, and account configuration.

Alternatives

  • cli: It generates commands dynamically from Google's Discovery Service, while gogcli emphasizes account routing and controls for safer automation.
ProjectLanguageLicenseStarsStatus
gogcliGoMIT8.5kActive
cliRustApache-2.031.8kQuiet

Considerations

  • Some commands require enabling the relevant Google APIs and setting up an OAuth client. Workspace administration and certain services require a managed Workspace domain or a service account with domain-wide delegation.
  • Authorization can grant access to sensitive mail, files, and other Workspace data. Choose service scopes carefully and use the CLI's automation controls to limit what scripts and agents can do.
  • The project has recent commits and releases and handles issues and pull requests quickly, but most contributions are concentrated with one person. Teams adopting it for essential workflows should account for that maintainer concentration.
  • The project requires the Go version declared in go.mod for Go-based installation and building. Prebuilt packages are also documented in the repository.

Found this useful?

Share it with someone who would like gogcli.

Comparisons