Skip to content

Google Workspace CLI: Gmail skill

Read, send and triage Gmail through the gws command-line tool.

Community, verifiedby Google Workspace (googleworkspace org)Checked November 8, 2026

Install Google Workspace CLI: Gmail free

Leave your email and the install steps open right here: one prompt to paste into your AI tool. Works for all 151 skills.

No spam. One click to unsubscribe. We use your email to send you this bonus, new guides and news about our courses.

Gmail (gws-gmail) is one of the skills that ship with the Google Workspace CLI, a command-line tool published in Google's googleworkspace GitHub organization but, in its own words, not an officially supported Google product. It lets Claude summarize, read, send, reply to and forward your Gmail from the terminal, after a one-time Google sign-in that needs your own Google Cloud project.

Who is Google Workspace CLI: Gmail for?

  • Professionals who live in Gmail
  • Operations staff
  • Freelancers handling client email
  • Developers automating Workspace

What's inside Google Workspace CLI: Gmail

Gmail (gws-gmail) is a 61-line SKILL.md (version 0.22.5), with no scripts, that maps Gmail onto commands of gws, the Google Workspace command-line tool. It is a hub: sign-in and safety rules live in a shared gws-shared skill, and each everyday task has its own small helper skill.

When it switches on

Claude uses it when you ask it to send, read or manage Gmail messages through the gws tool.

What the instructions cover

  • Seven helper commands: send, an unread summary, reply, reply to all, forward, read one message and watch for new mail
  • Threading handled automatically on replies, and new mail streamed one record per line while watching
  • The Gmail areas Claude can reach: profile, drafts, history, labels, messages, settings, threads and push notifications
  • Looking up a method's required inputs with gws schema before calling it
  • Shared safety rules: confirm with you before any write or delete, prefer --dry-run, never print tokens

What it needs

  • The gws CLI (0.22.5 on npm on November 8, 2026), signed in with gws auth login
  • The gws-shared skill (gws generate-skills creates it if missing) and the gws-gmail-* helper skills
FileWhat it is
SKILL.md61 lines: the helper command table, the Gmail API resources and how to look up commands

Watch out: For a personal @gmail.com account the sign-in is the hard part: an unverified Google Cloud app in testing mode allows only about 25 scopes, so the CLI's recommended preset of 85+ scopes fails. The project's README says to pick Gmail alone in the scope list and add yourself as a test user.

How to use Google Workspace CLI: Gmail: which prompts work?

Prompt 1
Summarize my unread Gmail from today and tell me which three need a reply first.
Prompt 2
Find the latest email from [SENDER] about [TOPIC] and draft a reply that [WHAT TO SAY]. Show it to me before sending.
Prompt 3
Forward the last invoice email from [SUPPLIER] to [ACCOUNTANT'S EMAIL].

How do you install Google Workspace CLI: Gmail?

Skills follow the open Agent Skills standard, so this one is not tied to one company. Pick the AI tool you use. Not sure? The first tab covers most of them in one step. New to this? Our guide on how to install Claude skills walks through it, and Anthropic's plugin guide covers the Claude app.

Easiest: paste this into your AI tool
Install this skill for me so it works in every project: run `npx skills add https://github.com/googleworkspace/cli/tree/main/skills/gws-gmail -g -y` in my terminal. If Node.js is missing, tell me how to install it first. When it's done, confirm the skill is installed and tell me how to start using it.

Or do it yourself:

One command installs the skill: it finds the AI tools on your computer and asks which ones should get it.

npx skills add https://github.com/googleworkspace/cli/tree/main/skills/gws-gmail -g

You need Node.js installed (free, from nodejs.org). The -g flag makes the skill available in every project.

Good to know: Run gws auth setup once; it needs a Google Cloud project and the gcloud CLI, or a manual OAuth setup.

Unlock the install steps

Free. Leave your email once to open the install steps for all 151 skills, and get the best new skills each month.

No spam. One click to unsubscribe. We use your email to send you this bonus, new guides and news about our courses.

How did we check Google Workspace CLI: Gmail?

On November 8, 2026 we read the skill's only file, its 61-line SKILL.md. The section on what's inside comes from that file. Its license is Apache-2.0. Its files were last changed in March 2026. We have not run it on a test task yet.

Sources we checked