{"name":"Gogcli: Google Workspace Management from Your Terminal","description":"Gogcli is a powerful command-line interface for Google Workspace, allowing users to manage Gmail, Calendar, Drive, Docs, Sheets, and many other services directly from their terminal. It is designed for both interactive use and robust automation, providing predictable output, agent safety features, and support for multiple accounts.","github":"https://github.com/openclaw/gogcli","url":"https://osrepos.com/repo/openclaw-gogcli","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/openclaw-gogcli","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/openclaw-gogcli.md","json":"https://osrepos.com/repo/openclaw-gogcli.json","topics":["gcal","gcontacts","gdrive","gmail","google","Go","CLI","Workspace Automation"],"keywords":["gcal","gcontacts","gdrive","gmail","google","Go","CLI","Workspace Automation"],"stars":null,"summary":"Gogcli is a powerful command-line interface for Google Workspace, allowing users to manage Gmail, Calendar, Drive, Docs, Sheets, and many other services directly from their terminal. It is designed for both interactive use and robust automation, providing predictable output, agent safety features, and support for multiple accounts.","content":"## Introduction\n\nGogcli, also known as `gog`, is a command-line interface (CLI) that brings Google Workspace to your terminal. It provides a single binary to manage a wide array of Google services, including Gmail, Calendar, Drive, Docs, Sheets, Slides, Forms, Meet, Apps Script, Analytics, Search Console, Contacts, Tasks, Classroom, Chat, and YouTube. Designed for individuals, scripts, CI/CD pipelines, and coding agents, `gog` focuses on task-first commands and predictable automation.\n\n## Installation\n\nInstalling `gogcli` is straightforward, with options for various operating systems and environments.\n\n### Homebrew\n\nbash\nbrew install openclaw/tap/gogcli\ngog --version\n\n\n### Docker\n\nbash\ndocker run --rm ghcr.io/openclaw/gogcli:latest version\n\n\nFor authenticated container runs, use a persistent `GOG_HOME` directory and the encrypted file keyring:\n\nbash\ndocker volume create gogcli-state\n\ndocker run --rm -it \\\n  -e GOG_HOME=/persist/gogcli \\\n  -e GOG_KEYRING_BACKEND=file \\\n  -e GOG_KEYRING_PASSWORD \\\n  -v gogcli-state:/persist/gogcli \\\n  ghcr.io/openclaw/gogcli:latest \\\n  auth add you@gmail.com --services gmail,calendar,drive\n\n\n### Windows\n\nDownload `gogcli_<version>_windows_amd64.zip` or `gogcli_<version>_windows_arm64.zip` from the [latest release](https://github.com/openclaw/gogcli/releases \"gogcli latest release\") page, extract `gog.exe`, and add its directory to your system's `PATH`.\n\n### Build from source\n\nbash\ngit clone https://github.com/openclaw/gogcli.git\ncd gogcli\nmake\n./bin/gog --version\n\n\nSource builds require the Go version declared in `go.mod`.\n\n## Examples\n\n`gogcli` offers a rich set of commands for daily tasks and automation across Google services. Here are a few examples:\n\n### Gmail\n\nSearch mail and get sanitized message content for scripts:\n\nbash\ngog gmail search 'from:boss newer_than:30d' --json\ngog gmail get <messageId> --sanitize-content --json\n\n\n### Calendar\n\nList today's events and create a new one:\n\nbash\ngog calendar events --today\ngog calendar create --summary \"Review\" \\\n  --from \"2026-05-06T10:00:00+02:00\" \\\n  --to \"2026-05-06T10:30:00+02:00\"\n\n\n### Drive\n\nPerform read-only folder audits:\n\nbash\ngog drive tree --parent <folderId> --depth 2\ngog drive audit sharing --parent <folderId> --internal-domain example.com --json\n\n\n### Docs\n\nAppend Markdown content to a Google Doc:\n\nbash\ngog docs write <docId> --append --markdown --text '## Status'\n\n\n## Why Use Gogcli?\n\nGogcli goes beyond merely exposing Google APIs, it builds upon them to provide a robust and durable CLI experience. Key benefits include:\n\n*   **Task-first workflows**: It focuses on real-world tasks like searching and sanitizing mail, resolving calendar names, auditing Drive sharing, editing Docs, and managing Workspace users.\n*   **Automation that composes**: Offers stable `--json` and `--plain` stdout, clear exit codes, and `--no-input` for seamless integration into CI/CD and scripts.\n*   **Many identities, one install**: Supports various authentication methods, including account aliases, named OAuth clients, direct access tokens, and Workspace service accounts.\n*   **Agent safety with explicit boundaries**: Features runtime `--readonly` flags, command allow/deny rules, `--gmail-no-send`, and safety-profile binaries to prevent unintended actions.\n*   **A discoverable contract**: Provides `gog schema --json` for introspection, generated reference pages, and service skills for agent workflows.\n\n## Links\n\nFor more detailed information and comprehensive guides, refer to the official documentation:\n\n*   [Overview](https://gogcli.sh/ \"Gogcli Overview\")\n*   [Install Guide](https://gogcli.sh/install.html \"Gogcli Install Guide\")\n*   [Quickstart](https://gogcli.sh/quickstart.html \"Gogcli Quickstart\")\n*   [Command Index](https://gogcli.sh/commands/ \"Gogcli Command Index\")\n*   [Automation Guide](https://gogcli.sh/automation.html \"Gogcli Automation Guide\")\n*   [Auth Clients](https://gogcli.sh/auth-clients.html \"Gogcli Auth Clients\")\n*   [GitHub Repository](https://github.com/openclaw/gogcli \"Gogcli GitHub Repository\")","metrics":{"detailViews":0,"githubClicks":0},"dates":{"published":null,"modified":"2026-06-24T19:09:33.000Z"}}