Person/Sadjow Leão/GitHub/codex-cli-nix
Properties
- created-by
- Person/Sadjow Leão
sadjow/codex-cli-nix
- Repository: sadjow/codex-cli-nix
- Created by: Person/Sadjow Leão
- Created: 2025-09-04
- GitHub status on 2026-03-12: 59 stars, 14 forks, 0 open issues
- Nix flake for OpenAI Codex CLI with a native Rust binary default, hourly updates, and multi-platform caching.
- It packages Codex/CLI for Nix users who want declarative installs, quick release pickup, and a native binary that avoids a Node.js dependency by default.
Why It Exists
- Gives Nix users near-immediate access to new Codex/CLI releases
- Avoids the fragility of
npm install -g @openai/codexwhen switching Node.js versions across projects - Provides a focused flake with binary caching and a dedicated update workflow
Packaging Model
- Default package is a native Rust binary exposed as
codex - Alternative package
codex-nodebundles Node.js 22 LTS for users who want the npm-style runtime - Pre-built binaries are intended for Linux and macOS on both x86_64 and ARM64
- The flake can be used directly with
nix run, installed withnix profile install, or consumed from a flake input in NixOS or Home Manager
- Default package is a native Rust binary exposed as
Versioning and Updates
Trust Model
- The default package uses pre-built Rust binaries from OpenAI's GitHub releases
- The alternative Node.js package uses the npm distribution of
@openai/codex - Reproducibility depends on the flake revision and pinned hashes in the packaging
- Trust still extends to the maintainer account, the automation workflow, OpenAI upstream release artifacts, and optionally the project's Cachix cache
Useful Commands
Comparison Notes
- Compared with
npm install -g @openai/codex, this flake is more stable across Node.js version switching and easier to manage declaratively - Compared with raw source builds, this repo emphasizes pre-built multi-platform binaries and quick installation
- It is a close parallel to Person/Sadjow Leão/GitHub/claude-code-nix, but targeted at Codex/CLI instead of Claude/Code
- Compared with
Links
- README: README.md
- Issues: GitHub Issues
- Actions: GitHub Actions