Google Agent Platform for Copilot Chat - Vertex AI Models Chat ProviderNative Gemini, Claude & open-weight models, powered by Google Agent Platform ( Vertex AI ) for Copilot Chat.Experience enterprise-grade AI directly within the standard VS Code Chat panel.
This extension registers Google Gemini, Anthropic Claude, and MaaS open-weight models as first-class providers—no separate UI, no extra windows, no friction.
☁️ Google Cloud Prerequisites
🚀 Quick Start
📖 Documentation & WikiFor detailed guides, troubleshooting, and advanced configuration, visit our Wiki:
🛡️ Enterprise-Grade AuthenticationThis extension moves away from traditional API keys in favor of Identity and Project-based authentication. By using your native Google Cloud credentials or Service Accounts, you gain several professional advantages:
Supported MethodsChoose the workflow that fits your environment:
Remote DevelopmentThe extension runs in the workspace extension host so its language-model provider is available to Copilot Chat. In Remote SSH, Dev Containers, Codespaces, and similar environments, install the extension in the remote workspace. Remote authentication is resolved in that workspace environment. Use ADC configured on the remote host, an attached workload identity, Service Account imports copy a validated snapshot into ✨ Key Features
🤖 Supported Models
* Claude Fable 5 may require manual data-sharing opt-in for your GCP project. See Enabling Claude Fable 5 for details.
⚙️ ConfigurationSettings (
|
| Setting | Type | Default | Description |
|---|---|---|---|
vertexAiChat.projectId |
string |
"" |
Required. Your GCP Project ID. Overrides ID in JSON keys. |
vertexAiChat.retryMaxDurationMinutes |
integer |
30 |
Maximum retry duration for transient failures (429, 503). |
vertexAiChat.hideBillingWarning |
boolean |
false |
Hide the cost warning banner in the dashboard. |
vertexAiChat.enableUserLabel |
boolean |
false |
Opt-in. Include user email as vscode-vertex-ai-user label. |
vertexAiChat.enableProjectLabel |
boolean |
false |
Opt-in. Include workspace name as vscode-vertex-ai-project label. |
Private Configuration (Command-Managed)
Authentication methods are managed privately per workspace to avoid host-specific path conflicts and Git pollution.
| Action | Command | Description |
|---|---|---|
| Paste JSON Key | Google Agent Platform: Paste Service Account JSON Key |
Validate, securely store, and activate pasted Service Account JSON. |
| Import JSON File | Google Agent Platform: Import Service Account JSON File |
Import a validated snapshot into SecretStorage; the source file is unchanged. |
| Remove Stored Account | Google Agent Platform: Remove Stored Service Account |
Delete only this extension's copy; Google Cloud resources are unchanged. |
| Select Auth Method | Google Agent Platform: Select Authentication Method |
Switch between stored Service Accounts and default ADC. |
| Clear Auth Method | Google Agent Platform: Clear Authentication Method (Use ADC) |
Reset the workspace to use default ADC. |
Custom Model Catalog
By default, the extension ships with a bundled models.json catalog of supported models and the GCP regions to probe. You can override this catalog at two levels so teams can configure their own models per organization policies:
- Workspace level —
.vscode/models.jsonin the first workspace folder. Commit it to share a model set with your team. - User level — a private
models.jsonstored in the extension's global storage, applying across all your workspaces.
Resolution precedence: Workspace > User > Bundled. A custom file fully replaces the bundled catalog (it is not merged). On first run, each command seeds the file from the bundled catalog so you start from a known-good template.
| Action | Command | Description |
|---|---|---|
| Open Workspace models.json | Google Agent Platform: Open Workspace models.json |
Create (seeded from bundled) / open .vscode/models.json for editing. Requires an open workspace folder. |
| Open User models.json | Google Agent Platform: Open User models.json |
Create (seeded from bundled) / open your private user-level models.json for editing. |
Both files get JSON schema validation and autocomplete (model vendor enum, required fields, pricing structure) automatically. Saving a custom catalog triggers model re-discovery and refreshes the Copilot Chat model picker within ~300ms.
Note: Multi-root workspaces use the first folder for
.vscode/models.json. If a custom file contains invalid JSON, the extension logs an error, shows a one-shot message, and falls back to the next tier.
�🔍 Diagnostics & Logs
For detailed request/response mapping and troubleshooting:
- Open the Output panel (
Ctrl+Shift+U). - Select Google Agent Platform for Copilot Chat from the dropdown.
- View region probing results, token usage metadata, and raw API transformations.
🛠️ Installation from Source
If you prefer to build the extension manually:
Clone the repository:
git clone https://github.com/jorsm/vertex-ai-models-chat-provider.gitInstall dependencies:
npm installCompile and launch:
- Press
F5in VS Code to launch the Extension Development Host. - Or run
npm run compileto build the TypeScript source.
- Press
📜 License
Distributed under the MIT License. See LICENSE for more information.