
Bootstrap Google Tools
Install/auth CLIs the sandbox lacks - `gws` (Drive, Gmail, Sheets, Calendar), `gcloud`...
Install
npx skills add google/adk-recipes --skill bootstrap-google-tools -g -a claude-code -y- Repository
- google/adk-recipes10.6k
- Category
- AI and agents
- Updated
- 4d ago
- License
- Apache-2.0
- Context cost
- Mediumabout 3,000 tokens
- Runs scripts
- No, instructions only
What it does
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 & 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 (
$HOMEincluded) persists. Install once, reuse next session. - Across a runtime-image upgrade the sandbox is re-provisioned and only
/workspaceis 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.

