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

Open 💬 31 comments Opened Sep 1, 2025 by 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.”"
  • 2. 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 ?

View original on GitHub ↗

30 Comments

slyapustin · 10 months ago

Same issue.
First time Claude Code user and can't login with my Org Team plan.
https://github.com/anthropics/claude-code/issues/6996

matthewkturner · 10 months ago

Same issue.

matthewkturner · 10 months ago

I was actually able to resolve this by having my Org Team admin invite me to Anthropic Console as a developer (they are separately managed). Once this was enabled it gave me the option to chose my organization and it was no longer an issue.

tvpmb · 10 months ago

Setup a team plan, invited team members cannot use it. How did they do that invite to Anthropic Console @matthewkturner ?

marinheiromc · 10 months ago

Same issue

RonanCodes · 10 months ago

I'm also seeing this issue this evening.

<img width="1780" height="450" alt="Image" src="https://github.com/user-attachments/assets/f1af9557-8791-4442-aaba-869721e166af" />

If I log in via the console API then it's not the team account, it asks me to add credits.

ld-nesto · 10 months ago

Same issue

revmischa · 10 months ago
I'm also seeing this issue this evening. <img alt="Image" width="1780" height="450" src="https://private-user-images.githubusercontent.com/6930753/486346761-f1af9557-8791-4442-aaba-869721e166af.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTczOTI3MzQsIm5iZiI6MTc1NzM5MjQzNCwicGF0aCI6Ii82OTMwNzUzLzQ4NjM0Njc2MS1mMWFmOTU1Ny04NzkxLTQ0NDItYWFiYS04Njk3MjFlMTY2YWYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDkwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTA5MDlUMDQzMzU0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTI5MTk0MWRlYTAwMjU1NDljOGI4NzViNGY0MzdkMmZhZDUxMDllODVjYzBhNGI0OGQzYzE0MDRjNzhkNmFkMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.EHKMaIU1rgffYp_e0XU_EdgVft0HhAHm6J0bWslRljY"> If I log in via the console API then it's not the team account, it asks me to add credits.

Same for me

aadarsh-gupta-thena · 10 months ago

Getting same issue

c-wygoda · 10 months ago

had the same until assigned the "Premium" tier which has Claude Code access. The auth flows and messages are really not the most helpful, I have to say.

<img width="362" height="264" alt="Image" src="https://github.com/user-attachments/assets/5c3538d3-0ed6-4797-a1a3-403c4a0075d0" />

niltonfrederico · 10 months ago

Same problem

hemanshu16 · 10 months ago

same problem

jason-greenberg · 10 months ago

same problem

pmayostendorp · 10 months ago

Same problem with a brand new Teams account. We are at Standard tier, I was added by the Primary User role, am myself just a User. Going in circles. 🤪

0xTimepunk · 10 months ago

Hey, this is causing trouble for us

bhill00 · 10 months ago

If I read correctly, personal pro account includes claude code, teams standard does not. So I'm thinking you would need to assign a premium role to a user in teams to use claude code without api billing?

pmayostendorp · 10 months ago

Since this appears to be getting little attention, I will just lob some additional screenshots of the problem to show how maddening this can be for the user. Following the quickstart guide, I begin by installing Claude Code via npm, then pick a color scheme, then enter the authentication workflow. Note that I already have authenticated and have an active session

  1. I'm prompted to select an account type. Being on a Team account, I select option 1.

<img width="883" height="558" alt="Image" src="https://github.com/user-attachments/assets/0c3c68ca-346f-4d93-8db0-b52064fa100a" />

  1. I am redirected to a page that clearly recognizes I am _already_ authenticated on a Team account, but tells me to use option 2 instead.

<img width="855" height="291" alt="Image" src="https://github.com/user-attachments/assets/530385e7-9e76-4cbf-b37e-cad81bfd506b" />

  1. I restart Claude Code and select option 2.

<img width="844" height="471" alt="Image" src="https://github.com/user-attachments/assets/f7c573d3-360b-4c52-8904-bfb1a14309ed" />

  1. I am prompted to create an account. I choose "Organization" because I already belong to an Organization.

<img width="843" height="596" alt="Image" src="https://github.com/user-attachments/assets/e78159a7-82e4-441d-b76d-93eca04d0542" />

  1. I am prompted to create an organization. There appears to be no option to sign into an existing organization account.

<img width="564" height="1009" alt="Image" src="https://github.com/user-attachments/assets/809c2bd0-3974-43ec-9a2b-9a4c3e51b3e7" />

  1. A small part of me dies.

Now if I completely log out of my Anthropic account on my browser and proceed up to step 2, I now see:

<img width="556" height="595" alt="Image" src="https://github.com/user-attachments/assets/4a5caa89-164a-4d61-99e8-59edd4aceafb" />

Progress! Anthropic sends me an email with a sign-in link. But no, I'm once again sent to the " you have a Teams account" page again. 😫

brenitcontact · 10 months ago

You cannot use claude teams standard accounts with option number 1, they do not have claude access which is why it is telling you to use the api. If you were to be assigned a teams premium seat, the number 1 option would work.

The issue isn't that it isn't working, the issue is that it is poorly conveyed what the problem is.

pmayostendorp · 10 months ago

It isn’t working as described, therefore I still consider this a bug.

scmac000 · 10 months ago

Log into Claude AI on the web and go to Settings --> Members, and check that you are assigned a Seat Type in your org. Mine was unassigned and was causing the same problems described above.

pmayostendorp · 10 months ago
Log into Claude AI on the web and go to Settings --> Members, and check that you are assigned a Seat Type in your org. Mine was unassigned and was causing the same problems described above.

Thank you @scmac000 a good suggestion, but I'm already assigned to Standard.

brenitcontact · 10 months ago

That's because it only works with a premium seat.

pmayostendorp · 10 months ago

@brenitcontact you are absolutely right and the docs state it very plainly. They just need to fix their auth workflow so as not to endlessly frustrate users.

sixthh-sense · 7 months ago

Same prob
have both personal account & team account w/ same email
I've switched to team account in the browser after clearing cache & uninstalling/installing claude code cli
and it ALWAYS directs me to my personal account, not the team account.

  • I've contacted my team administrator and definitely acknowledged my team account was activated and my seat was secured

(all other team members have no prob in using their clis w/ team account w/ same settings)

i hope this issue will be solved quickly and surely as possible. Will track this issue

Portekoi · 7 months ago
github-actions[bot] · 6 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

carlpaten · 6 months ago

I found what the issue was for me: in my Teams account I have a standard seat, not a premium seat, so I'm not allowed to use Claude Code.

This is not documented anywhere in the settings page or in the Claude Code authentication page.

r1di · 6 months ago

Locking 'Claude Code' behind a 5x paywall

for Teams while it's accessible on individual plans is bad practice. It makes no sense to penalize team administration with fewer features unless we pay an exorbitant fee. We are now looking into switching to Codex (OpenAl/GitHub Copilot), as their team tiers don't seem to force such a drastic trade-off between

management features and model access.

dbaloyverse · 5 months ago

I just bought a Team account with one premium seat and four standard seats to use company-level Claude Code for team members who don't actively develop but do work with code. However, they cannot log in — they get some strange error message. But if they use my account with the premium seat, it works fine.

In this case, it would be better to use one $200 subscription for the whole team instead of a Team subscription. Also, it's not described anywhere in the terms of use that standard seats don't provide Claude Code access.

<img width="2371" height="957" alt="Image" src="https://github.com/user-attachments/assets/94f30f3f-fa11-48ae-b3b6-04b5df5d117a" />

Howard-Cui · 5 months ago

We just having the same issue, all "standard" seat user with non-primary owner access were not able to access claude code. the solution is:

  1. ask admins to go to member
  2. set users' seat to "No seat assigned"
  3. set user's seat back to standard

then they will have access to claude code

Showing cached comments. Read the full discussion on GitHub ↗