codex - 💡(How to fix) Fix Tracker: Codex business access-tokens broken (401 unauthorized)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

codex exec "summarize the last release diff" OpenAI Codex v0.135.0

workdir: /workspaces/dev model: gpt-5.5 provider: openai approval: never sandbox: read-only reasoning effort: none reasoning summaries: none session id: redacted

user summarize the last release diff warning: Codex could not find bubblewrap on PATH. Install bubblewrap with your OS package manager. See the sandbox prerequisites: https://developers.openai.com/codex/concepts/sandboxing#prerequisites. Codex will use the bundled bubblewrap in the meantime. 2026-05-30T08:58:22.421652Z ERROR codex_core::shell_snapshot: Shell snapshot validation failed: Snapshot command exited with status exit status: 2: /home/codespace/.codex/shell_snapshots/redacted: line 2547: syntax error near unexpected token `('

ERROR: Reconnecting... 2/5 ERROR: Reconnecting... 3/5 ERROR: Reconnecting... 4/5 ERROR: Reconnecting... 5/5 ERROR: Reconnecting... 1/5 ERROR: Reconnecting... 2/5 ERROR: Reconnecting... 3/5 ERROR: Reconnecting... 4/5 ERROR: Reconnecting... 5/5 ERROR: unexpected status 401 Unauthorized: {"detail":"Unauthorized"}, url: https://chatgpt.com/backend-api/codex/responses, cf-ray: redacted, request id: redacted ERROR: unexpected status 401 Unauthorized: {"detail":"Unauthorized"}, url: https://chatgpt.com/backend-api/codex/responses, cf-ray: redacted, request id: redacted

Code Example

codex exec "summarize the last release diff"
OpenAI Codex v0.135.0
--------
workdir: /workspaces/dev
model: gpt-5.5
provider: openai
approval: never
sandbox: read-only
reasoning effort: none
reasoning summaries: none
session id: redacted
--------
user
summarize the last release diff
warning: Codex could not find bubblewrap on PATH. Install bubblewrap with your OS package manager. See the sandbox prerequisites: https://developers.openai.com/codex/concepts/sandboxing#prerequisites. Codex will use the bundled bubblewrap in the meantime.
2026-05-30T08:58:22.421652Z ERROR codex_core::shell_snapshot: Shell snapshot validation failed: Snapshot command exited with status exit status: 2: /home/codespace/.codex/shell_snapshots/redacted: line 2547: syntax error near unexpected token `('

ERROR: Reconnecting... 2/5
ERROR: Reconnecting... 3/5
ERROR: Reconnecting... 4/5
ERROR: Reconnecting... 5/5
ERROR: Reconnecting... 1/5
ERROR: Reconnecting... 2/5
ERROR: Reconnecting... 3/5
ERROR: Reconnecting... 4/5
ERROR: Reconnecting... 5/5
ERROR: unexpected status 401 Unauthorized: {"detail":"Unauthorized"}, url: https://chatgpt.com/backend-api/codex/responses, cf-ray: redacted, request id: redacted
ERROR: unexpected status 401 Unauthorized: {"detail":"Unauthorized"}, url: https://chatgpt.com/backend-api/codex/responses, cf-ray: redacted, request id: redacted
RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using (From “About Codex” dialog)?

v0.135.0

What subscription do you have?

Business

What platform is your computer?

Linux

What issue are you seeing?

https://developers.openai.com/codex/enterprise/access-tokens no longer works. Fails on old versions and new versions of codex so it is likely server side.

codex exec "summarize the last release diff"
OpenAI Codex v0.135.0
--------
workdir: /workspaces/dev
model: gpt-5.5
provider: openai
approval: never
sandbox: read-only
reasoning effort: none
reasoning summaries: none
session id: redacted
--------
user
summarize the last release diff
warning: Codex could not find bubblewrap on PATH. Install bubblewrap with your OS package manager. See the sandbox prerequisites: https://developers.openai.com/codex/concepts/sandboxing#prerequisites. Codex will use the bundled bubblewrap in the meantime.
2026-05-30T08:58:22.421652Z ERROR codex_core::shell_snapshot: Shell snapshot validation failed: Snapshot command exited with status exit status: 2: /home/codespace/.codex/shell_snapshots/redacted: line 2547: syntax error near unexpected token `('

ERROR: Reconnecting... 2/5
ERROR: Reconnecting... 3/5
ERROR: Reconnecting... 4/5
ERROR: Reconnecting... 5/5
ERROR: Reconnecting... 1/5
ERROR: Reconnecting... 2/5
ERROR: Reconnecting... 3/5
ERROR: Reconnecting... 4/5
ERROR: Reconnecting... 5/5
ERROR: unexpected status 401 Unauthorized: {"detail":"Unauthorized"}, url: https://chatgpt.com/backend-api/codex/responses, cf-ray: redacted, request id: redacted
ERROR: unexpected status 401 Unauthorized: {"detail":"Unauthorized"}, url: https://chatgpt.com/backend-api/codex/responses, cf-ray: redacted, request id: redacted

What steps can reproduce the bug?

Reproduction:

  1. Generate a token in https://chatgpt.com/admin/access-tokens (only business/enterprise can do this)
  2. export CODEX_ACCESS_TOKEN='your token'
  3. curl -fsSL https://chatgpt.com/codex/install.sh | sh (only if you don't have codex yet)
  4. codex exec "Test, respond OK." (ensure you are not logged in already!)

If anyone manages to execute the above successfully, leave a comment as well.

The issue was fully reproduced in a github codespace as well, as well as on my local environment. Following the above steps should allow for a full reproduction in a github codespace, unless my account in particular is broken.

What is the expected behavior?

The codex session should respond OK, and not time out.

Additional information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Tracker: Codex business access-tokens broken (401 unauthorized)