spawn/sh/gcp
A c1363b138c
feat(gcp): default boot disk to 40 GB, configurable via GCP_DISK_SIZE (#2867)
GCP's default 10 GB boot disk is insufficient for coding agents — node_modules,
apt packages, and build caches easily exceed it. Default to 40 GB and allow
override via GCP_DISK_SIZE env var.

Closes #2866

Co-authored-by: Claude <claude@anthropic.com>
2026-03-22 11:21:05 +07:00
..
claude.sh fix: pin bun install to v1.3.9 in all agent scripts (#2345) 2026-03-08 12:47:18 -04:00
codex.sh fix: pin bun install to v1.3.9 in all agent scripts (#2345) 2026-03-08 12:47:18 -04:00
hermes.sh fix: pin bun install to v1.3.9 in all agent scripts (#2345) 2026-03-08 12:47:18 -04:00
junie.sh fix: pin bun install to v1.3.9 in all agent scripts (#2345) 2026-03-08 12:47:18 -04:00
kilocode.sh fix: pin bun install to v1.3.9 in all agent scripts (#2345) 2026-03-08 12:47:18 -04:00
openclaw.sh fix: pin bun install to v1.3.9 in all agent scripts (#2345) 2026-03-08 12:47:18 -04:00
opencode.sh fix: pin bun install to v1.3.9 in all agent scripts (#2345) 2026-03-08 12:47:18 -04:00
README.md feat(gcp): default boot disk to 40 GB, configurable via GCP_DISK_SIZE (#2867) 2026-03-22 11:21:05 +07:00
zeroclaw.sh fix: pin bun install to v1.3.9 in all agent scripts (#2345) 2026-03-08 12:47:18 -04: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)

Junie

bash <(curl -fsSL https://openrouter.ai/labs/spawn/gcp/junie.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 Disk Size

By default, instances are created with a 40 GB boot disk. Override with GCP_DISK_SIZE (in GB):

Variable Default Description
GCP_DISK_SIZE 40 Boot disk size in GB
GCP_DISK_SIZE=80 \
  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)