spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

Merge pull request #72363 from anthropics/royarsan/gateway-gcp-agent-platformBrowse files
Gateway GCP example: Agent Platform rebrand and README cleanup
Roy Arsan authored on Jun 29, 2026 · GitHub committed on Jun 29, 2026 parents 27e561b + f605f0b · commit 3c3558207e70
5 changed files+15 -15compared with 27e561b
Mexamples/gateway/gcp/README.md
Mexamples/gateway/gcp/gateway.yaml.example
Mexamples/gateway/gcp/setup.sh
Mexamples/gateway/gcp/terraform/main.tf
Mexamples/gateway/gcp/terraform/variables.tf
@@ -1,18 +1,17 @@
11 # Claude Gateway on Google Cloud
22
3-Reference deployment artifacts for running Claude Gateway on GCP with Vertex AI
4-as the upstream: Cloud Run or GKE, Cloud SQL for PostgreSQL, Secret Manager, and
5-service-account auth to Vertex AI.
3+Reference deployment artifacts for running Claude Gateway on GCP with Agent
4+Platform (formerly Vertex AI) as the upstream: Cloud Run or GKE, Cloud SQL for
5+PostgreSQL, Secret Manager, and service-account auth to Agent Platform.
66
77 These files are provided as a working example rather than a supported production
88 deployment. Adapt them to your own environment.
99
1010 - **Walkthrough**: https://code.claude.com/docs/en/claude-apps-gateway-on-gcp
11-- **Public mirror**: https://github.com/anthropics/claude-code/tree/main/examples/gateway/gcp
1211
1312 | File | Purpose |
1413 |---|---|
1514 | `setup.sh` | Scripts the walkthrough end to end via `gcloud` |
1615 | `Dockerfile` | Runtime image for the `claude gateway` binary |
17-| `gateway.yaml.example` | Gateway config template, GCP-shaped (Vertex upstream, Google Workspace IdP) |
16+| `gateway.yaml.example` | Gateway config template, GCP-shaped (Agent Platform upstream, Google Workspace IdP) |
1817 | `terraform/` | Provisions the full architecture (two-pass apply — see `terraform/README.md`) |
@@ -1,7 +1,8 @@
11 # gateway.yaml.example — Claude Gateway config template, GCP-shaped (walkthrough §6).
22 #
3-# Google Workspace IdP + Vertex upstream, following the walkthrough at
4-# https://code.claude.com/docs/en/claude-apps-gateway-on-gcp. The active sections
3+# Google Workspace IdP + Agent Platform (formerly Vertex AI) upstream, following
4+# the walkthrough at https://code.claude.com/docs/en/claude-apps-gateway-on-gcp.
5+# The active sections
56 # below are a strict subset of the full configuration reference at
67 # https://code.claude.com/docs/en/claude-apps-gateway; optional keys are included
78 # commented-out.
@@ -88,11 +89,11 @@
8889 store:
8990 postgres_url: ${GATEWAY_POSTGRES_URL} # private-IP Cloud SQL; built with ?sslmode=require by setup.sh
9091
91-# ── Upstreams — Vertex AI ────────────────────────────────────────────────────
92+# ── Upstreams — Agent Platform ───────────────────────────────────────────────
9293 upstreams:
9394 - provider: vertex
9495 region: us-east5 # a region where the Claude models you need are published in Model Garden
95- project_id: REPLACE_ME # your GCP project ID for Vertex access
96+ project_id: REPLACE_ME # your GCP project ID for Agent Platform access
9697 auth: {} # ADC via Cloud Run SA / GKE Workload Identity (preferred — no static keys)
9798 # base_url: https://us-east5-aiplatform.p.googleapis.com # Private Service Connect endpoint
9899 # Add more upstreams for failover (tried top→bottom on 5xx/timeout/501): a
@@ -29,7 +29,7 @@
2929
3030 # ---- configuration (env-overridable) ----------------------------------------
3131 PROJECT_ID="${PROJECT_ID:-$(gcloud config get-value project 2>/dev/null)}"
32-REGION="${REGION:-${CLOUDSDK_COMPUTE_REGION:-us-east5}}" # guide §1 uses us-east5 (Vertex model region)
32+REGION="${REGION:-${CLOUDSDK_COMPUTE_REGION:-us-east5}}" # guide §1 uses us-east5 (Agent Platform model region)
3333
3434 SA_NAME="${SA_NAME:-claude-gateway}" # §2 service account
3535 SA_EMAIL="${SA_NAME}@${PROJECT_ID}.iam.gserviceaccount.com"
@@ -157,7 +157,7 @@
157157 # and GKE.
158158 gcloud projects add-iam-policy-binding "${PROJECT_ID}" \
159159 --member="serviceAccount:${SA_EMAIL}" \
160- --role="roles/aiplatform.user" --condition=None >/dev/null # Vertex inference (§2)
160+ --role="roles/aiplatform.user" --condition=None >/dev/null # Agent Platform inference (§2)
161161
162162 # ---- 3 Build & push image to Artifact Registry ----------------------------
163163 log "Ensuring Artifact Registry repo and image (§3)"
@@ -390,7 +390,7 @@
390390 # Direct VPC egress (--network/--subnet/--vpc-egress) puts the service on the
391391 # VPC so it reaches the Cloud SQL PRIVATE IP directly — matching the private-IP
392392 # connection string in the postgres-url secret. private-ranges-only keeps public
393-# egress (Vertex, accounts.google.com) off the VPC, so no Cloud NAT is needed.
393+# egress (Agent Platform, accounts.google.com) off the VPC, so no Cloud NAT is needed.
394394 # We deliberately do NOT use --add-cloudsql-instances (that's the Auth Proxy /
395395 # socket path, which would need a different connection string).
396396 #
@@ -50,7 +50,7 @@
5050 # Run and GKE.
5151 resource "google_project_iam_member" "vertex" {
5252 project = var.project_id
53- role = "roles/aiplatform.user" # Vertex inference
53+ role = "roles/aiplatform.user" # Agent Platform inference
5454 member = "serviceAccount:${google_service_account.gateway.email}"
5555 }
5656
@@ -310,7 +310,7 @@
310310 network = google_compute_network.vpc.id
311311 subnetwork = google_compute_subnetwork.subnet.id
312312 }
313- egress = "PRIVATE_RANGES_ONLY" # public egress (Vertex, accounts.google.com) bypasses the VPC -> no Cloud NAT needed
313+ egress = "PRIVATE_RANGES_ONLY" # public egress (Agent Platform, accounts.google.com) bypasses the VPC -> no Cloud NAT needed
314314 }
315315
316316 containers {
@@ -6,7 +6,7 @@
66 }
77
88 variable "region" {
9- description = "Infra region for Artifact Registry, Cloud SQL, subnet, and Cloud Run. (Vertex region is set separately inside gateway.yaml.)"
9+ description = "Infra region for Artifact Registry, Cloud SQL, subnet, and Cloud Run. (Agent Platform region is set separately inside gateway.yaml.)"
1010 type = string
1111 default = "us-east5"
1212 }