The example code has an incorrect import statement: codex_app_server should be openai_codex.

Open 💬 0 comments Opened May 17, 2026 by cache-miss-hue

What is the type of issue?

Documentation is missing

What is the issue?

Issue Description

The documentation or example code uses an incorrect import statement:

from codex_app_server import Codex   # ❌ This module name does not exist

The correct implementation should be:

from openai_codex import Codex, AppServerConfig   # ✅ This works correctly

Verification Steps

  1. Execute python -m pip install -e . in the sdk/python directory to install the SDK
  2. Run python -c "import openai_codex; print(dir(openai_codex))" to confirm the module name is openai_codex
  3. The codex_app_server module cannot be found, but openai_codex works correctly

Environment Information

  • Python 3.13
  • openai-codex 0.131.0a4
  • Windows

Where did you find it?

_No response_

View original on GitHub ↗