Sign in with ChatGPT - Address in use (os error 98)

Resolved 💬 5 comments Opened Aug 25, 2025 by MateuszZelent Closed Sep 3, 2025

What version of Codex is running?

0.23.0

Which model were you using?

_No response_

What platform is your computer?

WSL ubuntu20.04

What steps can reproduce the bug?

🐛 Bug report: "Address in use (os error 98)" during login

Description
When trying to launch Codex CLI and sign in (Sign in with ChatGPT or Provide your own API key), the following error appears:

Address in use (os error 98)

---

Additional context

  • Ports 8000, 3000, and 8080 are already in use on my system.
  • It looks like Codex CLI tries to start its local server on one of those ports.
  • I did not find any documented way to change the port manually (e.g. via --port flag or environment variable).

---

Question: Is there currently any way to specify a different port for the login process?

What is the expected behavior?

_No response_

What do you see instead?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗