Skip to content
BENIBIX Learn

ANTHROPIC_VERTEX_PROJECT_ID

AI⌨️ Claude CodeConfiguration

Also known as ANTHROPIC_VERTEX_PROJECT_ID environment variable, ANTHROPIC_GOOGLE_CLOUD_PROJECT

It names the Google Cloud project Claude Code bills to.

Think of it like

It is like the name of the account a shop bills you to.

Example

Lucy has two Google projects, one for work and one for tests. She sets this to the work project, so the work bill is the one that grows.

Why it matters

Without it, Claude Code does not know which project to send requests to or to bill.

Definition

ANTHROPIC_VERTEX_PROJECT_ID names your Google Cloud project. Claude Code sends its requests there, and Google bills it. The project must have Claude turned on. The Google offer that Anthropic runs has its own name for this one.

Example code

bash
export CLAUDE_CODE_USE_VERTEX=1
export ANTHROPIC_VERTEX_PROJECT_ID=my-team-project
export CLOUD_ML_REGION=global
claude
Point Claude Code at your Google project.

Common mistake

Using the project's display name. It wants the project ID, which is often different.

Key takeaways

  1. 1
    Project ID. Not the display name.
  2. 2
    Billed there. And Claude turned on.
  3. 3
    Two offers. Two variable names.