Skip to main content

Unofficial Python SDK for the OpenAI Codex CLI.

Project description

codex-sdk-unofficial

Unofficial, community-maintained Python SDK for the Codex CLI.

This is not an official OpenAI SDK.

Documentation

Full docs site (UV-first, beginner-first):

Local docs preview:

uv run --group docs mkdocs serve

Quickstart (UV-First)

uv init codex-sdk-app
cd codex-sdk-app
uv venv
source .venv/bin/activate
uv add codex-sdk-unofficial
uv run python -c "from codex_sdk import Codex; print('import-ok')"
from codex_sdk import Codex

codex = Codex()
thread = codex.start_thread()
turn = thread.run("Diagnose the test failure and propose a fix")

print(turn.final_response)
print(turn.items)

Run:

uv run python your_script.py

Package Info

  • Package name: codex-sdk-unofficial
  • Import name: codex_sdk
  • Current version: 0.1.2

Dev Commands

PYTHONPATH=src uv run pytest -q
uv run --group docs mkdocs build --strict
uv run --with build python -m build

Publishing

Tag pushes (v*) trigger .github/workflows/publish.yml.

Manual upload fallback:

uv run --with twine twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codex_sdk_unofficial-0.1.2.tar.gz (63.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codex_sdk_unofficial-0.1.2-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file codex_sdk_unofficial-0.1.2.tar.gz.

File metadata

  • Download URL: codex_sdk_unofficial-0.1.2.tar.gz
  • Upload date:
  • Size: 63.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for codex_sdk_unofficial-0.1.2.tar.gz
Algorithm Hash digest
SHA256 89dfc3de1f225260d4332672661388f2b61bfc67557d7c1edf27424def64be45
MD5 497c7447714d3989ea876cd6467e0eb8
BLAKE2b-256 17dd7acfc5f471efdc7e059e93b7fb70a16457f963a0bb3ffcdc7a1bdfc2be4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for codex_sdk_unofficial-0.1.2.tar.gz:

Publisher: publish.yml on Goodbuilder34/codex-sdk-unofficial

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codex_sdk_unofficial-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for codex_sdk_unofficial-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cc8cffab13975775bf1fa8af7a7cbe6f896871b0fa89f6cc6e7e29b03eb046e9
MD5 ffd6a413e8edea6244d40638cb68a862
BLAKE2b-256 ec691a76b809c0a159deecc89075981e35bc9325531ebaafac7ffaa1a6965786

See more details on using hashes here.

Provenance

The following attestation bundles were made for codex_sdk_unofficial-0.1.2-py3-none-any.whl:

Publisher: publish.yml on Goodbuilder34/codex-sdk-unofficial

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page