Install
openclaw skills install google-workspace-cliOperate Google Workspace from one CLI using dynamic API discovery, secure OAuth flows, and agent-ready automation patterns for Drive and Gmail.
openclaw skills install google-workspace-cliOn first activation, read setup.md and lock integration boundaries before running any write command.
User needs direct CLI control of Google Workspace APIs with reliable JSON output, schema introspection, multi-account auth, MCP tool exposure, and safe automation runbooks.
Memory lives in ~/google-workspace-cli/. Credential artifacts live in ~/.config/gws/ and are managed by gws.
~/google-workspace-cli/
|-- memory.md # Persistent operating context and boundaries
|-- command-log.md # Known-good command templates by task type
|-- change-control.md # Dry-run evidence and approval notes
|-- incidents.md # Failures, root causes, and prevention actions
`-- mcp-profiles.md # MCP service bundles and tool budget decisions
Use the smallest relevant file for the current task.
| Topic | File |
|---|---|
| Setup and activation behavior | setup.md |
| Memory schema and status values | memory-template.md |
| Deep repo and architecture findings | repo-analysis.md |
| Full command discovery map | command-index.md |
| High-signal command patterns | command-patterns.md |
| Auth models and account strategy | auth-playbook.md |
| MCP and agent integration | mcp-integration.md |
| Safe change management checklist | safety-checklist.md |
| Error diagnosis and fixes | troubleshooting.md |
gws, jqgcloud for gws auth setupNever ask users to paste refresh tokens, service account private keys, or OAuth client secrets into chat.
Local notes in ~/google-workspace-cli/ should store:
gws local config commonly stores:
~/.config/gws/~/.config/gws/cache/Run gws schema <service.resource.method> before first use of any method.
--jsonPick one mode before command generation:
--dry-runNever jump directly into apply mode for new workflows.
Do not write against ambiguous names.
change-control.md before apply modeAlways define auth source before execution:
gws auth login --accountIf scope or account ownership is unclear, pause and ask for clarification.
For large list operations:
--page-all only with bounded --page-limitjq or fileWhen data may include prompt-injection or unsafe text:
--sanitize <template> or env defaultsFor create/update/delete/send/share commands:
cliy as the canonical repository name -> use googleworkspace/cli--page-all without limits -> excessive API calls and noisy outputaccessNotConfigured failures| Endpoint | Data Sent | Purpose |
|---|---|---|
| https://www.googleapis.com/discovery/v1/apis | service/version identifiers | fetch API discovery documents |
| https://www.googleapis.com | request params, request bodies, and auth headers | execute Google Workspace API operations |
| https://accounts.google.com | OAuth browser consent metadata | user OAuth authorization flow |
| https://oauth2.googleapis.com | OAuth token exchange and refresh traffic | access token lifecycle |
| https://.googleapis.com/$discovery/rest | discovery fallback requests | resolve APIs not served by standard discovery path |
No other data should be sent externally unless the user explicitly configures additional systems.
Data that leaves your machine:
Data that stays local:
~/google-workspace-cli/~/.config/gws/This skill does NOT:
This skill depends on Google Workspace services and any explicitly configured integrations. Only install and run it if you trust those systems with your operational data.
Install with clawhub install <slug> if user confirms:
api - Build robust API request and error-handling patternsauth - Structure authentication boundaries and credential hygieneautomate - Turn repeated procedures into reliable automationsworkflow - Design multi-step operational workflows with clear ownershipproductivity - Improve execution cadence and output quality across tasksclawhub star google-workspace-cliclawhub sync