Update Sep 10, 2026 tracked by Updatify
Python SDK 0.154.0
Install with pip install --upgrade openai-codex==0.154.0 (Python 3.10 or later). This release includes the matching openai-codex-cli-bin==0.154.0 runtime.
-
Add
maxandultrareasoning-effort values. #39662 -
Add
ExternalMessageto synchronous and asynchronousrun()andturn()calls. External content can start a turn or join an active regular turn with tool-level authority; it does not grant user authorization. Consumers receive independent event streams. #44086 -
Add
include_turnson resume/fork,turn_service_tierfor one newly started turn, andsourcemetadata. History selection changes the returned response, not model context. Existing defaults are preserved when these options are omitted. #44084 - Refresh generated protocol models and notifications, and preserve completion events that arrive before a turn-start response. #44032, #44400
Check these migrations when upgrading:
-
HookMetadatawraps its handler in.root. Replace accesses such ashook.commandwithhook.root.command, checkinghook.root.handler_typebefore reading handler-specific fields. -
Some previously unknown notifications now have typed payloads. Read named fields instead of
.params; unknown or invalid payloads still useUnknownNotification.