Skip to content

WF-004: Google Vertex AI

DOCUMENT CONTROL

FieldValue
WF IDWF-004
Version1.0
StatusActive

Purpose

Configure Claude Code to use Google Vertex AI as the backend.

Prerequisites

  • Google Cloud account
  • Vertex AI API enabled
  • Claude models enabled
  • gcloud CLI configured

Setup

1. Enable Vertex

bash
export CLAUDE_CODE_USE_VERTEX=1

2. Configure Google Cloud

bash
gcloud auth application-default login

3. Set Project

bash
export GOOGLE_CLOUD_PROJECT=your-project-id
export GOOGLE_CLOUD_REGION=us-central1

4. Start Claude Code

bash
claude

Configuration Options

VariableDescription
CLAUDE_CODE_USE_VERTEXEnable Vertex
GOOGLE_CLOUD_PROJECTGCP project
GOOGLE_CLOUD_REGIONGCP region

Benefits

  • GCP integration
  • Enterprise security
  • Compliance features
  • Cost management

Best Practices

Vertex Tips

  1. Use service accounts
  2. Enable logging
  3. Set IAM policies
  4. Monitor usage

Next Steps

Based on Official Claude Code Documentation