Proposal: Add Python SDK for Codex
Resolved 💬 11 comments Opened Oct 18, 2025 by masterFoad Closed Mar 29, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
What feature would you like to see?
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_
11 Comments
hi boss, python sdk is very necessary!
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
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
That's great. I also have such a plan recently.
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
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
Yes please this is needed.... can't wait to use this with PydanticAI :)
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.
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
+1 python sdk
There is now an experimental Python sdk available.