google/adk-recipes/bootstrap-google-tools
Claude Code and agent skill by google/adk-recipes
- vendor
Checking that the SKILL.md file is still in the repository.
Install/auth CLIs the sandbox lacks - `gws` (Drive, Gmail, Sheets, Calendar), `gcloud`, `agents-cli`, `mcp-cli` (MCP servers). Use on "command not found" or before GCP/Workspace/MCP work.
Install
npx vskill@latest install google/adk-recipes/bootstrap-google-toolsSKILL.md
The same SKILL.md was published earlier as google/adk-recipes/bootstrap-google-tools.
Install & authenticate CLIs in the sandbox
The sandbox ships lean — Node, gws, gcloud, agents-cli, and mcp-cli are not prebaked. This skill is the verified install + auth recipe for each. The tools are independent: install only the one the task needs. This is a menu, not a sequence — there's no 1-2-3 to run in order.
Persistence model — binaries in ~/.local, credentials in /workspace
Two different durability rules, because the sandbox has two boundaries:
- Across normal sessions the sandbox reattaches, so everything (
$HOME
included) persists. Install once, reuse next session.
- Across a runtime-image upgrade the sandbox is re-provisioned and **only
/workspace is migrated — and that migration is a zip that drops symlinks and strips executable bits** (and is best-effort). So it can't carry installed CLIs at all; it's only safe for plain data files.
That dictates the split:
| What | Where | On upgrade | |
|---|---|---|---|
| CLI binaries | ~/.local (bin dir ~/.local/bin is on PATH) | gone — reinstalled (cheap, automatic via the command -v check) | |
| Credentials / config | /workspace/lha/config/ (gws/, gcloud/, mcp_servers.json) | migrated — logins survive |
So: install binaries the normal way, but point each tool's config dir at /workspace/lha/config (via its own env var, shown per tool) so the expensive part — the OAuth client + tokens — survives upgrades. Don't put binaries on /workspace: they can't migrate anyway, and bloating the migration zip risks the credentials that can. ~/.local/bin is already on PATH (runtime image), and the bash shell is non-login (no ~/.profile), so that image PATH is what makes installs resolve.
Pick what you need
| Task | Tool | Needs first | |
|---|---|---|---|
| Google Workspace — Drive / Gmail / Sheets / Calendar / Chat | gws | Node | |
Raw GCP, or creating a gws OAuth client by hand | gcloud | — | |
| Call another agent deployed remotely (A2A / ADK) | agents-cli | — (uv is present) | |
| Use tools exposed by an MCP server | mcp-cli | — (standalone binary) |
Each tool's usage lives in its own skill (google-workspace, mcp-cli's shipped skill, the google-agents-cli-* set). This skill only gets a tool installed and authed, then hands off.
Before installing: check first
Within a session (and across sessions without an upgrade) a tool may already be present — check before installing, and install only what's missing:
Node + npm (prerequisite for `gws`)
The sandbox is Debian x86_64 with curl and tar but no `xz`. So you must download the .tar.gz build, not the .tar.xz. Pick a current LTS version:
Replace v22.x.x with the real current LTS. The ln -sf … ~/.local/bin/ step puts node/npm/npx on PATH. Then verify:
- Use
.tar.gz—.tar.xzwill fail to extract (xzis absent).
gws — Google Workspace CLI
Install the npm global into ~/.local (needs Node on PATH — see above) with --prefix, so the binary lands at ~/.local/bin/gws:
Expect 0.22.x. gws self-identifies as "not an officially supported Google product."
Keep `gws` credentials on `/workspace`. By default gws reads/writes ~/.config/gws — which is not migrated on a runtime upgrade. Point it at /workspace and use the file keyring (no OS keyring headless) on every `gws` command so the OAuth client, token, and encryption key survive:
First, always: probe the pre-injected token. When the user has used "Connect Workspace" in the web UI, the GOOGLE_WORKSPACE_CLI_TOKEN secret is auto-injected into every bash command — gws's highest-priority auth source. Don't inspect the environment or ask; just run a cheap read against the surface you need and see if it works:
If it returns data, you're done — no OAuth client, no `gws auth login`, no loopback bridge. It's a ~1h token (no refresh); the user re-clicks Connect when it lapses. The token only carries the surfaces + access level (read-only by default) the user picked — a gws call outside those scopes fails (403/scope error), which means "reconnect with more surfaces or read-write," not that the token is missing. Don't trust `gws auth status` — with the env token it reports auth_method: none / credential_source: token_env_var even while reads succeed, so a real read is the only reliable check. Only if the probe 401s (truly no token) do you fall through to the OAuth-client options below.
Otherwise, point `gws` at an OAuth client — gws ships none of its own. Pick one:
- Drop a
client_secret.jsoninto/workspace/lha/config/gws/(must be a
Desktop app OAuth client — see the google-workspace skill).
- Set
GOOGLE_WORKSPACE_CLI_CLIENT_ID+GOOGLE_WORKSPACE_CLI_CLIENT_SECRET. - Service account:
GOOGLE_APPLICATION_CREDENTIALS=/workspace/lha/config/gws/key.json
— for fully unattended automation (no interactive login).
gws auth setup— provisions a project + OAuth client, but is a full-screen
TUI that can't be driven headless; prefer option 1 in the sandbox.
gws auth login is loopback-browser only, but does complete headless — you bridge the OAuth redirect by hand (start it backgrounded, relay the auth URL to the user, then curl their pasted localhost:<port>/?code=... redirect back to the waiting listener). The `google-workspace` skill has the full auth recipe (Desktop-app client type, Internal audience, the loopback bridge) plus command shapes (Drive, Docs, Sheets, Gmail, Calendar, Chat). For fully unattended jobs with no user present to paste the redirect, use the service-account option.
Under a routine, the Google/gcloud token is present only if you declared its secret name (`GOOGLE_WORKSPACE_CLI_TOKEN` / `CLOUDSDK_AUTH_ACCESS_TOKEN`) in the routine's `secrets:`.
Once `gws` is set up, strongly suggest installing Google's official `gws` skills. They live in the googleworkspace/cli repo and go deeper than the builtin google-workspace skill — one per surface. Install the ones the user needs (gws-shared is the common base the others build on):
The Skills CLI stages each under .agents/skills/<skill>/, which Horizon auto-discovers — just load_skill(action="reload"), no move needed (see the find-skills skill for details). (npx --yes skills find gws lists the current set with install counts.)
gcloud
Install under ~/.local (slim — don't add extra components) and symlink the entrypoints onto PATH:
No durable gcloud credentials are kept in the sandbox. GCP access is via the short-lived token-as-secret path below, which persists nothing — no refresh token, no ADC file, no key. (You may set CLOUDSDK_CONFIG=/workspace/lha/config/gcloud as a scratch config dir, but there is no login state to persist across upgrades.)
Verify:
Security: GCP creds is a high-trust combination
Logging in deposits credentials the agent can use, in a sandbox with open outbound internet egress. An injected agent could read the user's GCP data, bq extract / gsutil cp it to a foreign bucket, mint a service-account key, or grant external IAM — all over *.googleapis.com. Layer A (exfil_guard) still gates credential/secret exfil and uploads to non-allowlisted hosts, and still blocks the GCP metadata server; it has no GCP-action awareness (it can't see what a gcloud call does). The real control is credential minimization:
- Use the short-lived token-as-secret path only (below). We keep **no durable
credential** (refresh token / ADC file / SA key) in the sandbox, so a single injection can't become standing access that outlives the ~1 h token.
- Mint the token with the narrowest scopes the task needs;
cloud-platform
(everything the user's IAM allows) is a broad, high-trust default — not a free one.
- Confirm the user actually wants the agent acting as them on GCP before adding the
token.
Authenticate — short-lived access token as a secret (the only GCP path)
The lowest-trust, least-friction path, and the only one we use (works for corp / org-restricted accounts too): the user mints a short-lived access token on their own machine (already gcloud-authed there, so the org's device/CAA policy is satisfied) and hands it to the agent as a secret. Nothing durable lands in the sandbox, and the token self-expires in ~1 hour.
- The user runs locally, in their own terminal (authed as the right account):
`` gcloud auth print-access-token ``
- The user saves it as a secret named `CLOUDSDK_AUTH_ACCESS_TOKEN` in the
/lha/secrets UI — never pasted into chat (it's a live credential).
- Secrets are auto-injected as env vars into every `bash` command, and
gcloud reads CLOUDSDK_AUTH_ACCESS_TOKEN from the environment — so the agent just runs commands, no login / ADC / OAuth client at all: `` bash(command="export CLOUDSDK_CONFIG=/workspace/lha/config/gcloud && gcloud projects list") ` gsutil and bq read the same env token. **Don't name the token in a curl/wget** (-H "Authorization: Bearer $CLOUDSDK_AUTH_ACCESS_TOKEN"): the exfil guard hard-blocks a network command that references a secret env var (by design — it stops the agent exfiltrating the token). Use the gcloud-family CLIs, which pick it up from the environment without naming it; a raw REST call that must carry the token needs a /grant`.
Why this is the default:
- Short-lived (~1 h): a single injection can't become standing access; on
expiry the user re-mints and updates the secret.
- Nothing durable in the sandbox — no refresh token on
/workspaceto reuse. - Corp-clean: consent already happened through the user's org-approved local
gcloud — no Account restricted, no custom OAuth client, no remote-bootstrap.
- It still acts as the user for that window (short lifetime bounds misuse, doesn't
eliminate it) and carries the user's login scopes. For a long unattended job the token expires (~1 h) and must be re-minted and the secret updated — by design we keep no durable credential in the sandbox to fall back on.
agents-cli — call a remote agent (A2A / ADK)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 30 Sep 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcore/python/long-horizon-harness/horizon/builtin_skills/bootstrap-google-tools/SKILL.md
Popularity
- Repository stars
- 10,404
- Repository forks
- 2,884
- 7-day trend score
- 46
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/google/adk-recipes/bootstrap-google-tools)