Codex login needs port 1455 mapped
Image Variant
Slim (slim / dev-slim)
Image Tag / Version
latest slim
Host OS
macOS (Docker Desktop)
What happened?
Codex login can't redirect to local running instance.
I have tried to map port 1455 but without any success, I think the server is only listen on localhost within the container.
What did you expect?
Connection should work and login happens automatically.
Workaround using the docker exec command with curl "http://localhost:1455/auth/callback?code=...&scope=openid+profile+email+offline_access+api.connectors.read+api.connectors.invoke&state=AWxEyhf0kWk_IcNQ6G76i477zrys1ECxxXveFTnJ7ZY"
Steps to reproduce
- Connect Codex via OpenAI
- Login into account and allow redirect
- Connection failed to URL "http://localhost:1455/auth/callback?code=...&scope=openid+profile+email+offline_access+api.connectors.read+api.connectors.invoke&state=AWxEyhf0kWk_IcNQ6G76i477zrys1ECxxXveFTnJ7ZY"
Docker Compose / Run command
Logs / Error output
Confirmed. This one was on HolyClaude’s side.
Codex uses a localhost callback on port 1455, and HolyClaude was not exposing or documenting that port in the compose template. That is why the redirect failed unless you manually hit the callback from inside the container.
This is fixed in v1.1.9.
What changed:
The full compose/config docs now include the Codex callback port.
The documented path now makes it clear that 1455 needs to be exposed when using the Codex callback flow from the host browser.
Short version: the manual callback workaround should no longer be necessary once the documented port mapping is in place.
If you still hit this on v1.1.9, reply here and I’ll reopen it.
Closing as fixed in v1.1.9.
I just got the same issue using the latest image as it is still pointing to 1.1.8 version. It requires the 1.1.9 version to be pushed to the latest tag as well.