Skip to content

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

Description

@DougEdey-Slice

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

Image

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

Metadata

Metadata

Assignees

Labels

area:autharea:idebugSomething isn't workinghas reproHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOS

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions