[BUG] VSCode extension ignores `managed-settings.json` authentication settings

Status Fixed / completed
Maintainer reply ✓ Yes — blois
Activity 8 comments · opened Oct 8, 2025 · closed Oct 13, 2025
💡 Likely answer: A maintainer (blois, 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?

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

  1. create a managed-settings.json file as appropriate for your platform
  2. set the contents to
{
  "forceLoginMethod": "console"
}
  1. 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_

View original on GitHub ↗

8 Comments

github-actions[bot] · 1 year ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/8522
  2. https://github.com/anthropics/claude-code/issues/6313
  3. https://github.com/anthropics/claude-code/issues/8500

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

DougEdey-Slice · 1 year ago

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

minhio · 1 year ago

experiencing the same issue with ~/.claude/settings.json

blois collaborator · 1 year ago

Broadly, 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.

DougEdey-Slice · 1 year ago

Thanks @blois , I've updated the title

blois collaborator · 1 year ago

This should now be fixed.

DougEdey-Slice · 1 year ago

@blois when will the fix be released?

github-actions[bot] · 11 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.