Garak installs from PyPI or directly from its GitHub repository, with options for development mode from source code. Platform-specific dependencies and optional feature groups let you customize the installation for your use case.
garak can be installed from PyPI with python -m pip install -U garak.[1] The bleeding-edge development version can be installed directly from GitHub with python -m pip install -U git+https://github.com/NVIDIA/garak.git@main.[1] For a source install, clone the repo, create a Conda environment (requiring python>=3.10,<=3.12), and install in editable mode with pip install -e ..[1] If git remotes still point at the old leondz/garak organisation, update them with git remote set-url origin https://github.com/NVIDIA/garak.git.[1] Installing garak in editable mode (pip install -e .) links the package directly to the cloned source directory, so changes to the code take effect immediately without reinstalling — the preferred setup for contributors.
garak uses flit_core (>=3.11,<4) as its build backend.[2] On Windows, garak depends on python-magic-bin>=0.4.14; on all other platforms it depends on python-magic>=0.4.21.[2] garak supports gguf models (e.g., llama.cpp) but requires llama.cpp version >= 1046.[1] garak supports Python 3.13 as a fully tested, first-class target across Linux, macOS, and Windows CI platforms.
Three optional dependency groups are available: calibration adds scipy>=1.14.0; audio adds soundfile and librosa; dra adds detoxify.[2]
The sdist explicitly includes templates, configs, and resource JSON/YAML files, but excludes tests/, .github/, .pre-commit-config.yaml, garak-report/, and doc/source/html/.[2]
Sources