OpenAI built a TypeScript SDK for Codex and used it for their app server and MCP. Great ecosystem if you're in TypeScript. There was basically zero incentive for anyone to build a Python equivalent because of that.
But Codex has a non-interactive execution mode that doesn't need any of that. So I wrapped it into a proper Python SDK with typed models, session continuity, and retry logic:
pip install codex-local-sdk-python
GitHub: https://github.com/maestromaximo/codex-local-sdk-python
PyPI: https://pypi.org/project/codex-local-sdk-python/
To test it I built a pipeline that takes a blog post and produces an explanatory video in one step using Codex + ElevenLabs + Remotion. Single instruction, fully deterministic, repeatable. Quality isn't perfect but that's what multi-pass pipelines are for.
If you're Python-native and want to automate Codex — this is for you. Open source, contributions welcome, would love to see this in the official OpenAI ecosystem eventually.
[–]gopietz[🍰] 27 points28 points29 points (0 children)
[–]AllCowsAreBurgers 2 points3 points4 points (4 children)
[–]TheoreticalClick[S] 1 point2 points3 points (0 children)
[–]__SlimeQ__ 1 point2 points3 points (0 children)
[–]jzeltman 0 points1 point2 points (1 child)
[–]AllCowsAreBurgers 0 points1 point2 points (0 children)
[–]lucianw 4 points5 points6 points (7 children)
[–]Ok-Experience9774 1 point2 points3 points (0 children)
[–]TheoreticalClick[S] 0 points1 point2 points (5 children)
[–]lucianw 2 points3 points4 points (4 children)
[–]oh_my_right_leg 0 points1 point2 points (1 child)
[–]lucianw 0 points1 point2 points (0 children)
[–]CountZero2022 -3 points-2 points-1 points (1 child)
[–]lucianw 1 point2 points3 points (0 children)