Python integration
Integrate Codex from Python by invoking the CLI or implementing an MCP client.
openai/codex does not publish an official Python SDK. A Python application can invoke the installed codex executable as a child process, or connect to codex mcp-server using a Python MCP client.
For the maintained official SDK, use TypeScript. For protocol details, see MCP server.
Updated Aug 31, 2026