You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OpenAI does Not work when trying with Organization Subscription #7570
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.
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.
Activity
github-actions commentedon Jan 10, 2026
This issue might be a duplicate of existing issues. Please check:
/connecting it #7491: [FEATURE]: Verify subscription/model is usable when/connecting it - Related feature request to validate subscription/model usabilityFeel free to ignore if none of these address your specific case.
plxzy commentedon Jan 10, 2026
Same issue. For some reason opencode sees Business subscription as "x-codex-plan-type: free".
fatihdogmus commentedon Jan 10, 2026
yeah same thing, the new auth flow does not work with bussiness plans
hezhexi2002 commentedon 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!
OmerFarukOruc commentedon Jan 10, 2026
shariqriazz commentedon Jan 10, 2026
having the same issue, hope its resolved soon
rekram1-node commentedon 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
OmerFarukOruc commentedon 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
rekram1-node commentedon Jan 10, 2026
yeah it should be
OmerFarukOruc commentedon Jan 10, 2026
rubencallewaert commentedon Jan 10, 2026
Can confirm, not yet fixed.
fatihdogmus commentedon Jan 10, 2026
I updated the opencode, then did opencode auth logout and login again at now it seems to be working
rubencallewaert commentedon Jan 10, 2026
Unfortunately this does not seem to be the case for me despite logging out and in multiple times.
hank9999 commentedon Jan 10, 2026
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 logoutto refresh account id in credential files! Thank you.hank9999 commentedon Jan 10, 2026
Did you try
opencode auth logout?rekram1-node commentedon 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
rubencallewaert commentedon Jan 10, 2026
I was on 1.1.12 and I did reauth multiple times, after logging out with
opencode auth logoutthe difference is when I wanted to connect again I did it via the TUI, so in the TUIThis 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.
robin-liquidium commentedon Jan 10, 2026
this worked for me, thank you!
opencode auth logoutopencode auth login