> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aiandgpu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# VS Code - Claude Code

Use AGCloud models (Claude, OpenAI, Gemini, GLM, Kimi, MiniMax, DeepSeek and more) in the Claude Code Visual Studio Code Extension.

<Tip>
  For CLI usage, see the [**Claude Code CLI guide**](/guides/claude-code).
</Tip>

## Step 1: Install Claude Code Extension

Launch Visual Studio Code and open the Extensions Marketplace. Search `Claude Code` and install.

## Step 2: Configure AGCloud API

Press `ctrl`/`cmd` + `shift` + `p`, search **User Settings (JSON)**, open `settings.json`, and add the following:

```json theme={null}
{
  "claudeCode.environmentVariables": [
    {
      "name": "ANTHROPIC_BASE_URL",
      "value": "https://aiandgpu.com"
    },
    {
      "name": "ANTHROPIC_AUTH_TOKEN",
      "value": "<YOUR_API_KEY>"
    },
    {
      "name": "ANTHROPIC_MODEL",
      "value": "claude-sonnet-4-6"
    },
    {
      "name": "ANTHROPIC_DEFAULT_HAIKU_MODEL",
      "value": "claude-haiku-4-5-20251001"
    },
    {
      "name": "ANTHROPIC_DEFAULT_SONNET_MODEL",
      "value": "claude-sonnet-4-6"
    },
    {
      "name": "ANTHROPIC_DEFAULT_OPUS_MODEL",
      "value": "claude-opus-4-6"
    },
    {
      "name": "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS",
      "value": "1"
    }
  ]
}
```

<Tip>
  It is recommended to set `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS='1'` for **AWS Bedrock** protocol compatibility, otherwise your requests may be slower. For more environment variables, refer to: [**Claude Code Env Vars**](https://code.claude.com/docs/en/env-vars)
</Tip>

## Step 3: Restart Visual Studio Code

Restart Visual Studio Code to make the configuration take effect.

## Choose Your Model

You can replace the model values above with any AGCloud-supported model. For example:

```json theme={null}
{
  "claudeCode.environmentVariables": [
    {
      "name": "ANTHROPIC_BASE_URL",
      "value": "https://aiandgpu.com"
    },
    {
      "name": "ANTHROPIC_AUTH_TOKEN",
      "value": "<YOUR_API_KEY>"
    },
    {
      "name": "ANTHROPIC_DEFAULT_OPUS_MODEL",
      "value": "glm-5"
    },
    {
      "name": "ANTHROPIC_DEFAULT_SONNET_MODEL",
      "value": "kimi-k2.5"
    },
    {
      "name": "ANTHROPIC_DEFAULT_HAIKU_MODEL",
      "value": "deepseek-v3.2"
    },
    {
      "name": "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS",
      "value": "1"
    }
  ]
}
```

## Resources Links

* **AGCloud Dashboard**: [**developer.aiandgpu.com**](https://developer.aiandgpu.com)
* **AGCloud API Docs**: [**docs.aiandgpu.com**](https://docs.aiandgpu.com/)
* **VS Code Claude Code Docs**: [**code.claude.com/docs/en/vs-code**](https://code.claude.com/docs/en/vs-code#extension-settings)
