A post from Tibo Sottiaux on X states that Codex can be used “within your own programs” through a Python SDK, with installation shown as pip install openai-codex. The post credits “@ah20im and friends,” and drew more than 1,000 likes at the time captured in the source material.
An attached screenshot in the thread shows a separate response claiming that Codex is available via the CLI/SDK with ChatGPT subscription login, that npm i -g @openai/codex or a Python equivalent can be used for installation, and that usage bills against subscription quota rather than a separate API. The screenshot also mentions a built-in image_gen tool and describes the subscription-based route as “the only straightforward programmatic way” without pay-as-you-go API billing, with limits tied to plan level.
Source: X post


