Python SDK · openai/codex
OpenAI Codex Python SDK
Starts Codex threads, runs turns, streams progress, authenticates, and controls workspace access.
Location
Repository path
sdk/python/README.mdInvocation
from openai_codex import Codex; Codex().thread_start().run(prompt)
Setup
Installation / activation
Import after installing the openai-codex package.
Keywords
PythonSDKthreadturnstreamingauthentication
Repository context
openai/codex
Apache-2.0 OpenAI coding-agent platform centered on the standalone Codex CLI, with desktop and IDE entry points, Python and TypeScript SDKs, structured and streaming turns, persistent sessions, model-visible tools, and OS-specific sandbox enforcement; it is an alternative or companion to Claude Code rather than a Claude Code extension.
software engineeringcoding agentsdeveloper toolscommand-line interfacesagent SDKssandboxingtool executionobservabilityIDE toolingdesktop applications