Answer: Create Application Default Credentials (run `gcloud auth application-default login` with a Google account that has the `roles/claude.user` role, or set `GOOGLE_APPLICATION_CREDENTIALS` to a service account key file), then add three variables to the `env` block of your user settings file `~/.claude/settings.json`: `CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD`, `ANTHROPIC_GOOGLE_CLOUD_PROJECT`, and `ANTHROPIC_GOOGLE_CLOUD_WORKSPACE_ID`. Then start Claude Code and run `/status` to confirm the `API provider` line contains `on Google Cloud`. Status: Confirmed Entry: tool/claude-code/install-and-setup/set-up-claude-code-google-cloud-anthropic-managed Revision: 1 Digest: sha256:6e43c8408239edb9 (changes whenever the content changes) Timeline: Created: 2026-11-15T12:18:41Z Last changed: 2026-11-15T12:18:41Z Last verified: 2026-11-20T12:18:56Z Next check: 2026-11-21T12:18:56Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Enable variable | CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD | [1] | 2026-11-20 Project variable | ANTHROPIC_GOOGLE_CLOUD_PROJECT | [1] | 2026-11-20 Workspace variable | ANTHROPIC_GOOGLE_CLOUD_WORKSPACE_ID | [1] | 2026-11-20 Settings file | ~/.claude/settings.json | [1] | 2026-11-20 Login command | gcloud auth application-default login | [1] | 2026-11-20 Required role | roles/claude.user | [1] | 2026-11-20 Service account variable | GOOGLE_APPLICATION_CREDENTIALS | [1] | 2026-11-20 Status check | on Google Cloud | [1] | 2026-11-20 Sources: [1] Anthropic. "Claude Code with Claude Models on Google Cloud (Anthropic managed)". https://code.claude.com/docs/en/claude-models-on-google-cloud-anthropic-managed.md Role: primary. Accessed: 2026-11-20T12:18:56Z Quote: ""CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD": "1"" (Supports: Enable variable) Quote: ""ANTHROPIC_GOOGLE_CLOUD_PROJECT": "my-project-id"" (Supports: Project variable) Quote: ""ANTHROPIC_GOOGLE_CLOUD_WORKSPACE_ID": "wrkspc_01ABCDEFGHIJKLMN"" (Supports: Workspace variable) Quote: "Add three variables to the `env` block of your [user settings file](https://code.claude.com/docs/en/settings.md), `~/.claude/settings.json`." (Supports: Settings file) Quote: "> gcloud auth application-default login" (Supports: Login command) Quote: "sign in with the Google account that has the `roles/claude.user` role" (Supports: Required role) Quote: "set `GOOGLE_APPLICATION_CREDENTIALS` to the path of a [service account key file]" (Supports: Service account variable) Quote: "The `API provider` line contains `on Google Cloud`" (Supports: Status check) Published: 2026-11-20T03:01:14Z Snapshot SHA-256: 93d2f97537090dd788a4367d30787605dce0259560516e835b7354492435308c (captured 2026-11-15T12:18:41Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-15T12:18:41Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:18:56Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:18:56Z Last attempt: 2026-11-20T12:18:56Z Notes and limitations: Extracted automatically from a single official source (section "Set up Claude Code"). Related: https://latestn.com/tool/claude-code/install-and-setup/slack-setup How do I set up Claude Code in Slack? https://latestn.com/tool/claude-code/install-and-setup/system-requirements What are the system requirements for installing Claude Code? https://latestn.com/tool/claude-code/install-and-setup/uninstall-claude-code How do I uninstall Claude Code? https://latestn.com/tool/claude-code/install-and-setup/prerequisites What do I need before installing Claude Code? https://latestn.com/tool/claude-code/install-and-setup/python-sdk-install How do I install the Claude Code Python Agent SDK in a virtual environment? https://latestn.com/tool/claude-code/install-and-setup/register-deep-link-handler How do I register or disable the claude-cli:// handler on my platform so Claude Code deep links work? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-15T12:18:41Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/install-and-setup/set-up-claude-code-google-cloud-anthropic-managed/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/install-and-setup/set-up-claude-code-google-cloud-anthropic-managed POST: https://latestn.com/dispute/tool/claude-code/install-and-setup/set-up-claude-code-google-cloud-anthropic-managed with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/install-and-setup/set-up-claude-code-google-cloud-anthropic-managed?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set up Claude Code to use Claude Models on Google Cloud (Anthropic managed)? Revision 1, last verified 2026-11-20T12:18:56Z. https://latestn.com/tool/claude-code/install-and-setup/set-up-claude-code-google-cloud-anthropic-managed (accessed 2026-11-21T09:57:52Z). @misc{LatestN_tool_claude_code_install_and_setup_set_up_claude_code_google_cloud_anthropic_managed_r1, title = {How do I set up Claude Code to use Claude Models on Google Cloud (Anthropic managed)?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/install-and-setup/set-up-claude-code-google-cloud-anthropic-managed}}, note = {Revision 1; digest sha256:6e43c8408239edb9; last verified 2026-11-20T12:18:56Z; accessed 2026-11-21T09:57:52Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/install-and-setup/set-up-claude-code-google-cloud-anthropic-managed