Nix flake for OpenAI Codex CLI (the Rust CLI, codex-rs) — an AI coding agent for your terminal.
Packages the latest official pre-built binaries so you can use codex declaratively on NixOS, nix-darwin, and Home Manager without building from source.
nix run github:SecBear/codex-nix -- --version
nix profile install github:SecBear/codex-nix{
inputs.codex-nix.url = "github:SecBear/codex-nix";
outputs = { nixpkgs, codex-nix, ... }: { ... };
}{ inputs, pkgs, ... }:
{
environment.systemPackages = [
inputs.codex-nix.packages.${pkgs.system}.default
];
}{ inputs, pkgs, ... }:
{
home.packages = [
inputs.codex-nix.packages.${pkgs.system}.default
];
}| Platform | Architecture | Status |
|---|---|---|
| macOS | aarch64 (Apple Silicon) | Supported |
| macOS | x86_64 | Supported |
| Linux | x86_64 | Supported |
| Linux | aarch64 | Supported |
CI checks for new releases hourly. When a new version is detected, it fetches updated hashes for all platforms, opens a PR, and auto-merges once CI passes.
To update manually:
./scripts/update.sh # update to latest
./scripts/update.sh --check # check only
./scripts/update.sh 0.105.0 # specific version- openai/codex — upstream project