SkillPartly tested (needs an account)

Google Drive, Gmail and Sheets

Google Workspace CLI

One command line tool for Google Drive, Gmail, Calendar, Sheets and Docs, with many ready-made agent skills. You must sign in with your Google account.

Works with
Claude Code, Codex CLI, Gemini CLI
Good for
Daily work and research, Everyone

What it does

gws is one command line tool for Google Workspace. It reaches Drive, Gmail, Calendar, Sheets, Docs, Chat and more. A command line tool is a program you run by typing in the terminal. Your assistant can type these commands for you.

The tool does not carry a fixed list of commands. It reads Google's public API description when it runs. When Google adds a feature, gws can use it without an update. Every answer comes back as structured JSON data, which assistants read well.

The project also has helper commands that start with a plus sign. Examples are gws gmail +triage for an unread mail summary and gws calendar +agenda for your next events. A --dry-run option shows what a command would send, without doing it. The repository also holds agent skills. A skill is a set of written instructions that teaches the assistant how to use one Google service.

The README says two important things. This is not an officially supported Google product. It is also under active development, so commands can change before version 1.0.

The sign-in is the hard part for beginners. You need a Google Cloud project with OAuth credentials. OAuth is the Google screen that asks you to allow access to your account. The command gws auth setup guides you through this. The README says it needs the gcloud tool. Without gcloud, you can set up the credentials by hand in the Cloud Console.

Who it is for

  • People who want an assistant to do office chores in Google Workspace.
  • Users who can accept a one-time setup in Google Cloud.
  • Users of Claude Code, Codex CLI or Gemini CLI. All three can run gws.

Example prompts

  • "Use gws to list my 10 most recent Drive files."
  • "Show tomorrow's calendar events and write a short summary."
  • "Create a spreadsheet called Q1 Budget."
  • "Show me the unread emails in my inbox."
  • "Show the gws command first with --dry-run. Then wait for my approval."

How to install

npm install -g @googleworkspace/cli
brew install googleworkspace-cli
npx skills add https://github.com/googleworkspace/cli
gemini extensions install https://github.com/googleworkspace/cli

How to use it

Install the tool (the command is gws), sign in, then call it or let your agent call it, for example: gws drive files list --params '{"pageSize": 10}'. Add the skills so the agent knows each service.

Check it works

Sign in once. Then run the quick-start command from the README.

gws auth setup
gws auth login
gws drive files list --params '{"pageSize": 5}'

You should see your five newest Drive files as JSON text.

Common problems

  • Login says "Access blocked": your OAuth app is in testing mode and your account is not a test user. Open the OAuth consent screen in your Google Cloud project. Add your email under Test users. Run gws auth login again.
  • Google shows "Google hasn't verified this app": this is normal in testing mode. The README says to click Advanced, then Go to the app. It calls this safe for personal use.
  • The consent screen fails with too many permissions: unverified apps allow about 25 scopes. A scope is one kind of access. Ask for only the services you need.
gws auth login --scopes drive,gmail,calendar
  • The error has the reason accessNotConfigured: a Google API is off in your Cloud project. Open the link in the error text. Click Enable. Wait about ten seconds. Try again.
  • The error is redirect_uri_mismatch: create the OAuth client again with the type Desktop app.

What to watch out for

  • It is not an officially supported Google product, and it is still before version 1.0, so commands can change between updates.
  • It signs in to your Google account and can read, change and delete mail, files and sheets.
  • Give it the smallest access that works. Start with read-only tasks.
  • The agent skills let an AI run these commands for you. Approve write commands one by one.

Licence and author

Licence
Apache-2.0
Author
googleworkspace (GitHub)
Source code
github.com/googleworkspace/cli

How we tested it

We installed it on an empty test computer on 12 Oct 2026. Partly tested: installed in a clean test system, but its main features need an account or key we did not use.

Test level

Sign-in is needed for any real call, so no Google data was touched. The Homebrew route, the skills install and the Gemini install were not run.

Technical details of the test
Date
12 Oct 2026
Method
Ran npx -y -p @googleworkspace/cli gws --help in a clean container with no account. The tool started and printed its usage text with the Drive, Sheets and Gmail examples. The repository holds 95 skill files that all have a name and a description, and its Gemini manifest is valid JSON.

Checked again on 12 Oct 2026

Alternatives

  • gemini-workspace-extension: simpler sign-in, but it works in Gemini CLI only.
  • knowledge-work-plugins: Anthropic's role plugins for Claude Code. They use other connectors, not Google APIs.

FAQ

Is it an official Google product? No. It lives in the googleworkspace GitHub organisation, but the README says Google does not officially support it.

Can it send or delete things? Yes. It reaches the full APIs. Use --dry-run first and approve each write command.

Do I need Node.js? The README lists Node.js 18 or newer for the npm install. You can also download a ready program from GitHub Releases.

Do I need gcloud? Only for the automatic gws auth setup. The manual route does not need it.

Sources