[BUG] New VS Code Extension does not recognize ANTHROPIC_BASE_URL and shows login screen

Resolved 💬 28 comments Opened Sep 30, 2025 by nadzinski Closed Jan 18, 2026
💡 Likely answer: A maintainer (hackyon-anthropic, collaborator) responded on this thread — see the highlighted reply below.

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?

My company uses Claude Code with an LLM behind LiteLLM. To make that work we set ANTHROPIC_BASE_URL to our LiteLLM url. We do this in /etc/claude-code/managed-settings.json, like so:

   "env": {
        "ANTHROPIC_BASE_URL": "<URL>",
        ...
    }

With the new VS Code Extension (since at least 2.0.0), it just immediately shows us an anthropic login screen. There is no clear way to force it to use a different LLM backend.

Consequently the new VS Code Extension is completely broken for us.

What Should Happen?

We can use the new VS Code extension with a custom ANTHROPIC_BASE_URL

Error Messages/Logs

Steps to Reproduce

  1. Set the ANTHROPIC_BASE_URL env var to a dummy value in ~/claude/settings.json as above
  2. Open the new VS Code extension
  3. Instead of trying to connect to the ANTHROPIC_BASE_URL, the extension always shows an anthropic login screen.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

1.0.127

Claude Code Version

2.0.1

Platform

AWS Bedrock via LiteLLM

Operating System

macOS

Terminal/Shell

VS Code Extension

Additional Information

_No response_

View original on GitHub ↗

28 Comments

nadzinski · 9 months ago
github-actions[bot] · 9 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/8500
  2. https://github.com/anthropics/claude-code/issues/8400

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

hackyon-anthropic collaborator · 9 months ago

Investigating now - we should be respecting the managed settings!

In the meantime, FYI you can still access the old extension by running claude in the built-in terminal (or the external terminal and using the /ide command)

nadzinski · 9 months ago

@hackyon-anthropic thanks! FWIW, I tried moving my managed-settings.json to <repo root>/.claude/settings.json, but the extension still showed a login screen.

y-nk · 9 months ago

@nadzinski i guess current workaround is to stick to 1.0.127 ?

hackyon-anthropic collaborator · 9 months ago

You can continue to run claude in the built-in terminal (or an external terminal) to use the terminal with old IDE integration!

gaiar · 9 months ago

Same issue, when using Claude Code via AWS Bedrock

<img width="835" height="770" alt="Image" src="https://github.com/user-attachments/assets/c25981fe-1d52-4dcf-b23f-cb2dc5230672" />

Brolywood · 9 months ago

I'm facing the same issue when connecting the Claude Code for VS Code extension (v2.0.0) to a litellm proxy.

nadzinski · 9 months ago
@nadzinski i guess current workaround is to stick to 1.0.127 ?

@y-nk yes; we have pinned everyone here to 1.0.127 of the VS Code extension for now until this is fixed. Although like @hackyon-anthropic says, it does work if you run claude in the terminal, but most developers at our company are used to launching with the Claude icon, so pinning to the older version seemed like the best option.

blois collaborator · 9 months ago

To disable the login screen of the extension, you should be able to set CLAUDE_CODE_SKIP_AUTH_LOGIN to true in the env variables (most likely in the VSCode extension env variables).

timfallmk · 9 months ago
To disable the login screen of the extension, you should be able to set CLAUDE_CODE_SKIP_AUTH_LOGIN to true in the env variables (most likely in the VSCode extension env variables).

@blois Not sure I'm doing this right, but I get the same JSON error loop.

<img width="852" height="228" alt="Image" src="https://github.com/user-attachments/assets/fce7dc7a-6445-4b26-bd14-42d1647c8d03" />

<img width="2742" height="754" alt="Image" src="https://github.com/user-attachments/assets/53c96e06-b050-4928-aaab-372d05d14614" />

micaelmalta · 9 months ago

Claude Code v2 no longer appears to load environment variables from settings.json.
As a workaround, you can manually export them in your shell configuration (e.g., .zshrc):

echo 'export ANTHROPIC_AUTH_TOKEN="xxx" ANTHROPIC_BASE_URL="xxx"' >> ~/.zshrc

Then reload your shell to apply the changes:

source ~/.zshrc
y-nk · 9 months ago

@micaelmalta my setup is with env vars since the beginning. bug still appears regardless with latest 2.0.9. last i tested was about 2hrs ago

y-nk · 9 months ago

for people using bedrock with env vars:

  1. add export CLAUDE_CODE_SKIP_AUTH_LOGIN=true to whatever you're loading (.zshrc, etc)
  2. open vscode
  3. change the model with the Select Model command

<img width="591" height="531" alt="Image" src="https://github.com/user-attachments/assets/ec656de5-807b-4f97-a609-f30aadca5ce2" />

now it'd be nice if the model selected was respecting ANTHROPIC_MODEL and ANTHROPIC_SMALL_FAST_MODEL env vars.

blois collaborator · 9 months ago

@micaelmalta - Claude Code should still be respecting env variables from settings.json.

As a test, I just added to settings.json:

"env": {
    "TESTING_KEY": "a secret value: 12345"
  }

Then had the model echo it: echo the value of the env variable "TESTING_KEY". I've seen a few reports that these env variables are not respected but we have not been able to repro it ourselves.

nadzinski · 9 months ago

Although this bug is still open, I tried with the newest v2.0.10 and it now works (fixed?), at least for the specific ANTHROPIC_BASE_URL config for which I initially reported the bug. I now longer see a login screen. Anyone else having success with the new version?

tomgabay · 9 months ago

@nadzinski i do not see the logic screen any more, when configuring settings from settings.json
how ever nothing works, im stuck on the "thinking" animation
(CLI works ofc)

shalevbell · 9 months ago
> To disable the login screen of the extension, you should be able to set CLAUDE_CODE_SKIP_AUTH_LOGIN to true in the env variables (most likely in the VSCode extension env variables). @blois Not sure I'm doing this right, but I get the same JSON error loop. <img alt="Image" width="852" height="228" src="https://private-user-images.githubusercontent.com/5316117/498044514-fce7dc7a-6445-4b26-bd14-42d1647c8d03.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTk5MTY1MzksIm5iZiI6MTc1OTkxNjIzOSwicGF0aCI6Ii81MzE2MTE3LzQ5ODA0NDUxNC1mY2U3ZGM3YS02NDQ1LTRiMjYtYmQxNC00MmQxNjQ3YzhkMDMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MTAwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTEwMDhUMDkzNzE5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTczNzE5YzE0YzlhMjBkZDM2NWQ0MzI0MzE2ZTEyNWMyM2ZiODdkMDZhZGJmNWZmOWNlMWRiOTc0N2VlMGI5NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.swg6CUJA_Y-YauSVnzb3MRUiWfjWwAzLB6WN2e8P2Yw"> <img alt="Image" width="2000" height="754" src="https://private-user-images.githubusercontent.com/5316117/498044535-53c96e06-b050-4928-aaab-372d05d14614.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTk5MTY1MzksIm5iZiI6MTc1OTkxNjIzOSwicGF0aCI6Ii81MzE2MTE3LzQ5ODA0NDUzNS01M2M5NmUwNi1iMDUwLTQ5MjgtYWFhYi0zNzJkMDVkMTQ2MTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MTAwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTEwMDhUMDkzNzE5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTEwYjlmYzQwYjRmOGI1NWIwZWRkZTkwNWU0ZDU1NTQyZWI2ZGNjZDQ1Yjc0N2VmYzFlMWNhNjk4ZTM0NTE2MyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.bl9TcRmOxlyQ6PVtnEl7cnPOY8rpIoT2gcC3IN8-6nQ">

<img width="634" height="242" alt="Image" src="https://github.com/user-attachments/assets/18955e87-d5bc-434f-b040-b855ed317dab" />

This way of setting the env var worked for me, it skipped the login screen and is working with the ANTHROPIC_BASE_URL.

lakshmikantdeshpande · 9 months ago

This appears to be fixed in 2.0.21.
I had to restart VSCode to get this working.

Manouchehri · 8 months ago

Maybe I'm doing something wrong, but even on 2.0.26, my ~/.claude/settings.json seems to be ignored.

nozaq · 8 months ago

I’m seeing the similar behavior on 2.0.31 and have opened #11027.
From what I can tell, CLAUDE_CODE_USE_BEDROCK isn’t being read from <project_root>/.claude/settings.json. Both issues appear to have the same root cause: VS Code extension ignoring settings.json when deciding whether or not to display the sign-in screen.

Shanayara · 8 months ago

I was getting lots of "API Error: 404 no Route matched with those values" in the new extension. What worked for me was explicitly setting the model with "claudeCode.selectedModel": "claude-sonnet-4" instead of setting it via the ANTHROPIC_MODEL environment variable; it seems like that one is ignored by the new extension.

If it doesn't work to set the environment variables like this:

"claudeCode.environmentVariables": [
        {"name": "ANTHROPIC_BEDROCK_BASE_URL", "value": "xxxx"},
        {"name": "AWS_BEARER_TOKEN_BEDROCK", "value": "xxxx"},
        {"name": "CLAUDE_CODE_USE_BEDROCK", "value": "1"},
        {"name": "DISABLE_TELEMETRY", "value": "1"},
    ],

Then you can also set your environment variables on your system, for instance in Windows via your user's system-wide env variables. In that case you need to restart VS Code process so that the claude process can see the changes.

github-actions[bot] · 7 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

jtatum · 6 months ago

still persisting

github-actions[bot] · 5 months ago

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

marcindulak · 5 months ago

This issue was closed incorrectly despite recent human comments. This behavior of the bot is reported at https://github.com/anthropics/claude-code/issues/16497. Please upvote that issue, so maybe it gets noticed.

shaunyogeshwaran · 5 months ago

There is a workaround. I'm using LiteLLM as a proxy service by adding "claudeCode.disableLoginPrompt": true and configuring environment variables for LITELLM_PROXY_API_KEY and LITELLM_PROXY_URL in my VS Code settings. This routes Claude Code requests through LiteLLM to my preferred backend, avoiding the Anthropic login screen. This works with Claude Code 2.0.0+

github-actions[bot] · 5 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.