gw-setup

gw-setup is a command for Claude Code from Elnora-AI/elnora-google-workspace. It costs 39 tokens per session (346 once invoked), scanned A, original, Apache-2.0.

A first-run setup command for a Google Workspace plugin, which connects services such as Gmail and Calendar. It creates the local environment, guides Google Cloud OAuth setup, and authenticates the account.

In plain words
What is it for?
Installing dependencies, setting up a Google Cloud OAuth client, signing in, checking authentication, and performing a first Gmail or Calendar read.
Why use it?
It removes much of the manual work needed to get the plugin from installation to its first verified Google Workspace result.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the google-workspace plugin — 11 skills, 4 commands, 1 agent shipped together

Good fit Installing dependencies, setting up a Google Cloud OAuth client, signing in, checking authentication, and performing a first Gmail or Calendar read.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/elnora-ai/elnora-google-workspace/gw-setup
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.

Clone the repo
git clone --depth 1 https://github.com/Elnora-AI/elnora-google-workspace

Made for: Claude Code.

Or install google-workspace, the plugin that ships this one along with the rest of its 11 skills, 4 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gw-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/elnora-ai/elnora-google-workspace/gw-setup.svg)](https://agentmods.dev/commands/elnora-ai/elnora-google-workspace/gw-setup)
Your own site
<a href="https://agentmods.dev/commands/elnora-ai/elnora-google-workspace/gw-setup"><img src="https://agentmods.dev/badge/commands/elnora-ai/elnora-google-workspace/gw-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 346 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.1 $0.00039 $0.00346
Opus 5 $0.00019 $0.00173
Sonnet 5 $0.00008 $0.00069
Haiku 4.5 $0.00004 $0.00035

Measured 7d ago against content hash 02725aab301e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

gw-setup 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 7d ago.

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.

commands/gw-setup.md · 29 lines

What it actually says

gw-setup

Run the gw-setup skill to bootstrap this plugin end to end. Do everything you can for the user and only stop where a human must click something in Google Cloud.

Load skills/gw-setup/SKILL.md and follow it in order:

  1. Environment — detect python3/uv, create the plugin-local .venv, install deps, generate the gw launcher, and verify gw --version.
  2. Google Cloud OAuth client — the hard part. Offer to drive a browser (via the Chrome DevTools MCP) through creating a project, enabling the 7 APIs, configuring the consent screen, and creating a Desktop OAuth client; save the client JSON to ~/.config/gw/client_secret.json. If the user declines automation, print the exact URLs and click-by-click steps from gw auth setup.
  3. Authenticategw auth login (localhost callback).
  4. Verifygw auth status, then a real read (gw calendar calendars or gw gmail labels).
  5. Optional — suggest installing Elnora-AI/knowledge-vault to enable the CRM / meeting-prep / outreach connector.

Report what succeeded and the one or two manual clicks the user still owes you.

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. 7d ago First seen · 29 lines · 39 tokens per session scan A 02725aab301e

Subscribe to this mod's changes

gw-setup is a command published in the GitHub repository Elnora-AI/elnora-google-workspace (2 stars, last pushed today), licensed Apache-2.0. It adds 39 tokens to every session and 346 once invoked, about $0.0002 per session on Opus 5. 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-08-31.