gog-backup-gmail-push

Export Gmail into encrypted backup shards.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/openclaw/gogcli/gog-backup-gmail-push
Clone the repo
git clone --depth 1 https://github.com/openclaw/gogcli
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,147 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01147
Opus 5 $0.00000 $0.00574
Sonnet 5 $0.00000 $0.00229
Haiku 4.5 $0.00000 $0.00115

Measured today against content hash dc4f0411dfa8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gog-backup-gmail-push scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/gog-backup-gmail-push.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

gog backup gmail push

Generated from gog schema --json. Do not edit this page by hand; run make docs-commands.

Export Gmail into encrypted backup shards

Usage

gog backup gmail push [flags]

Parent

Flags

Flag Type Default Help
--access-token string Use provided access token directly (bypasses stored refresh tokens; token expires in ~1h)
-a--account--acct string Account email, alias, or auto for authenticated Google API commands
--checkpoint-interval time.Duration 30m Max time between checkpoint pushes during fetch; 0 disables time-triggered checkpoints
--checkpoint-rows int 10000 Gmail messages per encrypted checkpoint chunk; 0 disables row-triggered checkpoints
--checkpoints bool true Commit and push incomplete encrypted checkpoints during long cached fetches
--client string OAuth client name (selects stored credentials + token bucket)
--color string auto Color output: auto|always|never
--config string Backup config path
--disable-commands string Comma-separated list of disabled commands; dot paths allowed
-n--dry-run--dryrun--noop--preview bool Do not make changes; print intended actions and exit successfully
--enable-commands string Comma-separated list of enabled command prefixes; dot paths allowed (restricts CLI)
--enable-commands-exact string Comma-separated list of exact enabled commands; dot paths allowed and parent commands do not enable children
-y--force--assume-yes--yes bool Skip confirmations for destructive commands
--gmail-cache bool true Cache fetched raw messages locally so interrupted full backups can resume
--gmail-no-send bool false Block Gmail send operations (agent safety)
--gmail-refresh-cache bool Refetch messages even when a local backup cache entry exists
-h--help kong.helpFlag Show context-sensitive help.
--home string Override gogcli config/data/state/cache root (equivalent to GOG_HOME)
--identity string Local age identity path
--include-spam-trash bool true Include spam and trash
-j--json--machine bool false Output JSON to stdout (best for scripting)
--max--limit int64 0 Max Gmail messages to export; 0 means all
--no-input--non-interactive--noninteractive bool Never prompt; fail instead (useful for CI)
--no-push bool Commit locally but do not push to the remote
-p--plain--tsv bool false Output stable, parseable text to stdout (TSV; no colors)
--query string Gmail query for bounded/test backups
--readonly bool false Block mutating API requests at runtime; auth add also requests read-only OAuth scopes
--recipient []string Public age recipient (repeatable)
--remote string Backup Git remote URL
--repo string Local backup repository path
--results-only bool In JSON mode, emit only the primary result (drops envelope fields like nextPageToken)
--select--pick--project string In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands.
--shard-max-rows int 1000 Max messages per encrypted shard
-v--verbose bool Enable verbose logging
--version kong.VersionFlag Print version and exit
--wrap-untrusted bool false In JSON/raw output, wrap fetched text fields in external untrusted-content markers

Read the full file on GitHub · 62 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 62 lines · 0 tokens per session scan A dc4f0411dfa8

Subscribe to this mod's changes

gog-backup-gmail-push is a command published in the GitHub repository openclaw/gogcli (8,363 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,147 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other commands, from other repositories

setup-gogcli.en

Command "setup-gogcli.en" from minicoohei/ai-agent-camp, covering gogcli (google workspace cli) setup, step 0: check setup progress, what you'll do in this session, readiness check and step 1: install gogcli.

minicoohei/ai-agent-camp · 2 tokens

setup-gogcli.es

Command "setup-gogcli.es" from minicoohei/ai-agent-camp, covering configuración de gogcli (google workspace cli), step 0: verificar el progreso de configuración, lo que hará en esta sesión, verificación de preparación and step 1: instalar gogcli.

minicoohei/ai-agent-camp · 2 tokens

setup-gogcli

Command "setup-gogcli" from minicoohei/ai-agent-camp, covering gogcli (google workspace cli) セットアップ, step 0: セットアップ進捗の確認, このセッションでやること, 準備チェック and step 1: gogcli のインストール.

minicoohei/ai-agent-camp · 2 tokens

draft-email

Draft a Gmail email or reply in your voice with full CRM/knowledge-base context loaded and every claim verified. Always creates a draft — never sends.

Elnora-AI/elnora-google-workspace · 33 tokens

setup-clasp

Command "setup-clasp" from minicoohei/ai-agent-camp, covering google apps script cli (clasp) セットアップ, step 0: セットアップ進捗の確認, このセッションでやること, 準備チェック and step 1: node.js の確認.

minicoohei/ai-agent-camp · 2 tokens

gather-knowledge

Analyze codebase, dependencies, patterns, and constraints to build comprehensive technical context for planning or implementation.

windagency/valora.ai · 24 tokens