codex - 💡(How to fix) Fix What is the supported Codex auth flow for native mobile clients?

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…

Root Cause

That works on desktop/CLI because the process stays alive while the browser is open. On mobile, opening Safari/Chrome can background or suspend the app, so an in-app localhost listener may not survive long enough to receive the callback.

RAW_BUFFERClick to expand / collapse

We are building a mobile-first native client and want to understand whether Codex / ChatGPT subscription auth is intended to work outside the CLI/desktop model.

Today the browser login flow appears to rely on a loopback redirect:

http://localhost:1455/auth/callback

That works on desktop/CLI because the process stays alive while the browser is open. On mobile, opening Safari/Chrome can background or suspend the app, so an in-app localhost listener may not survive long enough to receive the callback.

Device-code auth seems like a possible alternative, but it appears to have workspace/account constraints. In testing, the browser accepted the device code, but the final token exchange failed.

Questions:

  1. Is Codex / ChatGPT subscription auth intended to be supported for third-party native mobile clients?
  2. If yes, what callback/auth mechanism is recommended on iOS/Android?
  3. Is the localhost callback flow intended to be desktop/CLI-only?
  4. Is device-code auth expected to be generally available, or only for specific workspace/headless setups?
  5. If mobile clients are not supported, should apps use normal OpenAI API auth via a backend instead?

A clear statement on the supported path would help avoid building against accidental CLI-only behavior.

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