You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've developed a complete Python SDK for Codex that provides:
Full Python API for all Codex functionality
Cross-platform support (Windows, macOS, Linux)
Streaming, structured output, thread management
Comprehensive examples and documentation
Would this be something you'd be interested in accepting? I can submit a PR if approved.
Additional information
No response
Reacted by Darin, Mirko Lenz, ZidaneSunesara, AdrianoG, Glenn 'devalias' Grant, moqimoqidea, Abdul, Isaac Kargar, ericrafalovsky, Anchit Bajaj and 39 more
Since the OpenAI Codex team is currently not accepting PRs for new features, anyone who needs a Python SDK for Codex can use this repository as a starting point.
Activity
Provinm commentedon Oct 23, 2025
hi boss, python sdk is very necessary!
darinkishore commentedon Oct 25, 2025
would be very helpful for an official response here. i desperately want to build on top of codex. maintaining a fork for rn and have a PR up.
(sorry for @ spam, but it's a really important need for a lot of people)
@pakrym-oai @jif-oai @nornagon-openai
masterFoad commentedon Oct 26, 2025
Hi everyone
In response to the interest here, I already have a substantial portion of the Python SDK implemented and functioning. It includes:
I’d be happy to open a PR if there’s interest in reviewing and merging
feifei325 commentedon Oct 28, 2025
That's great. I also have such a plan recently.
yor-dev commentedon Nov 16, 2025
I also developed a personal Codex Python SDK (similar to Mr. masterFoad's), but ideally an official Python SDK supported by OpenAI would be preferable.
https://github.com/yor-dev/python-codex-sdk
Zidane786 commentedon Nov 18, 2025
Is it possible to open-source it as a separate repo till the time, openai decide to merge it,if it's on pypi would like to know package name
andrewmaspero commentedon Nov 27, 2025
Yes please this is needed.... can't wait to use this with PydanticAI :)
comfuture commentedon Jan 7, 2026
I’ve created a rough Python SDK for Codex here: comfuture/codex-sdk-python.
Since the OpenAI Codex team is currently not accepting PRs for new features, anyone who needs a Python SDK for Codex can use this repository as a starting point.
spdcoding commentedon Feb 17, 2026
I just released codex-python-sdk 🐍
A super lightweight Python SDK for Codex—one context manager and you’re ready.
Repo: https://github.com/spdcoding/codex-python-sdk
Feedback / PRs welcome!
luzhongqiu commentedon Mar 6, 2026
+1 python sdk
etraut-openai commentedon Mar 29, 2026
There is now an experimental Python sdk available.