devchiniwala/heyclara/google-workspace-cli
Claude Code and agent skill by devchiniwala/heyclara
- community
Checking that the SKILL.md file is still in the repository.
Use when user wants to interact with Google Workspace APIs (Gmail, Drive, Calendar, Sheets, Docs, Chat, Admin) from the command line using `gws`. Also use when setting up Google Workspace CLI, OAuth for Google APIs, or automating Google Workspace tasks. Check `which gws` first — if missing, offer install.
Install
npx vskill@latest install devchiniwala/heyclara/google-workspace-cliSKILL.md
The same SKILL.md was published earlier as devchiniwala/heyclara/google-workspace-cli.
Prerequisites
- gcloud CLI (required for automated setup):
- gws CLI:
Setup
Automated (requires gcloud CLI installed first)
Creates a GCP project, enables APIs, configures OAuth, and logs you in.
Manual
- Create a project at console.cloud.google.com
- Configure OAuth consent screen → External → Testing mode
- Add yourself as a test user (required)
- Create OAuth credentials → type Desktop app (not Web app)
- Download client JSON to
~/.config/gws/client_secret.json - Enable the APIs you need (Gmail, Drive, Calendar, etc.)
- Login with only the scopes you need:
Check auth status
Common Gotchas
- Subcommands are space-separated, not dot-separated:
gws gmail users messages list(NOTusers.messages) - OAuth client must be Desktop app type, not Web — otherwise
redirect_uri_mismatch - Must add yourself as test user in consent screen — otherwise "Access blocked"
- Testing mode apps limited to ~25 OAuth scopes — use
-sto select only what you need - If API not enabled, you get 403 with a direct link to enable it
Usage
Key Flags
| Flag | Purpose | |
|---|---|---|
--params '<JSON>' | URL/query parameters | |
--json '<JSON>' | Request body (POST/PATCH/PUT) | |
--page-all | Auto-paginate (NDJSON output) | |
--page-limit <N> | Max pages (default 10) | |
--upload <PATH> | File upload | |
--output <PATH> | Download binary files | |
--dry-run | Preview without executing | |
--format <FMT> | Output format: json (default), table, yaml, csv |
Helper Commands
Prefixed with +, these are convenience wrappers. Run gws <service> +cmd --help for full options.
- gmail:
+send,+reply,+reply-all,+forward,+triage,+watch - sheets:
+append,+read - docs:
+write - chat:
+send - drive:
+upload - calendar:
+insert,+agenda - workflow:
+standup-report,+meeting-prep,+weekly-digest
Multi-Account Setup
gws = personal (default at ~/.config/gws/). For additional accounts, use separate config dirs via aliases:
Then: gws for personal, gws-work for work.
Auth Environment Variables
| Variable | Purpose | |
|---|---|---|
GOOGLE_WORKSPACE_CLI_TOKEN | Pre-obtained access token | |
GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE | Path to credentials JSON | |
GOOGLE_WORKSPACE_CLI_CLIENT_ID | OAuth client ID | |
GOOGLE_WORKSPACE_CLI_CLIENT_SECRET | OAuth client secret | |
GOOGLE_WORKSPACE_CLI_CONFIG_DIR | Override config dir (default ~/.config/gws) |
Reference
- Repo: https://github.com/googleworkspace/cli
- Credentials stored encrypted in
~/.config/gws/(AES-256-GCM, key in OS keyring) - Works with both personal Gmail and Google Workspace accounts (admin APIs are Workspace-only)
- Exit codes: 0 success, 1 API error, 2 auth error, 3 validation, 4 discovery, 5 internal
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/google-workspace-cli/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/devchiniwala/heyclara/google-workspace-cli)