GCP Vertex AI Integration with Bwat
Configure GCP Vertex AI with Bwat to access advanced AI models like Claude 3.5 Sonnet v2. This enterprise-focused guide covers secure setup, authentication, and optimal usage.
Overview
GCP Vertex AI: Google Cloud's managed AI platform providing access to cutting-edge models including Anthropic's Claude 3.5 Sonnet v2. Vertex AI Documentation (opens in a new tab)
Bwat Integration: The Bwat VS Code extension connects securely to Vertex AI, enabling AI-assisted development while maintaining enterprise security standards.
Step 1: GCP Environment Setup
1.1 Project Configuration
- Access Google Cloud Console (opens in a new tab)
- Create new project or select existing one for Vertex AI
1.2 IAM & Service Accounts
Assign essential roles:
- Vertex AI User (
roles/aiplatform.user
) - Vertex AI Service Agent (
roles/aiplatform.serviceAgent
)
For cross-project resources:
- Add BigQuery Data Viewer for datasets
- Include Storage Object Viewer for Cloud Storage
Step 2: Model & Region Selection
2.1 Regional Deployment
Key supported regions:
- us-east5 (Ohio)
- us-central1 (Iowa)
- europe-west4 (Netherlands)
- asia-southeast1 (Singapore)
2.2 Model Activation
- Navigate to Vertex AI → Model Garden
- Locate and enable Claude 3.5 Sonnet v2
Step 3: Bwat Configuration
3.1 Extension Setup
- Install VS Code
- Add Bwat from Extensions Marketplace (Ctrl/Cmd+Shift+X)
3.2 Vertex AI Connection
- Open Bwat settings (⚙️ icon)
- Select GCP Vertex AI as provider
- Enter:
- Google Cloud Project ID
- Selected region
- Claude 3.5 Sonnet v2 model
Authentication Options
Option A: User Credentials
gcloud init
gcloud auth application-default login
Restart VS Code after authentication
Option B: Service Account
- Create service account with required roles
- Generate/download JSON key
- Set environment variable:
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/key.json"
Launch VS Code from same terminal session
Security & Operations
Best Practices
- Implement least privilege access
- Monitor via Model Observability dashboard
- Manage quotas in IAM & Admin > Quotas
- For cross-project resources, verify additional role assignments
Key Service Agents
- Vertex AI Service Agent
- Vertex AI RAG Data Service Agent
- Vertex AI Custom Code Service Agent
Implementation Summary
- GCP Setup: Configure project and IAM roles
- Model Access: Enable Claude 3.5 in selected region
- Bwat Configuration: Install extension and connect to Vertex AI
- Authentication: Choose user or service account method
- Security: Apply monitoring and access controls
For ongoing updates, refer to Vertex AI docs (opens in a new tab) and internal security policies.