Learning resourcesReviewed · Anthropic

Deploy Claude apps gateway on Google Cloud

This Google Cloud deployment guide is for teams operating Claude apps gateway, but its examples require adaptation and are not supported production deployments. It covers Cloud Run or GKE, private PostgreSQL storage, organization sign-in and service-account access to Google Cloud's Agent Platform.

Researched 15 Nov 2026

In short.

This Google Cloud deployment guide is for infrastructure teams connecting developers to Claude apps gateway, but the deployment and reference assets are unsupported examples. It explains two hosting paths with private database access, organization sign-in, secret storage and service-account model authentication. Completing the deployment also requires private hostname infrastructure and developer-device configuration. Costs, performance and production readiness are not established, and no commands or deployments were executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete selected page at [https://code.claude.com/docs/en/claude-apps-gateway-on-gcp.md]: prerequisites, provisioning, Cloud Run and GKE paths, developer settings, reference-asset descriptions, troubleshooting and the unsupported-example notices. Linked pages, repository contents, binaries and images are excluded. No code or infrastructure was executed, and deployment success, sign-in, performance, security behavior, failover and production readiness remain unverified.

The overview

Identity

Deploy Claude apps gateway on Google Cloud is a worked infrastructure guide in the Claude Code documentation. It describes hosting the gateway on Cloud Run or Google Kubernetes Engine, with Google Cloud's Agent Platform supplying the models and Google Workspace serving as the example identity provider. Source: [https://code.claude.com/docs/en/claude-apps-gateway-on-gcp.md].

The resource includes provisioning commands, gateway configuration, deployment-specific guidance and troubleshooting. It also describes linked shell, Terraform and container assets, whose contents are outside the supplied evidence.

Assessment

The guide is useful for understanding how model access, user authentication, session storage and private networking fit together. Its concrete settings expose deployment dependencies that a high-level architecture diagram would miss, including Cloud Run's invoker check, private DNS requirements and streaming timeouts.

The opening notice limits the walkthrough to a customer-managed example, and the reference assets carry a similar caveat. Those limits apply even though the Cloud Run section describes a production topology. No deployment results, performance measurements or operational reliability evidence are supplied; production suitability remains unverified.

Users

The practical audience is platform engineers, cloud administrators and teams responsible for developer access to Claude. Completing the walkthrough spans cloud permissions, network routing, OAuth configuration, database administration and device management. Beginners can learn the architecture, but implementing it requires access to those administrative capabilities.

Developer onboarding is part of the deployment. The documented route distributes managed settings containing forceLoginMethod, forceLoginGatewayUrl and parentSettingsBehavior set to merge through device management. The page says developers cannot manually choose a gateway in the login picker.

Capabilities

The page documents two gateway hosting options, private Cloud SQL storage for session state, Secret Manager integration and model requests authenticated with a runtime service account. It also covers organization sign-in through OpenID Connect, or OIDC, a standard for authenticating users through an identity provider.

Access-related examples include allowed email domains and trusted proxy ranges for identifying client IP addresses. Google Workspace group-based policies require additional Admin SDK configuration because Google's identity tokens do not contain a groups claim. The page points to further policy and telemetry documentation, but does not explain those features comprehensively.

Using it

Requirements

Prerequisites include a Google Cloud project with billing enabled, permission to create the listed resources, an authenticated gcloud CLI, Docker, access to the required Claude models in Model Garden and a region publishing those models. The container instructions specify the linux-x64 glibc binary and a linux/amd64 image build.

The example also requires an OAuth web-application client, a callback address matching the gateway hostname, a TLS hostname and private network access. The GKE path additionally requires kubectl and a cluster on the database's VPC. The page warns that VPC peering alone cannot provide the required database route because the relevant peering is non-transitive.

Mechanism

Claude Code clients connect to the gateway over HTTPS. The gateway authenticates users through the configured OIDC provider, uses a JWT signing secret for sessions, stores session state in PostgreSQL and forwards model requests upstream. The upstream configuration uses provider vertex with an empty auth object, obtaining Application Default Credentials from the runtime service account.

The listen.public_url setting determines the public origin used for discovery and OAuth redirects; forwarded host and protocol headers do not determine it. Forwarded client IP information is accepted only through configured trusted proxies. Cloud Run must admit requests without a GCP invoker token so the gateway can perform its own authentication, while internal ingress separately restricts network access.

Setup

The walkthrough enables service APIs, creates a service account with roles/aiplatform.user, builds and pushes an image to Artifact Registry, and creates a private-IP Cloud SQL PostgreSQL instance. It then configures the gateway and stores its configuration, JWT signing secret, OAuth client secret and database URL in Secret Manager.

Cloud Run receives the configuration as a mounted file and the other secrets as environment variables. GKE uses Secret Manager CSI file mounts and Workload Identity. The GKE instructions also call for a readiness probe at GET /readyz and a BackendConfig with an increased streaming timeout.

The internal load balancer assumed by the Cloud Run configuration must be provisioned separately. The page describes setup.sh and Terraform reference assets at [https://github.com/anthropics/claude-code/tree/main/examples/gateway/gcp], but those files were not supplied or assessed.

Example

For an organization using Google Workspace, the documented Cloud Run example combines domain-restricted OIDC sign-in, private PostgreSQL storage and service-account model access. Its sample region is us-east5, and its database command specifies PostgreSQL 16 with the db-g1-small tier. These are example settings; the required models must be available in the chosen region.

The deployment command sets one minimum instance, eight maximum instances, a 3,600-second request timeout and internal ingress. Completing this scenario requires a privately resolvable gateway hostname, a matching OAuth callback and managed settings on developer devices. The example was not executed, so successful boot, sign-in and model streaming remain unverified.

Assessment & evidence

Limitations

A deployed container is insufficient for developer sign-in. The page says the default Cloud Run hostname resolves publicly and fails the gateway's private-network login check. It requires either an internal Application Load Balancer with private DNS and a certificate, or separately operated Private Service Connect, private DNS and routing infrastructure.

Cloud Run organization policies can block disabling the invoker check, while Domain Restricted Sharing can also block the alternative allUsers binding. The troubleshooting guidance directs readers to GKE when both routes are unavailable. On GKE, the load balancer's default 30-second backend timeout can interrupt streaming unless increased.

Google Workspace groups require a separately configured service account with domain-wide delegation. GKE Workload Identity also requires access to the metadata endpoint, so applying the gateway boot warning's suggested blocking policy would prevent credential acquisition in that configuration. The page provides no measured capacity, failover recovery results or security-test results.

Reasoning

The architecture suggests a fit for organizations that already manage private networking, cloud identities and developer devices. That is an inference from the prerequisites and onboarding steps. The work extends beyond hosting a container because the documented login path depends on coordinated network, identity and endpoint settings.

Database capacity also constrains scaling. The page states a default of five PostgreSQL connections per gateway instance. Combined with the example's eight-instance maximum, that implies up to 40 connections before additional instances during rolling updates. This calculation is not a throughput measurement; available database connections and supported workload remain unknown.

Alternatives

The documented hosting choices are Cloud Run and GKE. Cloud Run has a concrete deployment command with direct VPC egress. GKE requires cluster configuration, Kubernetes resources, Workload Identity, secret mounts and ingress timeout configuration. The page provides no comparative cost, performance or reliability measurements for choosing between them.

Within Cloud Run, the private-access choices are an internal load balancer or an existing Private Service Connect and private-DNS arrangement. Google Workspace can be replaced by another OIDC-compliant identity provider, although the provider-specific instructions are linked elsewhere. Other gateway products and cloud platforms are not compared on this page.

Evidence

The evidence is the complete captured documentation page at [https://code.claude.com/docs/en/claude-apps-gateway-on-gcp.md]. It supports the described architecture, example commands, configuration values, deployment caveats and troubleshooting guidance.

Linked deployment documentation, configuration references, repository files, binaries and container images are outside the supplied scope. Descriptions of those assets are attributable to the page, but their contents and behavior are unverified. No commands, deployments, sign-ins, model requests or tests were executed.

Access & freshness

Costs

The page requires billing but supplies no prices or operating-cost estimate. Potential cost components include Cloud Run or GKE compute, Cloud SQL, Artifact Registry, Secret Manager, model usage and the selected networking and load-balancer infrastructure.

The Cloud Run example keeps at least one instance available and allows up to eight, which matters when estimating compute usage. No traffic assumptions, model token rates, free allowances, gateway fees or client entitlement costs are established. Total cost is unknown.

Rights

The supplied page contains no license text establishing redistribution, modification or commercial-use permissions for the documentation, gateway binary or linked reference assets. The GitHub link alone does not establish those permissions. Applicable licenses and cloud or model service terms remain unknown from this evidence.

Freshness

The supplied capture is dated 15 November 2026. The page provides no publication date, last-update date or exact gateway release; its image commands use a version placeholder.

Model availability by region, organization-policy behavior, service flags and linked reference assets may change. Their current state beyond this capture is unknown. The example's PostgreSQL version and image architecture do not establish a complete gateway compatibility matrix.

Actions

Before implementation, confirm model access in the intended region, the organization's permitted Cloud Run authentication configuration and ownership of private DNS, TLS and routing. Choose Cloud Run or GKE based on those constraints and the infrastructure the team can operate.

Obtain the applicable gateway version, deployment requirements and asset licenses. Replace example placeholders, size the database connection budget including rollout overlap, and arrange managed settings distribution. Include all required cloud services and model usage in a separate cost estimate.

Before relying on a deployment, verify private-hostname access, OAuth redirects, domain restrictions, client IP attribution, secret access, database connectivity and long streaming responses. Operational checks for failover, upgrades and recovery remain necessary; the supplied page provides no completed results for them.

Evidence for this report

selected-page.txtselected · checked 2026-11-15