⌨️ANTHROPIC_VERTEX_PROJECT_ID
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
Example code
bash
export CLAUDE_CODE_USE_VERTEX=1
export ANTHROPIC_VERTEX_PROJECT_ID=my-team-project
export CLOUD_ML_REGION=global
claudeCommon mistake
Key takeaways
- 1Project ID. Not the display name.
- 2Billed there. And Claude turned on.
- 3Two offers. Two variable names.