Skip to content

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

Closed

Description

@HenriNext

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
  5. Type any prompt and press enter
  6. 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

Activity

  1. HenriNext commented on Aug 8, 2025

    @HenriNext
    Author

    Version 0.19.0 has still the same problem

  2. seop-archisketch commented on Aug 8, 2025

    @seop-archisketch

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

  3. natzgg commented on Aug 8, 2025

    @natzgg

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

  4. 357749948 commented on Aug 8, 2025

    @357749948

    I'm having the same issue.plus.

  5. HenriNext commented on Aug 8, 2025

    @HenriNext
    Author

    @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.

  6. hiddow commented on Aug 8, 2025

    @hiddow

    Same issue here!

  7. gpeal commented on Aug 8, 2025

    @gpeal
    Contributor

    Duplicate of #1977

  8. hongfeiyang commented on Aug 8, 2025

    @hongfeiyang

    Same issue

  9. MILKMILKKING commented on Aug 8, 2025

    @MILKMILKKING

    Same issue

  10. MILKMILKKING commented on Aug 8, 2025

    @MILKMILKKING

    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

    2.	In the ChatGPT web UI, switch to the Team workspace (avatar → Workspaces → select Team)
    3.	Run codex login → choose Sign in with ChatGPT
    4.	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?

  11. jimmyn commented on Aug 8, 2025

    @jimmyn

    I'm facing the same issue

  12. LuigiPagani commented on Aug 8, 2025

    @LuigiPagani

    same issue

  13. thejeed commented on Aug 8, 2025

    @thejeed

    @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

  14. Granluke commented on Aug 8, 2025

    @Granluke

    Same issue here

  15. robin-liquidium commented on Aug 8, 2025

    @robin-liquidium

    facing the same issue

  16. samuelbirocchi commented on Aug 8, 2025

    @samuelbirocchi

    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"
    }
    }

  17. murilocurti commented on Aug 8, 2025

    @murilocurti

    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

  18. willenbug commented on Aug 8, 2025

    @willenbug

    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
  19. mikem-coalesce commented on Feb 9, 2026

    @mikem-coalesce

    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 ..

  20. etraut-openai commented on Feb 9, 2026

    @etraut-openai
    Contributor

    @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!

  21. locked as resolved and limited conversation to collaborators on Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions