spawn/sh/gcp
A 1097f055c3
fix(security): add --proto '=https' to all curl executable downloads (#2160)
42 curl calls downloading JS bundles, CLI binaries, and gh CLI tarballs
were missing --proto '=https', allowing protocol downgrade attacks on
hostile networks. PR #2138 fixed bun installer calls; this closes the
remaining gap for executable downloads.

Fixes applied:
- sh/{sprite,aws,gcp,hetzner,daytona,local}/{claude,codex,openclaw,opencode,kilocode,hermes,zeroclaw}.sh (42 files)
- sh/cli/install.sh (cli.js download)
- sh/shared/github-auth.sh (keyring, API, tarball downloads)

Agent: security-auditor

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-03 23:38:03 -05:00
..
claude.sh fix(security): add --proto '=https' to all curl executable downloads (#2160) 2026-03-03 23:38:03 -05:00
codex.sh fix(security): add --proto '=https' to all curl executable downloads (#2160) 2026-03-03 23:38:03 -05:00
hermes.sh fix(security): add --proto '=https' to all curl executable downloads (#2160) 2026-03-03 23:38:03 -05:00
kilocode.sh fix(security): add --proto '=https' to all curl executable downloads (#2160) 2026-03-03 23:38:03 -05:00
openclaw.sh fix(security): add --proto '=https' to all curl executable downloads (#2160) 2026-03-03 23:38:03 -05:00
opencode.sh fix(security): add --proto '=https' to all curl executable downloads (#2160) 2026-03-03 23:38:03 -05:00
README.md feat: add hermes agent to 4 clouds, bump install wait to 600s (#2084) 2026-03-01 19:31:50 -05:00
zeroclaw.sh fix(security): add --proto '=https' to all curl executable downloads (#2160) 2026-03-03 23:38:03 -05:00

GCP Compute Engine

Google Cloud Compute Engine instances via gcloud CLI. GCP Compute Engine

Uses current username for SSH. Requires gcloud CLI installed and configured.

Agents

Claude Code

bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcp/claude.sh)

OpenClaw

bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcp/openclaw.sh)

ZeroClaw

bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcp/zeroclaw.sh)

Codex CLI

bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcp/codex.sh)

OpenCode

bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcp/opencode.sh)

Kilo Code

bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcp/kilocode.sh)

Hermes

bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcp/hermes.sh)

Non-Interactive Mode

GCP_INSTANCE_NAME=dev-mk1 \
OPENROUTER_API_KEY=sk-or-v1-xxxxx \
  bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcp/claude.sh)

Custom VPC / Subnet

If your GCP project's default VPC uses custom subnet mode (common in enterprise or org-managed projects), set these env vars to override the default network/subnet:

Variable Default Description
GCP_NETWORK default VPC network name
GCP_SUBNET default Subnet name

Example:

GCP_NETWORK=my-vpc GCP_SUBNET=my-subnet \
GCP_INSTANCE_NAME=dev-mk1 \
OPENROUTER_API_KEY=sk-or-v1-xxxxx \
  bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcp/claude.sh)