System Requirements
Ensure your system meets these minimum requirements before proceeding.
| Requirement | Details |
|---|---|
| Operating systems | macOS 12+, Ubuntu 20.04+/Debian 10+, or Windows 11 via WSL2 |
| RAM | 4 GB minimum (8 GB recommended) |
| Git | 2.23+ (optional, recommended for built-in PR helpers) |
Rust Development Setup
The primary Codex CLI implementation is written in Rust and lives in thecodex-rs/ directory.
TypeScript Development Setup
The legacy TypeScript CLI lives in thecodex-cli/ directory.
DotSlash (Optional)
GitHub Releases contain a DotSlash file for the Codex CLI namedcodex. Using a DotSlash file makes it possible to commit a lightweight reference to source control to ensure all contributors use the same version of an executable, regardless of platform.
Alternative: Nix Flake Development
Using Nix for reproducible builds
Using Nix for reproducible builds
Prerequisite: Nix >= 2.4 with flakes enabled (This shell includes Node.js (for TypeScript) or Rust toolchain, installs dependencies, builds the CLI, and provides a
experimental-features = nix-command flakes in ~/.config/nix/nix.conf).Enter Development Shell
codex command alias.Build Directly
Run via Flake App
Use with direnv
If you havedirenv installed, automatically enter the Nix shell when you cd into the project:Next Steps
Now that your environment is set up:Building
Learn how to build the project
Testing
Run tests to verify your setup
Guidelines
Review contribution guidelines
Configuration
Explore configuration options