[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
- Set the ANTHROPIC_BASE_URL env var to a dummy value in ~/claude/settings.json as above
- Open the new VS Code extension
- 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_
28 Comments
See some other reports in this reddit thread: https://www.reddit.com/r/ClaudeAI/comments/1ntt821/how_to_specify_anthropic_base_url_for_vscode/
Found 2 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Investigating now - we should be respecting the managed settings!
In the meantime, FYI you can still access the old extension by running
claudein the built-in terminal (or the external terminal and using the/idecommand)@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.@nadzinski i guess current workaround is to stick to 1.0.127 ?
You can continue to run
claudein the built-in terminal (or an external terminal) to use the terminal with old IDE integration!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" />
I'm facing the same issue when connecting the Claude Code for VS Code extension (v2.0.0) to a litellm proxy.
@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
claudein 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.To disable the login screen of the extension, you should be able to set
CLAUDE_CODE_SKIP_AUTH_LOGINtotruein 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" />
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):
Then reload your shell to apply the changes:
@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
for people using bedrock with env vars:
export CLAUDE_CODE_SKIP_AUTH_LOGIN=trueto whatever you're loading (.zshrc, etc)<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_MODELandANTHROPIC_SMALL_FAST_MODELenv vars.@micaelmalta - Claude Code should still be respecting env variables from settings.json.
As a test, I just added to settings.json:
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.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_URLconfig for which I initially reported the bug. I now longer see a login screen. Anyone else having success with the new version?@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)
<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.
This appears to be fixed in
2.0.21.I had to restart VSCode to get this working.
Maybe I'm doing something wrong, but even on 2.0.26, my
~/.claude/settings.jsonseems to be ignored.I’m seeing the similar behavior on
2.0.31and have opened #11027.From what I can tell,
CLAUDE_CODE_USE_BEDROCKisn’t being read from<project_root>/.claude/settings.json. Both issues appear to have the same root cause: VS Code extension ignoringsettings.jsonwhen deciding whether or not to display the sign-in screen.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:
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.
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.
still persisting
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.
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.
There is a workaround. I'm using LiteLLM as a proxy service by adding
"claudeCode.disableLoginPrompt": trueand configuring environment variables forLITELLM_PROXY_API_KEY and LITELLM_PROXY_URLin 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+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.