Python SDK for OpenAI Codex CLI - A port of the official TypeScript SDK
Project description
Python Codex SDK
Python SDK for OpenAI Codex CLI. This is a port of the official TypeScript SDK.
Based on commit 3f1c4b9 (Nov 15, 2025) from the official repository.
Overview
Embed the Codex agent in your workflows and apps.
The Python SDK wraps the bundled codex binary. It spawns the CLI and exchanges JSONL events over stdin/stdout.
Installation
pip install python-codex-sdk
Requires Python 3.12+ and the Codex CLI.
Testing
uv run pytest
Currently tested with codex-cli 0.58.0.
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_codex_sdk-0.1.2.tar.gz.
File metadata
- Download URL: python_codex_sdk-0.1.2.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c5caa16ca22a2c5da163cc9cd227919f1a55127e312d8a588d4a961bec8fd6e
|
|
| MD5 |
122340dcb015bac18c1819a07cbf9a09
|
|
| BLAKE2b-256 |
3c91e3f75a5936b55293ba73173576c8f290d4fede0d4d18c73304c4efea53d4
|
File details
Details for the file python_codex_sdk-0.1.2-py3-none-any.whl.
File metadata
- Download URL: python_codex_sdk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
327a56caa827a525570adbaf6037d2b98ce2269caa07a1573d2d433d40d0e416
|
|
| MD5 |
82af7cdffcfd953fe9e15e13bb401bb2
|
|
| BLAKE2b-256 |
095578d5e3a5a87d66e4eb0b2cd86cad053bee4afcbf6d2cbfacd1fcb3649afd
|