Configure the Claude Code Plugin in VS Code

Configure the Claude Code Plugin in VS Code

Updated on June 6

You can search for Claude Code in the official VS Code extension marketplace and select the extension shown in the image to install it.

After installation, the Claude Code plugin interface will appear in the right sidebar. This means the installation was successful.

Use the shortcut Ctrl + , to open the Settings menu, then enter Claude Code in the search bar to open the Claude Code settings menu.

Find:

  • Claude Code: Disable Login Prompt: check this option to disable the login guide pop-up so the web login page no longer appears.
  • Claude Code: Environment Variables: click Edit in settings.json to edit the configuration file.

Enter the following configuration:

Code block JSON
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://tokenadvent.com",
    "ANTHROPIC_AUTH_TOKEN": "sk-xxxxxxxxx",
    "ANTHROPIC_MODEL": "claude-opus-4-8",
    "CLAUDE_CODE_ATTRIBUTION_HEADER": "0"
  },
  "alwaysThinkingEnabled": true,
  "effortLevel": "medium"
}

Configuration Notes

  • ANTHROPIC_AUTH_TOKEN: replace this with the real key you obtained from the platform.
  • ANTHROPIC_MODEL: replace this with the model name you want to use.
  • effortLevel: replace this with the thinking intensity you want to use.
  • Supported levels: low, medium, high.

After the settings are complete, save them and restart VS Code to use it normally.