by ehmo
CLI and MCP server for discovering and calling Google APIs from agents and scripts.
# Add to your Claude Code skills
git clone https://github.com/ehmo/gumgum is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ehmo. CLI and MCP server for discovering and calling Google APIs from agents and scripts. It has 150 GitHub stars.
gum's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/ehmo/gum" and add it to your Claude Code skills directory (see the Installation section above).
gum is primarily written in Go. It is open-source under ehmo on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh gum against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Most agents can write code. Giving them access to Google APIs is the risky part.
The hard part is not sending HTTP. The hard part is finding the right method, getting the right OAuth scope, trimming huge JSON responses, and stopping a bad prompt from turning into a real delete.
gum is a single binary that gives agents and humans a safer control surface for Google APIs. It runs as a terminal CLI and as an MCP stdio server. It carries an embedded Google API catalog, local auth helpers, compact output shaping, and confirmation gates for risky writes.
Use gum when you want an agent to inspect Gmail, Drive, Docs, Sheets, Calendar, Admin, or other Google services without pasting tokens into prompts or writing a custom tool for each endpoint.
Use it only with Google accounts, projects, and APIs you own or are authorized to operate.
gum v2.3.3 ships with 228 operations across 33 services. See the release notes and operations by service.
| Surface | Examples | Auth |
|---|---|---|
| Google Workspace and Google APIs | Gmail, Calendar, Drive, Docs, Sheets, Slides, Tasks, Admin, Vault, Chat, Meet, Classroom, Forms, Apps Script, People, Photos, YouTube, Search Console, Google Ads, Data Manager, Maps, Custom Search | OAuth, ADC, API key, service account, or Google Ads developer token |
| Bundled plugin services | Google Flights, Google Scholar, Google Patents, Google Trends, YouTube transcripts | Plugin-managed setup, with separate trust and sandbox checks |
The Google API path is for accounts and projects you control. The plugin path is for useful Google-adjacent services that do not fit the normal OAuth catalog model.
flowchart LR
User["Agent or CLI user"] --> Gum["gum"]
Gum --> Catalog["API catalog<br/>228 ops / 33 services"]
Gum --> Auth["Auth resolver<br/>OAuth / ADC / API key / service account"]
Gum --> Gates["Risk gates<br/>write + destructive confirmation"]
Gum --> Shape["Output shaping<br/>small MCP-friendly results"]
Catalog --> Google["Google APIs"]
Auth --> Google
Gates --> Google
Google --> Shape
Shape --> User
Gum --> Plugins["Bundled plugins<br/>Flights / Scholar / Patents / Trends"]
Plugins --> Shape
Without gum, an agent usually gets one of two bad choices:
gum keeps the first screen small. The MCP server starts with 29 tools: 9
meta-tools, 18 common convenience tools, and 2 skill helpers. Everything else is
found through gum.search_apis and loaded only when needed.
gum gain --fixture-replay runs the deterministic local replay for the current
checkout. Treat gain output as a regression signal tied to the binary, fixture
set, and format you ran, not as a billing promise or latency claim.
OAuth is Google's consent flow. A Google Cloud project owns an OAuth client, the consent screen, API enablement, quota, and verification state. gum asks you to use your own Desktop OAuth client because that keeps those controls in your project.
The flow is:
gum auth use-oauth-client.gum login --service <name> opens your browser and stores the resulting
refresh token in the OS keychain.Not every Google surface uses the same auth shape. Some operations use OAuth. Some use ADC, API keys, service accounts, or Google Ads developer tokens. The bundled plugin services, such as Flights and Scholar, use their own setup path because they are not normal Google API catalog endpoints.
Install the bundled skills and MCP server config in one step:
gum setup --dry-run
gum setup --target all --features skills,mcp --yes
gum agents install --target all --features skills,mcp --dry-run --format json
Use --target codex, claude, cursor, or gemini to install for one
agent. Use --scope project when you want repo-local MCP config. The default
writes skill files plus a stdio MCP entry that runs gum mcp --stdio.
Run the dry run first. It prints the exact files gum would write. Reruns are
safe: MCP config files are merged, and existing skill files are left alone
unless you pass --force.
| Need | Use |
|---|---|
| Explore Google API operations | gum search, gum describe |
| Call read/write/destructive APIs | gum read, gum write, gum destructive |
| Agent access over MCP | gum mcp --stdio |
| Guided setup and diagnostics | gum setup, gum doctor |
| Google auth | Your Google OAuth client, ADC, API key, or service account |
| Local state | Profiles under XDG config, data, and cache directories |
| Secrets for agent workflows | HASP for brokered local secret access |
| Install and release downloads | Release archives, install script, or Homebrew tap |
Public release assets are published on the
GitHub releases page. Download the
archive for your OS and CPU, then verify it with checksums.txt.
tar -xzf gum_<version>_<os>_<arch>.tar.gz
install -m 0755 gum ~/.local/bin/gum
gum --version
Install the latest release with:
curl -fsSL https://raw.githubusercontent.com/ehmo/gum/main/install.sh | bash
Pin a version with GUM_VERSION=vX.Y.Z.
Homebrew:
brew tap ehmo/tap https://github.com/ehmo/homebrew-tap
brew install ehmo/tap/gum
gum setup --dry-run
gum doctor
Use the qualified formula name. Plain brew install gum installs
Charmbracelet's gum, which is a different CLI.
The public repo also includes Formula/gum.rb for people who want to tap this
repo directly and build from source. The ehmo/tap/gum formula installs from
the release archives and is the normal Homebrew path.
The source tree uses a Go module under apps/gum, so this release does not
document a go install path. Use release archives for a stamped binary.
For Gmail, Calendar, Drive, Docs, Sheets, Slides, Tasks, and most Workspace APIs, gum needs a Google OAuth client from your Google Cloud project. Google uses that client to show the consent screen and issue your local refresh token.
Desktop app.printf '%s' "$GOOGLE_OAUTH_CLIENT_SECRET" \
| gum auth use-oauth-client --client-id "$GOOGLE_OAUTH_CLIENT_ID" --secret-stdin
Authorize a small Workspace scope set:
gum login --service gmail,calendar
gum doctor
gum read gmail.users.messages.list --args '{"userId":"me","maxResults":5}'
For exact API setup, see docs/auth-guides.
gum stores Google refresh tokens in your OS keychain. It also accepts OAuth client secrets through stdin. That covers gum's own auth path.
Your agent may still need other secrets: API tokens for tests, deploy keys, staging credentials, or service-specific config. Use HASP for that job. HASP is a local secret broker for coding agents. It stores secrets in an encrypted vault, gives a command only the values it is allowed to use, and keeps managed secret values out of the agent's prompt.
Install HASP:
brew tap gethasp/homebrew-tap
brew install hasp
hasp setup
Run gum work through a HASP grant when a task needs both Google API access and non-Google secrets:
hasp secret add
hasp run --project-root . \
--env GUM_GOOGLE_ADS_DEVELOPER_TOKEN=@GOOGLE_ADS_DEVELOPER_TOKEN \
--grant-project session \
--grant-secret session \
-- gum doctor
Use three rules:
--secret-stdin, not in chat..env files or prompts.See docs/hasp.md for the gum + HASP workflow and the safety checklist.
| Use case | Path | Setup |
|---|---|---|
| Gmail, Calendar, Drive, Docs, Sheets, Slides, Tasks, YouTube, People, Photos, Chat, Classroom, Meet, Apps Script, Admin, Vault, Search Console, Google Ads | BYO OAuth | gum auth use-oauth-client, then gum login --service <name> |
| Automation in Google Cloud | ADC | Set GOOGLE_APPLICATION_CREDENTIALS or use a gcloud ADC cache |
| Maps and Custom Search | API key | gum auth use-api-key --stdin |
| Service-account variants | Service account |