Codex SDK – Programmatically control local Codex agents
developers.openai.com