codex_cli_workspace_disabled
This error is not user-fixable: it means your ChatGPT workspace (Business, Enterprise, or Edu) has Codex switched off for local use. A workspace admin must enable the "Allow members to use Codex Local" control in workspace settings, which gates the CLI, IDE extension, and desktop app together. For headless or SSH logins, the admin must also enable device code authentication at chatgpt.com/admin/permissions. If it persists after enabling, contact OpenAI's help center with the request ID from the error.
Affected versions: any client version — the block is a server-side workspace policy, not a client bug
Signing in to Codex from a ChatGPT Business, Enterprise, or Edu seat can fail with An error occurred during authentication (codex_cli_workspace_disabled). Please try again. The “try again” is a dead end — the code means your workspace has Codex’s local surfaces disabled, and only a workspace admin can turn them on. The exact string was reported on the openai/codex tracker from the desktop app on an Enterprise account.
Symptoms
- Sign-in fails immediately with
codex_cli_workspace_disabledin the error text, plus a request ID for support (#17833). One workspace control gates the CLI, IDE extension, and desktop app together (admin rollout guide), so all three surfaces can hit it. - On headless machines — SSH sessions, containers — the failure reads
Please contact your workspace admin to enable device code authentication(#9253). - Personal ChatGPT accounts sign in fine from the same machine; the block travels with the workspace account, not the install (Ask HN thread).
Cause
Business, Enterprise, and Edu admins control whether members can run Codex locally. With that control off, OpenAI’s auth server rejects the sign-in and returns this code — the client is working as designed. An OpenAI maintainer closed the desktop report within ten minutes as “an account issue, not a bug in Codex”.
The headless variant needs a second toggle: the CLI forces the device-code flow when it detects no browser. In early 2026 that toggle was gated behind an Enterprise-only entitlement, so Business and Team admins could not enable it at all — see the Enterprise plan required rejections on #9253. OpenAI shipped a server-side fix and closed the issue on February 3, 2026.
Fix
- Send this page to your workspace admin. The control they need, per OpenAI’s admin rollout guide, is “Allow members to use Codex Local” — it governs the CLI, IDE extension, and desktop app in one setting.
- For headless or SSH use, the admin also enables device code authentication — a maintainer on #9253 pointed admins to the toggle at chatgpt.com/admin/permissions.
- Once the admin confirms the change, run
codex loginor retry desktop/IDE sign-in. - If it still fails, take the request ID from the error to OpenAI’s help center — the maintainer response on #17833 routes this class of failure to support, not the tracker.
- While you wait on an admin, users on #9253 reported two unofficial workarounds for the headless variant: copy Codex’s
auth.jsoncredential file from a machine where browser login works, or forward the login port withssh -L 1455:localhost:1455 user@host.
Affected versions
The rejection happens server-side at sign-in, so any build shows it while the workspace setting is off — the desktop report on #17833 came from app version 26.409.1734.0, and the headless reports on #9253 started around CLI 0.84.0. Updating the client changes nothing; the admin toggle does.
Once you’re in, the errors you hit next are the ordinary kind — rate limits first among them. See our limits guide.
Facts on this page verified July 15, 2026.
- openai/codex #17833 — 'Unable to login Codex App with Chatgpt account' (the exact error string; closed as account issue)
- openai/codex #9253 — headless device-code variant, 36 comments, closed Feb 3 2026 after server-side fix
- OpenAI Codex admin rollout guide (Enterprise) — 'Allow members to use Codex Local' control
- Ask HN: Is Codex login down for all workspace (non-personal) users?