A specialized workflow for establishing secure, headless Gmail API authentication using the gog CLI and Google Cloud credentials.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install gmail-oauth
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install gmail-oauth using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This skill provides a comprehensive technical framework for managing Gmail OAuth flows in environments where traditional browser-based redirection is restricted. By utilizing the gog CLI, it enables developers to authorize applications on headless servers or remote environments while maintaining high security standards. This implementation is a core part of the Openclaw Skills library, focusing on bridging the gap between local development and remote server automation.
The skill guides users through the intricate process of configuring Google Cloud projects, managing OAuth consent screens, and handling token persistence. By following this methodology, users can ensure their Openclaw Skills integrations remain functional with permanent refresh tokens, avoiding the common pitfalls of the 7-day expiry limit found in testing-mode applications.
First, install the gog CLI tool:
brew install steipete/tap/gogcli
Next, configure your credentials and initialize the keyring:
gog auth credentials /path/to/client_secret.json
gog auth keyring file
export GOG_KEYRING_PASSWORD="your-password"
Finally, execute the authentication flow using the provided Openclaw Skills helper scripts:
# Generate the URL
scripts/gmail-auth.sh --url
# Exchange the code after browser approval
scripts/gmail-auth.sh --exchange YOUR_CODE YOUR_EMAIL
| Data Component | Storage Type | Purpose |
|---|---|---|
| client_secret.json | Local File | Contains Google Cloud OAuth client ID and secret |
| GOG_KEYRING_PASSWORD | Environment Variable | Unlocks the encrypted token storage |
| Keyring File | Binary File | Stores persistent OAuth refresh and access tokens |
| scripts/gmail-auth.sh | Bash Script | Orchestrates the URL generation and code exchange |
| Scopes | Configuration | Defines API access levels (e.g., gmail.modify) |
Loading
A decentralized protocol integration for managing contract work, bounties, and escrow services natively on the Nostr network.

A production-grade testing skill for AI agents to manage Cypress E2E and component tests with advanced debugging and CI support.

A secure sharing skill that automates uploading text, code, or files to PrivateBin instances with advanced access controls.

An autonomous AI trading agent for Axiom that executes snipes, copy trades, and safety audits for Solana memecoins using semantic browser automation.

A powerful integration that enables AI agents to interact with Figma files, export assets, and retrieve design feedback programmatically.

A high-performance utility for managing Notion databases and pages using the 2025-09-03 API standard.








































