Skip to main content

find_codex_binary

Function find_codex_binary 

Source
pub fn find_codex_binary(explicit: Option<&Path>) -> Result<PathBuf, AppError>
Expand description

Locates the Codex CLI binary on the system.

Search order:

  1. Explicit --codex-binary CLI flag.
  2. SQLITE_GRAPHRAG_CODEX_BINARY env var.
  3. PATH search for codex (or codex.exe on Windows).