OpenAI does Not work when trying with Organization Subscription #4579

Closed
opened 2026-02-16 17:44:39 -05:00 by yindo · 18 comments
Owner

Originally created by @shoaibsharif on GitHub (Jan 9, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Hi, I have trying to login with my Organization Pro subscription. this is what i get. Is this expected behavior?

Image

Plugins

none

OpenCode version

1.1.11

Steps to reproduce

  1. Go to opencode auth login
  2. connect openai pro/plus subscription
  3. complete authentication
  4. just type anything
  5. It throws error: "Usage not included in your plan"

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @shoaibsharif on GitHub (Jan 9, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Hi, I have trying to login with my Organization Pro subscription. this is what i get. Is this expected behavior? <img width="3136" height="1050" alt="Image" src="https://github.com/user-attachments/assets/fa0352d6-1121-4469-8140-b4c267c90ab7" /> ### Plugins none ### OpenCode version 1.1.11 ### Steps to reproduce 1. Go to opencode auth login 2. connect openai pro/plus subscription 3. complete authentication 4. just type anything 5. It throws error: "Usage not included in your plan" 6. ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:44:39 -05:00
yindo closed this issue 2026-02-16 17:44:39 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 9, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7550: opentui: TUI crashes after successful native OpenAI account connection (TypeError: local.agent.current() is undefined) - Also involves OpenAI authentication
  • #7565: OpenAI auth had fatal error after successful auth - Similar fatal error after authentication in version 1.1.11
  • #1686: Add OpenAI auth login like claude - Feature request for OpenAI subscription-based authentication similar to Claude
  • #7491: [FEATURE]: Verify subscription/model is usable when /connecting it - Related feature request to validate subscription/model usability

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 9, 2026): This issue might be a duplicate of existing issues. Please check: - #7550: opentui: TUI crashes after successful native OpenAI account connection (TypeError: local.agent.current() is undefined) - Also involves OpenAI authentication - #7565: OpenAI auth had fatal error after successful auth - Similar fatal error after authentication in version 1.1.11 - #1686: Add OpenAI auth login like claude - Feature request for OpenAI subscription-based authentication similar to Claude - #7491: [FEATURE]: Verify subscription/model is usable when `/connect`ing it - Related feature request to validate subscription/model usability Feel free to ignore if none of these address your specific case.
Author
Owner

@plxzy255 commented on GitHub (Jan 10, 2026):

Same issue. For some reason opencode sees Business subscription as "x-codex-plan-type: free".

@plxzy255 commented on GitHub (Jan 10, 2026): Same issue. For some reason opencode sees Business subscription as "x-codex-plan-type: free".
Author
Owner

@fatihdogmus commented on GitHub (Jan 10, 2026):

yeah same thing, the new auth flow does not work with bussiness plans

@fatihdogmus commented on GitHub (Jan 10, 2026): yeah same thing, the new auth flow does not work with bussiness plans
Author
Owner

@hezhexi2002 commented on GitHub (Jan 10, 2026):

Hi, I’m experiencing the same issue.
When using a organization subscription, I’m unable to run models properly in opencode.

Could you please share if there has been any update or workaround for this problem? I’d like to follow the latest progress.

Thanks!

@hezhexi2002 commented on GitHub (Jan 10, 2026): Hi, I’m experiencing the same issue. When using a organization subscription, I’m unable to run models properly in opencode. Could you please share if there has been any update or workaround for this problem? I’d like to follow the latest progress. Thanks!
Author
Owner

@OmerFarukOruc commented on GitHub (Jan 10, 2026):

Image
@OmerFarukOruc commented on GitHub (Jan 10, 2026): <img width="990" height="199" alt="Image" src="https://github.com/user-attachments/assets/99081b5f-c4f7-47dd-98c4-f4afc4027e82" />
Author
Owner

@shariqriazz commented on GitHub (Jan 10, 2026):

having the same issue, hope its resolved soon

@shariqriazz commented on GitHub (Jan 10, 2026): having the same issue, hope its resolved soon
Author
Owner

@rekram1-node commented on GitHub (Jan 10, 2026):

merged PR that claims to fix, it lgtm but I can't test it myself, I tested pre-existing functionality and that still works so cutting a release

@rekram1-node commented on GitHub (Jan 10, 2026): merged PR that claims to fix, it lgtm but I can't test it myself, I tested pre-existing functionality and that still works so cutting a release
Author
Owner

@OmerFarukOruc commented on GitHub (Jan 10, 2026):

Let me try @rekram1-node
Is it going to be fixed with v1.1.12?
I guess, I need to wait for https://github.com/anomalyco/opencode/actions/runs/20879328107 to be completed first

@OmerFarukOruc commented on GitHub (Jan 10, 2026): Let me try @rekram1-node Is it going to be fixed with v1.1.12? I guess, I need to wait for https://github.com/anomalyco/opencode/actions/runs/20879328107 to be completed first
Author
Owner

@rekram1-node commented on GitHub (Jan 10, 2026):

yeah it should be

@rekram1-node commented on GitHub (Jan 10, 2026): yeah it should be
Author
Owner

@OmerFarukOruc commented on GitHub (Jan 10, 2026):

Image
@OmerFarukOruc commented on GitHub (Jan 10, 2026): <img width="2318" height="181" alt="Image" src="https://github.com/user-attachments/assets/1a1238e6-f92d-4476-bc07-51572ece3869" />
Author
Owner

@rubencallewaert commented on GitHub (Jan 10, 2026):

Can confirm, not yet fixed.

@rubencallewaert commented on GitHub (Jan 10, 2026): Can confirm, not yet fixed.
Author
Owner

@fatihdogmus commented on GitHub (Jan 10, 2026):

I updated the opencode, then did opencode auth logout and login again at now it seems to be working

@fatihdogmus commented on GitHub (Jan 10, 2026): I updated the opencode, then did opencode auth logout and login again at now it seems to be working
Author
Owner

@rubencallewaert commented on GitHub (Jan 10, 2026):

I updated the opencode, then did opencode auth logout and login again at now it seems to be working

Unfortunately this does not seem to be the case for me despite logging out and in multiple times.

@rubencallewaert commented on GitHub (Jan 10, 2026): > I updated the opencode, then did opencode auth logout and login again at now it seems to be working Unfortunately this does not seem to be the case for me despite logging out and in multiple times.
Author
Owner

@hank9999 commented on GitHub (Jan 10, 2026):

rekram1-node Hi, I analyzed the request, I found a header was missing in the opencode request. chatgpt-account-id
If I add this manually, it's back to working immediately

Update:
I have known how to make it work now. It was fixed in 1.1.12, and need to run command to logout opencode auth logout to refresh account id in credential files! Thank you.

@hank9999 commented on GitHub (Jan 10, 2026): >rekram1-node Hi, I analyzed the request, I found a header was missing in the opencode request. `chatgpt-account-id` If I add this manually, it's back to working immediately Update: I have known how to make it work now. It was fixed in 1.1.12, and need to run command to logout `opencode auth logout` to refresh account id in credential files! Thank you.
Author
Owner

@hank9999 commented on GitHub (Jan 10, 2026):

I updated the opencode, then did opencode auth logout and login again at now it seems to be working

Unfortunately this does not seem to be the case for me despite logging out and in multiple times.

Did you try opencode auth logout?

@hank9999 commented on GitHub (Jan 10, 2026): > > I updated the opencode, then did opencode auth logout and login again at now it seems to be working > > Unfortunately this does not seem to be the case for me despite logging out and in multiple times. Did you try `opencode auth logout`?
Author
Owner

@rekram1-node commented on GitHub (Jan 10, 2026):

talked to others you should only need to reauth and it should work again and make sure you are on 1.1.12

@rekram1-node commented on GitHub (Jan 10, 2026): talked to others you should only need to reauth and it should work again and make sure you are on 1.1.12
Author
Owner

@rubencallewaert commented on GitHub (Jan 10, 2026):

I was on 1.1.12 and I did reauth multiple times, after logging out with opencode auth logout the difference is when I wanted to connect again I did it via the TUI, so in the TUI

/connect

This didn't work.

Now I tried it again with but after opencode auth logout via the cli I also used opencode auth login, this worked. So there's definitely something still broken in the TUI.

@rubencallewaert commented on GitHub (Jan 10, 2026): I was on 1.1.12 and I did reauth multiple times, after logging out with ```opencode auth logout``` the difference is when I wanted to connect again I did it via the TUI, so in the TUI ``` /connect ``` This **didn't** work. Now I tried it again with but after opencode auth logout via the cli I also used opencode auth login, this worked. So there's definitely something still broken in the TUI.
Author
Owner

@ropl-btc commented on GitHub (Jan 10, 2026):

I updated the opencode, then did opencode auth logout and login again at now it seems to be working

this worked for me, thank you!

  1. update to the latest opencode version
  2. run opencode auth logout
  3. run opencode auth login
@ropl-btc commented on GitHub (Jan 10, 2026): > I updated the opencode, then did opencode auth logout and login again at now it seems to be working this worked for me, thank you! 1. update to the latest opencode version 2. run `opencode auth logout` 3. run `opencode auth login`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4579