-
Notifications
You must be signed in to change notification settings - Fork 2
Quick Start
Get started quickly with Vertex AI models in VS Code.
Install Vertex AI Models Chat Provider from the VS Code Marketplace.
This extension supports two authentication methods:
Uses your local gcloud identity. Run:
gcloud auth application-default loginUse a JSON key without installing the gcloud SDK:
- Run command:
Vertex AI: Paste Service Account JSON Key - Paste your JSON and give it a name.
See Service Account Authentication for details.
In the Google Cloud Console, make sure the following are configured for your project:
-
Vertex AI API enabled (
aiplatform.googleapis.com) - Your account has the Vertex AI User role (
roles/aiplatform.user) - Anthropic Claude models are enabled via the Vertex AI Model Garden if you plan to use them
Open VS Code Settings and set:
{
"vertexAiChat.projectId": "YOUR_PROJECT_ID"
}Use a workspace-level setting in .vscode/settings.json if you want different workspaces to use different projects.
Open the VS Code Chat panel and select the Google Cloud Vertex AI provider.
Once your project is configured, the extension automatically discovers available models in your Google Cloud project and region.
If you update model access or project permissions, run the command:
Vertex AI Models Chat Provider: Refresh Models
Open the built-in dashboard by clicking the cost status bar item in VS Code.
This gives you local cost estimates and token usage details for your current session.