Xcode 27 beta Codex sign-in fails only for ChatGPT Pro account requiring email OTP; Go account works

Open 💬 22 comments Opened Jun 13, 2026 by guhans6

What version of the IDE extension are you using?

Xcode Codex agent 0.132.0 Codex CLI 0.139.0

What subscription do you have?

ChatGPT Pro (ChatGPT Go account signs into Xcode Codex successfully on the same Mac/Xcode/network.)

Which IDE are you using?

Xcode 27.0 beta Build 27A5194q

What platform is your computer?

Darwin 25.5.0 arm64 arm

What issue are you seeing?

Xcode 27 beta Codex sign-in fails only for my ChatGPT Pro account. Browser/Safari login succeeds and shows “Signed in to Codex. You may now close this page,” but Xcode remains “Not Signed In” / “Requires Eligible Account or API Key.”

If I close the browser success page, Xcode stops loading and remains not signed in. If I do not close the browser success page, Xcode keeps loading.

This appears account-specific:

  • Same Mac
  • Same Xcode beta
  • Same Safari/auth flow
  • Same network
  • ChatGPT Go account signs into Xcode Codex successfully
  • ChatGPT Pro account fails
  • Pro account requires email one-time passcode verification during login
  • MFA/passkey were disabled for testing, but email OTP is still required

Codex CLI and Codex app both work with the same ChatGPT Pro account.
No VPN, corporate network, or SSL inspection is in use.

What steps can reproduce the bug?

  1. Open Xcode 27 beta.
  2. Go to Xcode → Settings → Intelligence → Codex.
  3. Choose “Sign in with ChatGPT Account.”
  4. Log in with a ChatGPT Pro account that requires email OTP verification.
  5. Complete the email OTP step.
  6. Safari/browser shows “Signed in to Codex. You may now close this page.”
  7. Return to Xcode.
  8. Xcode remains “Not Signed In” / “Requires Eligible Account or API Key.”

What is the expected behavior?

After successful browser authentication, Xcode should receive the callback/session and show my ChatGPT Pro account as signed in.

Additional information

Environment:

  • macOS: 26.5.1 (25F80)
  • Xcode beta: 27.0, build 27A5194q
  • Xcode app CFBundleVersion: 25183.29.15
  • xcode-select: /Applications/Xcode-beta.app/Contents/Developer
  • Codex CLI: 0.139.0
  • Xcode Codex agent: 0.132.0
  • Codex CLI status: Logged in using ChatGPT
  • Browser/auth session: Safari
  • Apple Feedback Assistant: FB23120788

Already tried:

  • Cleared OpenAI/ChatGPT/Safari session data
  • Codex CLI login works
  • Codex app login works
  • Device auth / browser auth
  • Passkey disabled
  • MFA disabled
  • Safari HTTP warning setting checked/unchecked
  • File-based Codex auth config
  • Confirmed xcode-select points to Xcode beta
  • Quit/reopened Xcode
  • Tried changing default browser, but Xcode still opens Safari/auth session
  • Retried multiple times
  • No VPN is in use
  • No corporate network or SSL inspection is in use

Related:

  • #10989 — Xcode/Safari localhost callback issue, related but not identical because my browser reaches the success page.
  • #23109 — Xcode Codex agent regression after Codex agent update.

View original on GitHub ↗

22 Comments

cdeil · 2 months ago

See https://developer.apple.com/forums/thread/832539 and links in the reply. There's many Codex & Xcode users running into this issue. For me the workaround suggested in various threads didn't work, can't use Codex in Xcode for now.

henribredt · 2 months ago

same issue

Jramos57 · 2 months ago

Having the same issue, has anyone been able to log in at all?

bhagath-krishna · 2 months ago
Having the same issue, has anyone been able to log in at all?

have you tried config.toml? it works for me

ruchernchong · 2 months ago
> Having the same issue, has anyone been able to log in at all? have you tried config.toml? it works for me

Can you elaborate on this?

bryanmacgo · 2 months ago
> Having the same issue, has anyone been able to log in at all? have you tried config.toml? it works for me

config.toml only works for API key method

RafaelPena31 · 1 month ago

Having the same issue

hansandersson · 1 month ago

I’ve been having the same issue regardless of whether I’m in the latest production or beta versions of Xcode. I’ve tried everything, including removing Xcode and all Apple Developer Tools, ChatGPT macOS app, Apple Intelligence ChatGPT extension in System Settings, and the Codex CLI tools and reinstalling them all.

rsippl · 1 month ago

I have two OpenAI accounts: one on Plus and one on Pro. Plus works, Pro doesn't (can't log in). Via "xcrun agent codex" in the terminal, both work fine. Tried Xcode 26.6 and 27.0 beta 3.

davidyem · 1 month ago
I have two OpenAI accounts: one on Plus and one on Pro. Plus works, Pro doesn't (can't log in). Via "xcrun agent codex" in the terminal, both work fine. Tried Xcode 26.6 and 27.0 beta 3.

Me too

gerstemann · 1 month ago

Same here.

nohli · 1 month ago

Not on Xcode beta, but I solved the Not logged in problem with using config.toml for the login: https://github.com/openai/codex/issues/34639#issuecomment-5040110223

ruchernchong · 1 month ago
Not on Xcode beta, but I solved the Not logged in problem with using config.toml for the login: #34639 (comment)

Same. I was using the config.toml way too. But are you able to use GPT-5.6 Sol?

nohli · 1 month ago
> Not on Xcode beta, but I solved the Not logged in problem with using config.toml for the login: #34639 (comment) Same. I was using the config.toml way too. But are you able to use GPT-5.6 Sol?

No, if you set model = "gpt-5.6", the chat says that it's not available for ChatGPT accounts. gpt-5.5 works.
model_reasoning_effort = "xhigh" didn't throw an error.

ruchernchong · 1 month ago
> > Not on Xcode beta, but I solved the Not logged in problem with using config.toml for the login: #34639 (comment) > > > Same. I was using the config.toml way too. But are you able to use GPT-5.6 Sol? No, if you set model = "gpt-5.6", the chat says that it's not available for ChatGPT accounts. gpt-5.5 works. model_reasoning_effort = "xhigh" didn't throw an error.

Yup. I am stuck with GPT-5 only.

handersson-switchboardmd · 1 month ago

Apple provided me the below resolution today in my Feedback ticket; I've tried it and can't get it to work (still having the exact same issue noted in the original post in both Xcode 26 and Xcode 27), but maybe it will help someone else:

A services issue at OpenAI caused some users to lose access to Codex when using the JSON RPC interface that Xcode requires. This means that you may be unable to sign in to your account without first deleting the keys in Keychain Access named "Codex Auth" and "Codex Safe Storage" — if, after deleting both of these and reinstalling Codex by deleting and reinstalling it from the "Components" are in Xcode settings, you are unable to sign in to Codex in Xcode 27, please reach out again.
ruchernchong · 1 month ago
Apple provided me the below resolution today in my Feedback ticket; I've tried it and can't get it to work (still having the exact same issue noted in the original post in both Xcode 26 and Xcode 27), but maybe it will help someone else: > A services issue at OpenAI caused some users to lose access to Codex when using the JSON RPC interface that Xcode requires. This means that you may be unable to sign in to your account without first deleting the keys in Keychain Access named "Codex Auth" and "Codex Safe Storage" — if, after deleting both of these and reinstalling Codex by deleting and reinstalling it from the "Components" are in Xcode settings, you are unable to sign in to Codex in Xcode 27, please reach out again.

Yeah, not possible. I tried these too

LeoNatan · 1 month ago

Vibe clowning broke vibe clowning. Color me surprised. 🤡

ruchernchong · 1 month ago

The vibes I am getting right now is that the reset games on social media is more important than fixing this to get the ChatGPT Pro plans working with Xcode.

nohli · 29 days ago
The vibes I am getting right now is that the reset games on social media is more important than fixing this to get the ChatGPT Pro plans working with Xcode.

Tbh maybe the issue is not that bad - it works with config.toml login (ok it still takes unnecessary time to figure out this workaround), plus:

I worked with the Xcode integration for a few days, it feels good and looks great

But although it's working, I switched to the Codex app - when you use it with a project, you can have parallel tasks, it has a better permission check (the auto-approve from Codex doesn't work in the Xcode integration, and it would often stop and ask you for permission - unless you give it * permissions with network access, which feels like a significant downgrade since the Codex auto-review feature).

For me bugs in the current Xcode plugin:

  • Login with password
  • History can't be deleted - it comes back on new app launch
  • Auto-review not working - either grant it strong permissions or approve all the time
ruchernchong · 17 days ago

Xcode 27 Beta 5 should be released today, but I doubt this is going to be fixed.

Jvnuszkiewicz · 16 days ago

I just checked and the problem is fixed in Xcode 27 Beta 5 with Codex version 0.145.0 (at least in my case). They also added a new way of signing in "Sign In With a ChatGPT Device Code...", however I used standard "Sign In With a ChatGPT Account...".