Setup Instructions
Create a GCP service account
- Navigate to the GCP Console
- Create a service account with the
roles/aiplatform.userrole - Download the JSON key file for the service account
Environment Variables
| Variable | Required | Description |
|---|---|---|
CLAUDE_CODE_USE_VERTEX | Yes | Set to 1 to enable Vertex AI mode |
CLOUD_ML_REGION | Yes | GCP region (e.g., us-east5) or global |
ANTHROPIC_VERTEX_PROJECT_ID | Yes | Your GCP project ID |
GOOGLE_APPLICATION_CREDENTIALS | Yes | Path to service account JSON key file |
ANTHROPIC_SMALL_MODEL | Yes | Vertex AI model ID for small tasks (Haiku) |
ANTHROPIC_MEDIUM_MODEL | Yes | Vertex AI model ID for medium tasks (Sonnet) |
ANTHROPIC_LARGE_MODEL | Yes | Vertex AI model ID for large tasks (Opus) |
Model Tiers
Shannon uses three model tiers optimized for different tasks:- Small (
claude-haiku-4-5@20251001) — Used for summarization and lightweight tasks - Medium (
claude-sonnet-4-6) — Used for security analysis and vulnerability detection - Large (
claude-opus-4-6) — Used for deep reasoning and complex exploitation
Region Configuration
- Set
CLOUD_ML_REGION=globalfor global endpoints - Or use a specific region like
us-east5for regional endpoints
Some models may not be available on global endpoints. Check the Vertex AI Model Garden for region availability.
Service Account Permissions
Your service account needs the following IAM role:roles/aiplatform.user— Required for accessing Vertex AI models
- Go to the IAM page in GCP Console
- Find your service account
- Click “Edit”
- Add the
AI Platform Userrole - Save changes
Example Configuration
Here’s a complete.env example for Google Vertex AI:
