[BUG] VSCode extension ignores `managed-settings.json` authentication settings
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 newest VSCode Extension (2.0.10, anthropic.claude-code) the managed-settings.json appears to be ignored
For example, on mac /Library/Application\ Support/ClaudeCode/managed-settings.json
{
"forceLoginMethod": "console",
"forceLoginOrgUUID": "<SNIP>"
}
This works when using claude on the command line, I get Login method pre-selected: API Usage Billing (Anthropic Console) and the login flow works without issue
When using the VSCode Extension, I get prompted to select my log in method, and the default is Claude.ai Subscription
<img width="525" height="646" alt="Image" src="https://github.com/user-attachments/assets/4c8f9241-448d-4fb7-86cf-d943c3901140" />
What Should Happen?
The VSCode Claude Extension should respect the contents of managed-settings.json
Error Messages/Logs
N/A
Steps to Reproduce
- create a
managed-settings.jsonfile as appropriate for your platform - set the contents to
{
"forceLoginMethod": "console"
}
- From the VSCode Claude Extension run
/login
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
1.x
Claude Code Version
2.0.10
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
8 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
While this is similar to the linked issues, those are focused on specific parts of the managed settings files, but this issue is about it ignoring the complete file
experiencing the same issue with
~/.claude/settings.jsonBroadly, the managed-settings.json file should be respected, but there is an issue where authentication from the managed-settings.json file is not being respected by the IDE. Working on a fix for this now.
Thanks @blois , I've updated the title
This should now be fixed.
@blois when will the fix be released?
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.