# ANTHROPIC_VERTEX_PROJECT_ID

> It names the Google Cloud project Claude Code bills to.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** ANTHROPIC_VERTEX_PROJECT_ID environment variable, ANTHROPIC_GOOGLE_CLOUD_PROJECT

## Think of it like

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

## 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

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.

## 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.

## Why it matters

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

## Common mistake

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

## Three principles

- **Project ID.** Not the display name.
- **Billed there.** And Claude turned on.
- **Two offers.** Two variable names.

## Related terms

- [CLOUD_ML_REGION](https://learn.benibix.com/term/ai/cloud-ml-region-variable)
- [CLAUDE_CODE_USE_BEDROCK](https://learn.benibix.com/term/ai/claude-code-use-provider-variables)
- [Google Cloud](https://learn.benibix.com/term/infrastructure/google-cloud)

---

Source: https://learn.benibix.com/term/ai/anthropic-vertex-project-id-variable
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
