414. Review and accept edits directly in the interface414. Review and accept edits directly in the interface
42 * **Tip**: Drag the sidebar wider to see inline diffs, then click on them to expand for full details42 * **Tip**: Drag the sidebar wider to see inline diffs, then click on them to expand for full details
43 43
44### Using Third-Party Providers44### Configuration
45 45
46The VS Code extension supports using Claude Code with third-party providers like Amazon Bedrock, Microsoft Foundry, and Google Vertex AI. When configured with these providers, the extension will not prompt for login. To use third-party providers, configure environment variables in the VS Code extension settings:46The VS Code extension reads the same `settings.json` files as the CLI. See the [settings documentation](/en/settings) for details.
47 47
481. Open VS Code settings48#### Third-Party Providers and Gateways
492. Search for "Claude Code: Environment Variables"49
503. Add the required environment variables50To use the VS Code extension with third-party providers (Amazon Bedrock, Google Vertex AI, Microsoft Foundry) or gateways that handle authentication:
51 51
52#### Environment Variables521. Add the appropriate environment variables for your provider or gateway to your Claude Code `settings.json`:
53 53 ```json theme={null}
54| Variable | Description | Required | Example |54 {
55| :---------------------------- | :------------------------------------- | :----------------------------- | :----------------------------------------------- |55 "env": {
56| `CLAUDE_CODE_USE_BEDROCK` | Enable Amazon Bedrock integration | Required for Bedrock | `"1"` or `"true"` |56 "CLAUDE_CODE_USE_BEDROCK": "1",
57| `CLAUDE_CODE_USE_FOUNDRY` | Enable Microsoft Foundry integration | Required for Foundry | `"1"` or `"true"` |57 "AWS_REGION": "us-east-2",
58| `CLAUDE_CODE_USE_VERTEX` | Enable Google Vertex AI integration | Required for Vertex AI | `"1"` or `"true"` |58 "AWS_PROFILE": "your-profile"
59| `AWS_REGION` | AWS region for Bedrock | | `"us-east-2"` |59 }
60| `AWS_PROFILE` | AWS profile for Bedrock authentication | | `"your-profile"` |60 }
61| `CLOUD_ML_REGION` | Region for Vertex AI | | `"global"` or `"us-east5"` |61 ```
62| `ANTHROPIC_VERTEX_PROJECT_ID` | GCP project ID for Vertex AI | | `"your-project-id"` |62
63| `ANTHROPIC_FOUNDRY_RESOURCE` | Azure resource name for Foundry | Required for Microsoft Foundry | `"your-resource"` |632. Disable the VS Code extension login prompt via [`vscode://settings/claudeCode.disableLoginPrompt`](vscode://settings/claudeCode.disableLoginPrompt) or in VS Code's settings:
64| `ANTHROPIC_FOUNDRY_API_KEY` | API key for Microsoft Foundry | Optional for Microsoft Foundry | `"your-api-key"` |64 ```json theme={null}
65| `ANTHROPIC_MODEL` | Override primary model | Override model ID | `"us.anthropic.claude-sonnet-4-5-20250929-v1:0"` |65 {
66| `ANTHROPIC_SMALL_FAST_MODEL` | Override small/fast model | Optional | `"us.anthropic.claude-3-5-haiku-20241022-v1:0"` |66 "claudeCode.disableLoginPrompt": true
67| `CLAUDE_CODE_SKIP_AUTH_LOGIN` | Disable all prompts to login | Optional | `"1"` or `"true"` |67 }
68 ```
68 69
69For detailed setup instructions and additional configuration options, see:70For detailed setup instructions and additional configuration options, see:
70 71
71* [Claude Code on Amazon Bedrock](/en/amazon-bedrock)72* [Claude Code on Amazon Bedrock](/en/amazon-bedrock)
72* [Claude Code on Microsoft Foundry](/en/microsoft-foundry)
73* [Claude Code on Google Vertex AI](/en/google-vertex-ai)73* [Claude Code on Google Vertex AI](/en/google-vertex-ai)
74* [Claude Code on Microsoft Foundry](/en/microsoft-foundry)
74 75
75### Not Yet Implemented76### Not Yet Implemented
76 77