opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]:Add OpenAI Provider with OpenAI Business Login Method

Open leonsong09 opened this issue 10 months ago • 10 comments

Feature hasn't been suggested before.

  • [x] I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Need to add OpenAI with special emphasis on implementing OpenAI Business login authentication.

leonsong09 avatar Jan 11 '26 02:01 leonsong09

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

  • #7570: OpenAI does Not work when trying with Organization Subscription
  • #7604: When login to ChatGPT Team subscribe account, telling me "Usage not included in your plan"
  • #7550: opentui: TUI crashes after successful native OpenAI account connection
  • #7565: OpenAI auth had fatal error after successful auth

These issues all relate to OpenAI authentication challenges and setup problems. Feel free to ignore if your specific case addresses a different aspect of OpenAI Business Login authentication.

github-actions[bot] avatar Jan 11 '26 02:01 github-actions[bot]

@leonsong09 I think we added this right?

rekram1-node avatar Jan 11 '26 03:01 rekram1-node

I thought pro, plus, teams all work maybe there is another option I didnt know about

rekram1-node avatar Jan 11 '26 03:01 rekram1-node

@rekram1-node team accounts still aren't working after the new release earlier today. I even tried to remove the oauth and try the auth process again and still got the error

austin-thesing avatar Jan 11 '26 03:01 austin-thesing

Please show what issues you are having?

Check 1.1.12 (this is the version u need to be on), then try:

opencode auth logout # select openai

then log back in

rekram1-node avatar Jan 11 '26 03:01 rekram1-node

@rekram1-node this is what I see after re-doing the auth on 1.1.12. I should clarify I used the /connect command in the TUI. I did see another thread where people mention using opencode auth login. I am going to try that now

Image

austin-thesing avatar Jan 11 '26 03:01 austin-thesing

@rekram1-node if I follow this exactly it's now working for me: https://github.com/anomalyco/opencode/issues/7570#issuecomment-3733591788

update to the latest opencode version run opencode auth logout run opencode auth login

But the TUI /connect does not work properly

austin-thesing avatar Jan 11 '26 03:01 austin-thesing

@rekram1-node if I follow this exactly it's now working for me: #7570 (comment)

update to the latest opencode version run opencode auth logout run opencode auth login

But the TUI /connect does not work properly

Thank!I solved it using this method. opencode version 1.1.12

shengxiagit avatar Jan 11 '26 03:01 shengxiagit

Ah found the bug, fixing

rekram1-node avatar Jan 11 '26 04:01 rekram1-node

fixed in next release: https://github.com/anomalyco/opencode/commit/ee8b38ab267e76cb05a4c4303188b8605886a70a

rekram1-node avatar Jan 11 '26 04:01 rekram1-node