Codex CLI (codexcli)
Installs OpenAI Codex CLI using the official standalone installer. The installer downloads a pre-built statically-linked (musl) binary, so it works on all Linux distributions without requiring Node.js or any other runtime.
Usage
"features": { "ghcr.io/cjcrobin/devcontainer-features/codexcli:1": {} }
How It Works
- Detects the available package manager (apt-get, apk, dnf, yum, zypper, pacman).
- Ensures
curlandca-certificatesare installed (installs them if missing). - Runs the official installer:
curl -fsSL https://chatgpt.com/codex/install.sh | sh - Verifies the
codexbinary is available and symlinks it to/usr/local/binfor system-wide access.
No Presets
This feature does not configure any API keys, models, or preferences. Run codex after container creation to sign in or set up your environment.