Xcode/Codex - Your request couldn't be completed

Tried deleting everything as ChatGPT advises and still facing the same issue since yesterday.

This is my environment:

Xcode Codex OAuth login completes successfully and browser shows “Signed in to Codex”, but Xcode immediately returns to “Not Signed In” and shows “Requires Eligible Account or API Key”.

Terminal Codex works with v0.137.0.
Xcode Codex account validation fails after successful OAuth callback.
Xcode version: 26.4 / 17E192.

I tried using my Corporate Enterprise edition, I can log in, but still getting “Your request couldn’t be completed”.

Anyone encounted this issue?

Hi and welcome to the community!

I have pinged the team to take a look at this issue.
Fingers crossed it will be resolved soon!

My corporate enterprise edition works but not my personal pro subscription.

And now my Enterprise edition has stopped working.

Basically, the personal Pro subscription and the Enterprise edition no longer work via Codex/Xcode, which is frustrating.

I’m experiencing the same authentication issue with Codex in Xcode and wanted to share my setup and a temporary workaround that works for me.

Account

  • ChatGPT Pro (recently upgraded from Plus to Pro)

Environment

  • macOS 26.5.1 (25F80)

  • Xcode 26.5 (17F42)

  • Xcode automatically installs Codex 0.129.0-alpha.9 from Settings

Issue

In Xcode → Settings → Intelligence → Codex → Sign in with ChatGPT account:

  1. A browser window opens for authentication.

  2. I sign in successfully.

  3. The browser shows:

    “Signed in to Codex. You may now close this page.”

  4. I close the browser window and return to Xcode.

  5. Xcode still shows “Not signed in”.

I have tried:

  • Safari

  • Chrome

  • Clearing browser cache and cookies related to ChatGPT/OpenAI

  • Removing related entries from Keychain Access on my Mac and signing in again

None of these resolved the issue.

Temporary Workaround

I found a workaround from this GitHub issue:
Codex 0.129.0-alpha.9 breaks Xcode Coding Assistant with decode error #23109

Instead of using the version that Xcode installs automatically (0.129.0-alpha.9), I manually installed Codex 0.120.0.

I also tested:

  • 0.133.0

  • 0.139.0

but only 0.120.0 worked for me.

The downside is that GPT-5.5 is not available in Codex 0.120.0, so I am currently using GPT-5.4.

I’ve been waiting a couple of days for a fix, and so far this is the only workaround that has worked for me. Hopefully it helps others who are seeing the same behavior.

Thanks, @ken324, really appreciate your help on this. I will test it out soon.

I tried, unfortunately it didn’t work for me. I am trying the API key and it works. Filling the issue with OpenAI now.

Subject: Xcode Codex ChatGPT Sign-in Fails, API Key Authentication Works

Environment:

  • macOS 26.5

  • Xcode 26.5 (Build 17F42)

  • ChatGPT Pro subscription active

  • Codex CLI v0.137.0

Observed behavior:

  • Codex Web works correctly.

  • Codex CLI works correctly and authenticates successfully.

  • Xcode Codex fails when using “Sign in with ChatGPT”.

  • Xcode displays “Requires Eligible Account or API Key”.

  • The issue reproduces in a completely new macOS user account.

Troubleshooting performed:

  • Upgraded Xcode to 26.5.

  • Tested with a fresh macOS user account.

  • Verified ChatGPT Pro subscription is active.

  • Verified Codex CLI authentication succeeds.

  • Verified Codex Web authentication succeeds.

Result:

  • Configuring Xcode Codex using an OpenAI API key works immediately.

  • Agentic coding functions correctly when authenticated via API key.

  • Therefore the issue appears isolated to the ChatGPT sign-in / entitlement / OAuth path used by Xcode.

Expected behavior:

  • A valid ChatGPT Pro account should authenticate successfully in Xcode Codex without requiring API-key authentication.