[BUG] [FIX] VS Code Extension does not recognize ANTHROPIC_BASE_URL and shows login screen
Resolved 💬 4 comments Opened Jan 23, 2026 by shaunyogeshwaran Closed Mar 12, 2026
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?
Fixed issue #8522 by configuring "claudeCode.disableLoginPrompt": true and adding LiteLLM proxy environment variables (LITELLM_PROXY_API_KEY and LITELLM_PROXY_URL) in VS Code settings. This solution bypasses the login screen and routes requests through LiteLLM to custom backends, providing a working alternative to the unsupported ANTHROPIC_BASE_URL feature.
I'd assume this works with other 3rd party providers too
What Should Happen?
Claude Code should respect environment variables for custom backends and bypass the Anthropic login screen when configured with alternative LLM providers.
Error Messages/Logs
Steps to Reproduce
- Install Claude Code 2.0.0+
- Set ANTHROPIC_BASE_URL in environment or configuration file
- Open VS Code and try to use Claude Code
- Observe that Claude Code ignores the custom URL and displays Anthropic login screen
- Unable to proceed with custom LLM backend configuration
Claude Model
Not sure / Multiple models
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.17
Platform
Other
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗