In short.
This guide explains how developers and platform teams can use Claude Code through Google Cloud's Agent Platform, but model access, location support and billing require project-specific configuration. It documents interactive and manual setup, credential refresh, IAM, model pinning, fallback, caching and troubleshooting. Unexpected model choices can affect charges, including background requests. Exact prices, contractual terms and runtime reliability are unknown from this page, and no configuration was executed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is the complete selected page at [https://code.claude.com/docs/en/google-vertex-ai.md], including prerequisites, guided and manual setup, authentication, IAM, region routing, model pins and defaults, startup and mid-session fallback, allowlists, caching, context windows, MCP loading and troubleshooting. Enterprise notices and links are included as page content; linked destinations are excluded. No configuration or runtime behavior was executed. Project-specific access, reliability, performance, exact costs and contractual rights remain unknown or unassessed.
The overview
identity
The resource is a Claude Code documentation page at [https://code.claude.com/docs/en/google-vertex-ai.md]. It explains how to route Claude Code requests through Google's cloud platform using a GCP project, Google credentials and enabled Claude models.
The page calls the service Google Cloud's Agent Platform, formerly Vertex AI. Its URL, the login menu's Google Vertex AI option, the /status provider label and several configuration variables retain Vertex naming.
assessment
This is a useful integration reference for deciding whether Claude Code fits an existing Google Cloud identity, billing and deployment setup. Its practical strength is explaining operational details that can otherwise produce confusing failures: which project receives requests, how endpoint locations work, how model defaults change and when fallback occurs.
The page provides configuration instructions and troubleshooting guidance. Successful deployment, coding quality, productivity gains and reliability under load were not assessed.
users
Individual developers with an approved Google Cloud project can use the login wizard. Platform administrators can use environment variables and managed settings for team deployments, CI or scripted rollout.
Beginners receive a guided Claude Code setup path, but must still arrange billing, permissions, model access and quota in Google Cloud. Experienced developers will find the most value in credential refresh, model and region overrides, managed allowlists and fallback controls.
capabilities
The documented integration supports global, multi-region and regional endpoints; Application Default Credentials, service account key files and environment-provided credentials; model version pins; per-model region settings; and a custom endpoint URL. X.509 certificate-based Workload Identity Federation is supported through the Application Default Credentials chain.
Prompt caching is enabled automatically, with a five-minute default and an optional one-hour duration. Model-specific one-million-token context options are documented. MCP tool search is enabled by default for Opus 4.5, Sonnet 4.5, Haiku 4.5 and later; earlier models load tool definitions upfront because their serving stacks reject the required header.
Using it
requirements
The page requires a Google Cloud account with billing enabled, a project with aiplatform.googleapis.com enabled, access to the desired Claude models, an installed and configured Google Cloud SDK and quota in the intended location. Claude Code itself must also be available; installation instructions are outside this page.
For invocation and token counting, the page identifies aiplatform.endpoints.predict as the required permission. It recommends roles/aiplatform.user or a custom role containing that permission. Model access requires a request through Model Garden; the page says approval may take 24–48 hours, without establishing an actual waiting time for a particular project.
mechanism
CLAUDE_CODE_USE_VERTEX=1 selects the integration. ANTHROPIC_VERTEX_PROJECT_ID determines the project receiving requests, even if other Google project variables or credential files name another project. CLOUD_ML_REGION selects the endpoint location, while supported VERTEX_REGION_CLAUDE_* variables allow model-specific locations.
At startup, Claude Code checks model access. An unavailable, unpinned default can fall back to earlier versions and, for an Opus default, to Sonnet when no Opus version is available. This fallback applies to the session and is not saved. Managed environment pins skip the update check. Mid-session switching has separate restrictions, including configured pins and fallback chains.
The optional gcpAuthRefresh setting runs a configured command when credentials expire or cannot be loaded. The credential check has a five-second timeout; the refresh command has a three-minute timeout and cannot receive interactive input from Claude Code. If gcpAuthRefresh is set in project settings such as .claude/settings.json, the page says Claude Code runs it under the same workspace trust rule as hooks in settings files, and that this rule covers -p sessions in folders you have never trusted. A project's settings file can therefore cause a command to run, so review gcpAuthRefresh in repositories you did not write.
setup
First enable the API and request the desired models in the project. For guided setup, start claude or use /login, choose 3rd-party platform and then Google Vertex AI. The wizard asks for authentication, project and region, checks accessible models and offers model pinning. It saves configuration in the user settings file; /setup-vertex reopens it.
For manual setup, configure Google credentials and export CLAUDE_CODE_USE_VERTEX, CLOUD_ML_REGION and ANTHROPIC_VERTEX_PROJECT_ID. Choose explicit model versions and any required per-model locations before a team rollout. The page recommends a dedicated GCP project for cost tracking and access control.
After configuration, the documented verification step is /status. Its provider, project, region and resolved model should match the intended deployment. A missing provider line indicates that the integration environment variables are not reaching the process.
example
A documentation-derived manual example is to set CLAUDE_CODE_USE_VERTEX=1, ANTHROPIC_VERTEX_PROJECT_ID=YOUR-PROJECT-ID and CLOUD_ML_REGION=global. To select the page's listed Sonnet 4.5 model as primary, set ANTHROPIC_MODEL=claude-sonnet-4-5@20250929, provided that model is enabled in the project and supported at the chosen endpoint.
The reader would then start claude and inspect /status for Google Vertex AI, the intended project, the location and the resolved model. This example was not executed, and project access or endpoint compatibility has not been established.
Assessment & evidence
limitations
Model availability differs across projects and global, multi-region and regional endpoints. Enabling one Claude model does not establish access to the primary and background models a configuration may request. Models that are not enabled, or not offered at the chosen location, can cause 404 'model not found' errors. At regional endpoints, 429 errors can occur when the primary or small/fast model is not supported in that region. The page lists quota limits as a separate problem to check in Cloud Console.
Malformed region values are treated as unset. A model-specific region then falls back to CLOUD_ML_REGION, while an invalid CLOUD_ML_REGION falls back to us-east5. The /logout command is unavailable because authentication is handled through Google Cloud credentials.
Automatic model switching is conditional. A pinned or specifically selected model can fail without a configured fallback chain, and an availableModels list restricts startup checks only when enforceAvailableModels is enabled. The documented controls require attention to the installed Claude Code version.
Project settings can define a gcpAuthRefresh command that runs under the hooks workspace trust rule, including in -p sessions in folders you have never trusted. Review this setting in repositories you did not write.
reasoning
The guide is most relevant when using a Google Cloud project for identity, model access and billing is a concrete requirement. Suitability depends on whether the team can maintain the required IAM permissions, quota, model approvals and location configuration.
The wizard can reduce manual local configuration, while explicit pins and managed settings can make team model choices more predictable. These are practical inferences from the documented controls; improvements in productivity, deployment reliability or security were not measured.
alternatives
The page offers two setup approaches: an interactive wizard for individual configuration and manual environment variables for CI or scripted deployment. Authentication choices include Application Default Credentials, service account keys and credentials already supplied through the environment.
For endpoint selection, global, multi-region and regional locations are documented alternatives, subject to model availability. The page supplies no comparative assessment of other cloud providers, direct Anthropic access or other coding assistants, so their relative cost and suitability remain unknown.
evidence
The evidence is the complete documentation page at [https://code.claude.com/docs/en/google-vertex-ai.md], captured on 14 November 2026. It contains configuration examples, documented behavior, version-specific notes and troubleshooting guidance.
Linked model catalogues, pricing, authentication references and other documentation were not included. No commands were executed. Successful authentication, actual project permissions, model availability, request routing, fallback behavior and performance were not independently demonstrated.
Access & freshness
costs
Exact token prices, cache prices, deployment costs and enterprise plan charges are unknown from this page. Billing must be enabled, and the page links to pricing at [https://cloud.google.com/vertex-ai/pricing], whose contents are outside the selected scope.
The captured page lists claude-opus-5-5 as the unpinned primary default and warns that Opus has a higher per-token price than Sonnet. Background tasks normally use the listed Sonnet default, but primary-model selections and pin combinations can change that behavior. Background requests therefore also matter when estimating spend.
Prompt caching is automatic. Requesting a one-hour cache duration instead of the five-minute default makes cache writes more expensive according to the page. No numerical savings, total usage estimate or measured bill is supplied.
rights
The page does not state a redistribution licence for its documentation or provide complete software, model or service usage terms. Permission to redistribute the captured text is therefore unknown.
It also does not establish data retention terms, training-use commitments or contractual data-residency guarantees. Endpoint selection and IAM instructions alone do not establish those rights or commitments. Linked contractual material was not assessed.
freshness
The snapshot was captured at 2026-11-14T00:19:11.856Z. The supplied page does not state a publication or last-updated date, so the capture date establishes when this text was obtained.
Version-sensitive notes include credential timeout behavior changing in v2.1.261, primary defaults changing in v2.1.280, allowlist enforcement and context-window behavior in v2.1.287, and managed-pin update prompts being corrected in v2.1.314. These are documentation claims; installed-version compatibility was not assessed.
Model aliases, defaults and examples serve different purposes and should not be treated as interchangeable. Availability and present-day defaults beyond the captured text are unknown.
actions
Confirm billing, API enablement, quota, model access and location support in the intended project. Choose the wizard or manual setup, then explicitly configure the primary and background models and any per-model regions.
After configuring, use /status to inspect the provider, project, region and resolved model. For team deployments, check the installed version against the documented managed-pin and allowlist requirements. Decide whether fallback and cache duration match the intended behavior and budget.
Consult the applicable pricing and service terms before committing spend or relying on data-handling guarantees. Exact costs and contractual commitments cannot be determined from this page.
