Google Workspace in Gemini CLI
Lets Gemini CLI read and write your Gmail, Calendar, Drive, Docs, Sheets, Slides and Chat
by Google
by Google WorkspaceCLI toolGet organised
Lets you and your AI agent work with Gmail, Drive, Calendar and Sheets from the terminal
Google Workspace CLI (gws) is a command-line tool that reaches Drive, Gmail, Calendar, Sheets, Docs and Chat from the terminal and returns structured JSON, for people and AI agents.
For Terminal usersDevelopersAI agent users
Published by the googleworkspace organization on GitHub under Apache-2.0. Its README says it is not an officially supported Google product and is under active development.
Google Workspace CLI, called gws, is one command-line tool for Drive, Gmail, Calendar, Sheets, Docs, Chat and other Workspace services. It reads Google's own API listing when it runs, so new Workspace features appear without an update, and every answer comes back as structured JSON that an AI agent can read. The repository also includes ready-made agent skills. It suits people who are comfortable in a terminal and willing to set up a Google Cloud project for sign-in.
One tool reaches every Workspace service, and it can preview a request with --dry-run before anything is sent.
Start with the first one: it is a small task you can check easily.
Example prompts written by Agent Flows Hub.
From the creator's documentation.
| Feature | What it does | Runs |
|---|---|---|
| Many services | Drive, Gmail, Calendar, Sheets, Docs, Chat and Admin from one tool | Google APIs |
| Structured JSON | Every response comes back as JSON that an agent or script can read | Your computer |
| Dry run | Previews a request with --dry-run before it is sent | Your computer |
| Always current | Builds its commands from Google's API listing when it runs | Google APIs |
| Agent skills | The repository includes agent skills for common Workspace jobs | Your agent |
| Sign-in options | Desktop login, a service account, or a token you already have | Your Google account |
Work with Drive, Gmail, Calendar or Sheets from the terminal, or give an AI agent a single tool that returns structured JSON. After a one-time sign-in you list files, create a spreadsheet or preview a request before it is sent.
Notes by Agent Flows Hub (original project name: gws (Google Workspace CLI)), written from the creator's documentation, not from running it ourselves. Google Workspace CLI README
Tell us what happened. We take a look first; if it needs paid work, you get an estimate before anything starts.