๐ Complete access to all Anthropic Claude models through Google Vertex AI - including the latest Claude 4 Opus & Sonnet with extended thinking capabilities. โจ FEATURES: - Claude 4 Opus & Sonnet (Latest 2025 models) - Claude 3.7 Sonnet with extended thinking - All Claude 3.5 & 3.0 models included - Vision support for image analysis - Enterprise-grade security & authentication - Multiple auth methods (Service Account, ADC, Environment) - Extended thinking process visualization - Configurable token limits & temperature ๐ง QUICK SETUP: 1. Set your Google Cloud PROJECT_ID in configuration 2. Enable Vertex AI and Claude models in your GCP project 3. Configure authentication (Service Account JSON or Environment) 4. Start chatting with Claude models! ๐ก AUTHENTICATION OPTIONS: - Service Account JSON (paste directly) - GOOGLE_APPLICATION_CREDENTIALS file - Application Default Credentials (ADC) - Environment variables ๐ฏ PERFECT FOR: - Development teams using Google Cloud - Enterprise deployments requiring Vertex AI - Organizations needing advanced Claude capabilities - Projects requiring vision + text processing โก All Claude models work out-of-the-box with proper GCP setup!
""" title: Anthropic Claude Models via Google Vertex AI author: sanjay date: 2025-05-24 version: 1.0.0 description: Access all Anthropic Claude models (including Claude 4 Opus & Sonnet) through Google Vertex AI with enterprise-grade security, extended thinking capabilities, and vision support requirements: google-auth, google-cloud-aiplatform environment_variables: GOOGLE_APPLICATION_CREDENTIALS, VERTEX_AI_PROJECT_ID, VERTEX_AI_LOCATION, SERVICE_ACCOUNT_JSON """ import os import json
๐ Complete access to all Anthropic Claude models through Google Vertex AI - including the latest Claude 4 Opus & Sonnet with extended thinking capabilities.
# Enable Vertex AI API in your Google Cloud project
gcloud services enable aiplatform.googleapis.com
# Enable Claude models in Vertex AI Model Garden
# Go to: https://console.cloud.google.com/vertex-ai/model-garden
# Search for "Claude" and enable the models you want to useOption A: Service Account JSON (Recommended)
Option B: Environment Variables
export VERTEX_AI_PROJECT_ID="your-project-id"
export VERTEX_AI_LOCATION="us-east5"
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account.json"Option C: Application Default Credentials
gcloud auth application-default loginus-east5 (recommended for Claude models)true for Claude 4 thinking capabilities4096 (or higher for longer responses)| Setting | Description | Example |
|---|---|---|
PROJECT_ID | Your Google Cloud Project ID | my-ai-project-123 |
LOCATION | Vertex AI region | us-east5 |
| Method | Setting | Description |
|---|---|---|
| Service Account JSON | SERVICE_ACCOUNT_JSON | Paste full JSON content |
| Environment File | GOOGLE_APPLICATION_CREDENTIALS | Path to JSON file |
| Default Credentials | None needed | Uses gcloud auth |
| Setting | Default | Description |
|---|---|---|
MAX_OUTPUT_TOKENS | 4096 | Maximum response length |
TEMPERATURE | 0.7 | Response creativity (0.0-1.0) |
ENABLE_THINKING | false | Show Claude's reasoning process |
THINKING_TOKEN_BUDGET | 16000 | Tokens for thinking (1024-32000) |
User: Explain quantum computing in simple terms
Claude: [Provides detailed explanation using Claude 4's capabilities]User: Plan a complete marketing strategy for a new SaaS product
๐ค **Thinking Process:**
Let me break this down systematically...
[Shows detailed reasoning process]
**Marketing Strategy:**
[Provides comprehensive strategy based on thinking process]User: [Uploads image] What's in this chart and what insights can you provide?
Claude: [Analyzes the image and provides detailed insights]User: Review this Python code for security issues
Claude: [Provides detailed code analysis using Claude 4's coding expertise]โ "Authentication failed"
โ "Invalid Endpoint name"
โ "Model not found"
โ "Quota exceeded"
Enable debug mode by setting DEBUG_MODE = True in the function code:
# At the top of the function code
DEBUG_MODE = TrueThis will show detailed logs including:
Claude models are available in these Vertex AI regions:
us-east5 (Virginia) - Recommendedus-central1 (Iowa)europe-west4 (Netherlands)asia-southeast1 (Singapore)Pricing follows Vertex AI's pay-as-you-go model:
Prices subject to change. Check Google Cloud Vertex AI pricing for current rates.
google-auth - Google Cloud authenticationgoogle-cloud-aiplatform - Vertex AI client libraryYour service account needs:
roles/aiplatform.user)This function:
Your data is processed according to Google Cloud and Anthropic privacy policies.
Made with โค๏ธ for the Open WebUI Community
Get started in minutes with enterprise-grade Claude 4 access through Google Vertex AI!
We use optional analytics to improve our websites, and advertising cookies on this site. Privacy Policy.