WF-004: Google Vertex AI
DOCUMENT CONTROL
| Field | Value |
|---|---|
| WF ID | WF-004 |
| Version | 1.0 |
| Status | Active |
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=12. Configure Google Cloud
bash
gcloud auth application-default login3. Set Project
bash
export GOOGLE_CLOUD_PROJECT=your-project-id
export GOOGLE_CLOUD_REGION=us-central14. Start Claude Code
bash
claudeConfiguration Options
| Variable | Description |
|---|---|
| CLAUDE_CODE_USE_VERTEX | Enable Vertex |
| GOOGLE_CLOUD_PROJECT | GCP project |
| GOOGLE_CLOUD_REGION | GCP region |
Benefits
- GCP integration
- Enterprise security
- Compliance features
- Cost management
Best Practices
Vertex Tips
- Use service accounts
- Enable logging
- Set IAM policies
- Monitor usage