Codex Auth in backend environments

Resolved 💬 1 comment Opened Sep 26, 2025 by papay0 Closed Oct 6, 2025

What version of Codex is running?

codex-cli 0.41.0

Which model were you using?

Any

What platform is your computer?

CI

What steps can reproduce the bug?

  • Run codex in a non-local env, for instance if VSCode is hosted in the cloud.
  • Try to login with Codex
  • it will open the auth flow but then redirect to http://localhost:1455/auth/callback?code=ABCD&scope=openid+profile+email+offline_access&state=ABCD which obviously doesn't work because it's localhost

What is the expected behavior?

I'd expect to see a code like Claude Code and Gemini, in additional to the automatic forwarding in case that doesn't work

What do you see instead?

I see localhost

Additional information

Suggestion: Would it be possible to implement a code auth like Claude Code and Gemini are doing, where we can copy paste the code into the Codex extension or Terminal UI?

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗