Login with 'Team' plan incorrectly detected as 'Free' plan and usage prohibited

Resolved 💬 20 comments Opened Aug 8, 2025 by HenriNext Closed Aug 8, 2025
💡 Likely answer: A maintainer (gpeal, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.16.0 [EDIT: also 0.19.0]

Which model were you using?

gpt-5

What platform is your computer?

Darwin 24.2.0 arm64 arm

What steps can reproduce the bug?

  1. Select 'use ChatGPT account' when prompted for login in Codex CLI
  2. Authenticate in browser with an account that has ChatGPT Team plan
  3. Type /status and press enter
  4. Observe login info showing: `Signed in with ChatGPT

• Login: xxx@xxx.com
• Plan: Free`

  1. Type any prompt and press enter
  2. Observe response: 🖐 Usage not included with the plan

What is the expected behavior?

  1. Login detected as Plan: Team
  2. Codex CLI usage allowed via ChatGPT Team plan

What do you see instead?

  1. Plan detected as Plan: Free
  2. Codex CLI usage not allowed via ChatGPT plan

Additional information

_No response_

View original on GitHub ↗

20 Comments

HenriNext · 11 months ago

Version 0.19.0 has still the same problem

seop-archisketch · 11 months ago

Waited for the 0.19.0 release, but still has the same problem. Team Plan is considered Free on /status

natzgg · 11 months ago

I'm having the same issue. How to change the plan?

357749948 · 11 months ago

I'm having the same issue.plus.

HenriNext · 11 months ago

@natzgg If you want to change to use a different account that has a different plan, you just do /logout and then start again. But the problem discussed in this issue is not "changing the plan", but that Team plan being detected as Free plan.

hiddow · 11 months ago

Same issue here!

gpeal contributor · 11 months ago

Duplicate of #1977

hongfeiyang · 11 months ago

Same issue

MILKMILKKING · 11 months ago

Same issue

MILKMILKKING · 11 months ago

Codex CLI logs in but still shows Free account, cannot use Team subscription

After installing @openai/codex and logging in, the CLI still shows my account as Free, so I cannot use features that require a subscription.

My situation:
• I have a ChatGPT Team subscription.
• The Team account was created later, while I also have an older personal ChatGPT (Free) account. Both use the same Gmail login method.
• When logging into Codex CLI, the browser may default to my older personal account (Free workspace), even though I have switched to the Team workspace in the ChatGPT web UI.
• I have tried logging out, clearing cache, switching workspaces in the web UI, and using incognito mode to reauthorize, but the CLI still doesn’t detect the Team subscription.
• There is no OPENAI_API_KEY set in my environment variables.
• The Team features work fine in the web UI.

Steps to reproduce:

  1. Install Codex CLI:

npm install -g @openai/codex
codex --version # latest version

  1. In the ChatGPT web UI, switch to the Team workspace (avatar → Workspaces → select Team)
  2. Run codex login → choose Sign in with ChatGPT
  3. After login, the CLI still shows Free account status

Expected result:
The CLI should recognize the Team subscription after login and unlock the corresponding features.

Possible cause:
• The login flow binds to the current browser session, but my browser defaults to the old account’s Free workspace.
• Codex CLI may not be handling multiple Google accounts correctly and is not picking the Team account.

Question:
Is there a way to force Codex CLI to select/target the Team workspace during login, or otherwise ensure that in multi-account scenarios it recognizes the Team subscription?

jimmyn · 11 months ago

I'm facing the same issue

LuigiPagani · 11 months ago

same issue

thejeed · 11 months ago

@MILKMILKKING almost exactly describes my problem, as well. The only difference is that I don't log in with GMail, but with user/password. The rest is the same: There's an old free account I used before starting our Team subscription.

So... +1

Granluke · 11 months ago

Same issue here

robin-liquidium · 11 months ago

facing the same issue

samuelbirocchi · 11 months ago

I can't even login. When I try I get the following error:

Route Error (400 ): {
"error": {
"message": "No eligible ChatGPT workspaces found.",
"type": "invalid_request_error",
"param": null,
"code": "chatgpt_account_missing"
}
}

murilocurti · 11 months ago
I can't even login. When I try I get the following error: Route Error (400 ): { "error": { "message": "No eligible ChatGPT workspaces found.", "type": "invalid_request_error", "param": null, "code": "chatgpt_account_missing" } }

same here codex version 0.19.0

willenbug · 11 months ago

Some updated instructions from another thread (original credit to @mrairdon-midmark).

This works on Linux, Mac OS, and Windows if installed under WSL:

  1. Login to your account in Codex CLI (it won't work, but do it anyway)
  2. In any browser, navigate to chatgpt.com, login, and select your team on the bottom-left
  3. Open web dev tools (Right-click anywhere on the page, click "Inspect")
  4. Go to the "Console" tab
  5. Type "allow pasting" and press enter
  6. Copy-and-paste: javascript:alert(document.cookie.match(/(?:^|;\s*)_account=([^;]*)/)?.[1] || 'Cookie not found'); and press enter
  7. That pop-up is your account ID, use it to replace the current account id in the ~/.codex/auth.json file. Do not change anything else
mikem-coalesce · 5 months ago

anyone found a better workaround to this? latest Codex desktop application 260208.1016 (571) and I still can't login with our company Workspace, stuck on personal, even with edits to the ~/.codex/auth.json with the non-personal Account ID ..

I can switch to the Workspace at chatgpt.com but not from Codex desktop ..

etraut-openai contributor · 5 months ago

@mikem-coalesce, this issue was resolved and closed many months ago. If you're experiencing a problem today, it's almost definitely a different issue even if the symptoms might appear similar. Please look for an active bug report, and if you can't find one, file a new one. Thanks!