A Nix flake for building and running the OpenAI Codex CLI tool - a terminal-based coding assistant.
This flake packages the OpenAI Codex CLI tool for use with Nix. It provides a convenient way to install and run the Codex CLI in a reproducible environment.
nix profile install github:castrozan/codex-flakeTo enter a development shell with Codex CLI available:
nix develop github:castrozan/codex-flakeAdd codex-flake to your flake inputs and reference its package in your outputs:
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
codex-flake = {
url = "github:castrozan/codex-flake";
inputs.flake-utils.follows = "flake-utils";
};
};
}For NixOS system configurations, you can add codex to environment.systemPackages. For example, in a separate configuration.nix:
{ pkgs, inputs, ... }:
{
environment.systemPackages = [
inputs.codex-flake.packages.${pkgs.system}.default
];
}The build scripts in this repository are dual-licensed under the terms of the MIT license and the Apache License (Version 2.0).
See LICENSE-MIT and LICENSE-APACHE for details.
The OpenAI Codex CLI tool itself is licensed under the Apache License 2.0.
Made with ❤️ by castrozan
This is an unofficial Nix packaging of the OpenAI Codex CLI tool. It is not affiliated with or endorsed by OpenAI.