codex icon indicating copy to clipboard operation
codex copied to clipboard

device auth with business account, missing worspace admin option to enable

Open ahcm opened this issue 10 months ago • 25 comments

What version of Codex is running?

codex-cli 0.84.0

What subscription do you have?

Business

Which model were you using?

No response

What platform is your computer?

No response

What terminal emulator and version are you using (if applicable)?

No response

What issue are you seeing?

The workspace admin console in the web interface seems to be missing the option to allow device auth.

What steps can reproduce the bug?

Open https://chatgpt.com/admin/permissions

What is the expected behavior?

Find option to enable device auth

Additional information

Not sure if this is the right place to file this since it is related to the web app adminn console.

ahcm avatar Jan 15 '26 14:01 ahcm

Related to

  • #9253

The fallback techniques are tedious and much more convoluted than the link based auth in the 0.80.0 version.

Please put an option to use that login flow.

jeancaffou avatar Jan 15 '26 19:01 jeancaffou

we've located the issue and will be rolling out a fix soon.

mzeng-openai avatar Jan 16 '26 06:01 mzeng-openai

The fix has been rolled out. Please give it a try and let us know if you still encounter the problem.

etraut-openai avatar Jan 17 '26 04:01 etraut-openai

This is still an issue. Fix hasn`t worked.

rafaelreis-r avatar Jan 19 '26 11:01 rafaelreis-r

Yes, still the same

@rafaelreis-r this workaround from this comment works https://github.com/openai/codex/issues/9253#issuecomment-3760736551

$ unset CI SSH_CONNECTION SSH_CLIENT SSH_TTY $ export DISPLAY=:0 $ codex

jeancaffou avatar Jan 19 '26 12:01 jeancaffou

Is there something we need to do to enable this? I'm still not seeing it and it's been 5 days

aronchick avatar Jan 23 '26 23:01 aronchick

To be clear, the issue is that there is no way to enable "device code authentication" in the admin portal, yes?

Suhaibinator avatar Jan 24 '26 08:01 Suhaibinator

Yes, admin portal. The search field says 13 options available, the number has not changed, none of these enable "device code authentication. Only 3 can be toggled in Business (vs. Enterprise).

ahcm avatar Jan 24 '26 18:01 ahcm

I still have this issue cant find "device code authentication"

DiNaSoR avatar Jan 25 '26 16:01 DiNaSoR

Still not working.

Chapoly1305 avatar Jan 26 '26 23:01 Chapoly1305

We believe this issue has been resolved. You can now enable headless environments in your workspace settings page.

Image

etraut-openai avatar Jan 26 '26 23:01 etraut-openai

Not fixed. It's still an issue, see https://github.com/openai/codex/issues/9253#issuecomment-3802274154 Potential root cause https://github.com/openai/codex/issues/9253#issuecomment-3802593168

Chapoly1305 avatar Jan 26 '26 23:01 Chapoly1305

Still an issue for me as well. I do not see "Codex Local", nor any of the two options below it. @etraut-openai

KyleHunter avatar Jan 27 '26 12:01 KyleHunter

@etraut-openai it is not fixed. The whole Codex Local section is missing. Your test environment is not in Business mode as the other points visible in your screenshot are slightly greyed out in Business and labeled Enterprise. Please reopen.

ahcm avatar Jan 27 '26 12:01 ahcm

Can confirm there is no Codex Local section on Business accounts.

gigq avatar Jan 27 '26 16:01 gigq

@etraut-openai

Image

Suhaibinator avatar Jan 27 '26 18:01 Suhaibinator

Temporary workaround for this issue until it’s properly addressed. From a computer with a screen, log in using a browser, and then copy the ~/.codex/auth.json file to the target server. Once you’ve done that, you can run the codex on the target server.

Disclaimer: This information is not from OpenAI’s official source, and I hope it won’t result in an account ban. It doesn’t matter anyway because our team cannot use Codex in the development environment because of this bug, so we are at the brink of canceling the subscription and requesting a refund.

Chapoly1305 avatar Jan 27 '26 19:01 Chapoly1305

@Chapoly1305, thanks for posting the workaround. This is actually a documented fallback solution, so no worries about using that technique.

We are continuing to investigate the underlying issue for device code auth controls for Business plan subscribers. The issue involves multiple teams within OpenAI, and we're trying to get everyone aligned on the solution. I'm not trying to make excuses, but just explaining why it's taking a while for us to get a fix in place.

etraut-openai avatar Jan 27 '26 19:01 etraut-openai

@etraut-openai

Business users get a 404 unauthorised here (https://chatgpt.com/backend-api/accounts/<account_id>/beta_features) Payload: {feature: "codex_device_code_auth", value: true} Response: {"detail":"Enterprise plan required."}

Looks like it just needs to be enabled for business users

patrickp2 avatar Feb 02 '26 21:02 patrickp2

@etraut-openai looks like you fixed it, sorted for me now.

patrickp2 avatar Feb 03 '26 00:02 patrickp2