External Publication
Visit Post

Xcode/Codex - Your request couldn't be completed

OpenAI Developer Community June 15, 2026
Source
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.

Discussion in the ATmosphere

Loading comments...