openai-codex-cli-bin
Pinned Codex CLI runtime for the Python SDK
What it is and what it does
This package provides a pre-built Codex CLI binary for local installation across macOS, Linux, and Windows platforms. Codex is OpenAI's coding agent—a tool that can read, write, and reason about code to assist with development tasks. The package itself is a wrapper that bundles the compiled binary for your platform, eliminating the need to manually download and extract executables from GitHub releases.
Once installed, you run `codex` from your terminal to launch an interactive coding agent. It integrates with your ChatGPT account (if you have a Plus, Pro, Business, Edu, or Enterprise plan) or can be configured with an API key for authentication. The CLI is designed as a standalone tool; if you want Codex integrated into your code editor, you install it directly in your IDE instead.
Use it for:
- Generate code snippets or complete functions from natural-language descriptions at the command line.
- Use Codex as a local coding assistant without leaving your terminal or editor.
- Integrate Codex into shell scripts or automation workflows for programmatic code generation.
- Evaluate Codex capabilities on your own machine before committing to a ChatGPT plan.
- Access Codex on multiple platforms (macOS, Linux, Windows) with a single installation method.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a local command-line interface to OpenAI's Codex coding agent, packaged as a pre-built binary for multiple platforms.
Yes, if you have a ChatGPT Plus/Pro/Business/Edu/Enterprise plan or an OpenAI API key and want a local CLI interface to Codex. The package is actively maintained, permissively licensed, and eliminates manual binary management. Install friction is moderate due to platform-specific binaries, but the installation process is straightforward. No security vulnerabilities are known.
Install
openai-codex-cli-bin on PyPI
pip
pip install openai-codex-cli-binuv
uv add openai-codex-cli-binpoetry
poetry add openai-codex-cli-binInstalling openai-codex-cli-bin
Before you install
Medium install friction due to platform-specific binaries (macOS x86_64 and arm64, Linux x86_64 and arm64, Windows x86_64 and arm64). Active maintenance with a recent release and high repository engagement (105970 stars), though the package is primarily a binary wrapper rather than a traditional Python library.
License in practice
Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both personal and commercial projects.
Quickstart
# Install via pip
pip install openai-codex-cli-bin
# Or use the shell installer (Mac/Linux)
curl -fsSL https://chatgpt.com/codex/install.sh | sh
# Then run
codex
Requires Python 3.10 or later. The package is a binary wrapper; actual Codex functionality requires a ChatGPT account (Plus, Pro, Business, Edu, or Enterprise plan) or an OpenAI API key.
Verify before relying
- Whether the pip-installed binary is kept in sync with standalone installers and other distribution channels.
- Specific feature parity between the CLI, IDE integrations (VS Code, Cursor, Windsurf), and the web-based Codex Web at chatgpt.com/codex.
- Whether offline operation is supported or if all requests route through OpenAI's servers.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 30 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 298,209/month — #7,875 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: openai_codex_cli_bin-0.144.4-py3-none-macosx_10_9_x86_64.whl; openai_codex_cli_bin-0.144.4-py3-none-macosx_11_0_arm64.whl; openai_codex_cli_bin-0.144.4-py3-none-manylinux_2_17_aarch64.whl; openai_codex_cli_bin-0.144.4-py3-none-manylinux_2_17_x86_64.whl; openai_codex_cli_bin-0.144.4-py3-none-musllinux_1_1_aarch64.whl; openai_codex_cli_bin-0.144.4-py3-none-musllinux_1_1_x86_64.whl; openai_codex_cli_bin-0.144.4-py3-none-win_amd64.whl; openai_codex_cli_bin-0.144.4-py3-none-win_arm64.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
openai-codexPython SDK for building applications that…
permissive · top 15,000 on PyPI
google-agents-cliA CLI toolchain that equips coding agents…
permissive · top 15,000 on PyPI
autokerenAn agentic coding CLI with an interactive…
permissive · top 15,000 on PyPI
trinity-agentTrinity orchestrates multiple AI coding agents…
permissive · top 15,000 on PyPI
ouroboros-aiOuroboros is an Agent OS that turns vague AI…
permissive · top 15,000 on PyPI
deepagents-codeA terminal-based AI coding agent that works…
permissive · top 15,000 on PyPI
openhandsOpenHands is a CLI tool that runs an AI agent…
permissive · top 5,000 on PyPI
omnigentOmnigent is an open-source orchestration layer…
permissive · top 15,000 on PyPI
oci-cliCommand-line interface for managing Oracle…
permissive · top 5,000 on PyPI
vastaiProvides a CLI and Python SDK for managing GPU…
permissive · top 5,000 on PyPI