Skip to content

[BUG] Claude Code connects to Pro Account instead of selected Team organization #12740

Description

@Portekoi

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?

Bug: Claude Code connects to Pro Account instead of selected Team organization

Description

Claude Code consistently connects to my Pro account instead of my Team plan, despite explicitly selecting the Team organization during the authentication process.

Environment

  • Claude Code Version: 2.0.55
  • OS: Windows
  • Account setup: Single email address with access to multiple organizations (Pro + Team)

Steps to Reproduce

  1. Run claude auth logout
  2. Run claude auth login
  3. Complete browser authentication
  4. Explicitly select the "Team plan" organization from the organization selector
  5. Complete authentication
  6. Run claude auth status

Expected Behavior

Claude Code should connect to the selected Team organization and claude auth status should display:

Login method: Team Account (or similar)
Organization: [Team Organization Name]

Actual Behavior

claude auth status shows:

Version: 2.0.55
Session ID: [session-id]
Login method: Claude Pro Account
Organization: [user-email]'s Organization
Email: [user-email]

The Pro account is used instead of the Team organization, despite the Team organization being explicitly selected during authentication.

Additional Context

  • Both organizations (Pro and Team) use the same email address
  • The Team organization is properly selected and active in the web interface (claude.ai)
  • The organization selector clearly shows both "Personal (Pro plan)" and "Team organization name (Team plan)" options
  • This appears to be an authentication/organization selection persistence issue

Workaround Attempted

None successful so far. The authentication process doesn't seem to respect the organization selection when multiple organizations exist under the same email.

What Should Happen?

Claude Code should authenticate using the organization explicitly selected during the browser login flow. When selecting the Team plan organization, claude auth status should reflect this choice and use the Team account, not default to the Pro account.

Error Messages/Logs

Steps to Reproduce

  1. Have access to both Pro and Team organizations with the same email
  2. Run claude auth logout
  3. Run claude auth login
  4. In the browser, select the Team plan organization (not Personal/Pro)
  5. Complete authentication
  6. Run claude auth status
  7. Observe that it shows "Login method: Claude Pro Account" instead of Team

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

v2.0.55

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:authbugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions