[BUG] VSCode extension ignores claude environment settings

Open 💬 2 comments Opened Jun 29, 2026 by illegalnumbers

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When using the VS Code extension and setting claudeCode.environmentVariables the environment variables including ANTHROPIC_BASE_URL, DISABLE_TELEMETRY, CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS and CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC are ignored which causes the plugin to not start or authenticate. When enabling the terminal with these set they are all respected. It would be nice to have the rich GUI experience of the plugin.

What Should Happen?

All the shell variables should load properly and be respected by the plugin.

Error Messages/Logs

Steps to Reproduce

  1. Add claudeCode.environmentVariables to your user settings in VS Code for a workspace and have the following variables set ANTHROPIC_AUTH_TOKEN, `ANTHROPIC_BASE_URL', 'DISABLE_TELEMETRY', 'CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC', 'PATH', 'CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS'.
  2. Launch the plugin in VS Code.
  3. Note these configuration settings are not respected

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.119 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

The terminal extension of VS Code does respect these, so this is strange.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗