Skip to content

🐛 Bug Report: Unable to log in to Claude Code CLI with Teams (organization) account #6952

Description

@Mel-TB

Duplicate of #199

I am part of a Claude AI Teams organization, and everything works fine on the web interface.

However, when I try to log in via the Claude Code CLI, it only connects to my personal account, not the one related to the company.
My colleagues in the same organization, invited the same way and with the same role as me (non-admin members), can log in wihtout any problem.
I am not the org admin, onlu one colleague is, but aside from that, all members share the same role.

Steps to Reproduce

  1. Install the claude CLI
  2. Run the command
claude 
  1. Choose option 2 (because when I use 1, it redirects me to a page asking to choose 2
  2. Authenticate using my email linked to the Teams orgs ( the same as the personal)
  3. Result: CLI connects only to my personal account

Current Behavior

  • CLI ignores the Teams organization and defaults to my personal account

Expected Behavior

  • Be able to log in and use my Claude Teams (organization) account, just like my colleagues

Workarounds Tried
I have already tried the suggestion from issue #377:

  • Cleared local CLI config/cache
  • Reinstalled the CLI
  • Tried both login options:
      1. Claude account with subscription -> redirect me to a page "To log into Claude Code with Teams, start Claude Code and login with “2. Anthropic Console account.”"
      1. Anthropic Console Account -> doesn't recognize the Teams subscription
  • Tried different shells (Git Bash, PowerShell)

None of these resolved the issue

Additional Information

  • Not an admin, but same role as colleagues who can log in successfully
  • Personal and professional share the same email
  • CLI version: 1.0.98

Questions

  • Is there a way to force the CLI to use the Team organization account ?
  • Does the CLI cache a personal account somewhere (and should I clear it differently?)
  • Could this be a bug with account linking when both a personal and Teams account exist ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:authbugSomething isn't workinghas reproHas detailed reproduction stepsstaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions