TopRank Skills

Home / Claw Skills / Autres / Google Services (gog CLI)
Official OpenClaw rules 15%

Google Services (gog CLI)

OAuth token refresh management for Google APIs via gog CLI.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Google Services (gog CLI) 技能。 若已安装,则直接安装 Google Services (gog CLI) 技能。

Overview

Skill Key
herry3zz/google-gog
Author
herry3zz
Source Repo
openclaw/skills
Version
-
Source Path
skills/herry3zz/google-gog
Latest Commit SHA
ff43dbcc0fcf0786e90e9ca02f691928942eb472

Extracted Content

SKILL.md excerpt

# Google Services (gog CLI)

## Configuration

- **Account:** `xtyherry@gmail.com`
- **Credentials:** `~/.openclaw/credentials/client_secret.json`
- **Token Storage:** OS Keyring (auto-encrypted)

## Refresh Token Lifecycle

Tokens auto-refresh transparently on API calls. No action needed.

**If token invalid:**
```bash
gog auth add xtyherry@gmail.com --services gmail,drive,calendar --manual --force-consent
```

**For automation (cron/headless):**
```bash
export GOG_KEYRING_BACKEND=file
export GOG_KEYRING_PASSWORD=<password>
gog auth list --check  # Check token validity and expiration
```

## Quick Commands

```bash
# Gmail: send, search
gog gmail send user@example.com --subject "Hi" --body "Message"
gog gmail search "newer_than:7d"

# Drive: list, upload, download
gog drive ls /
gog drive upload file.txt /
gog drive download /file.txt ./output.txt

# Check token health
gog auth list --check
```

Related Claw Skills