Installation
Installation
Section titled “Installation”Prerequisites
Section titled “Prerequisites”- Python 3.10+ (3.11+ recommended)
- (Optional) LLM provider key:
OPENAI_API_KEYorANTHROPIC_API_KEY
Option 1: Install from PyPI (Recommended)
Section titled “Option 1: Install from PyPI (Recommended)”The easiest way to install Cyberzard:
pip install cyberzardWith AI extras (choose one):
pip install cyberzard[openai] # OpenAI supportpip install cyberzard[anthropic] # Anthropic supportpip install cyberzard[all] # All AI providersUsing pipx (isolated environment)
Section titled “Using pipx (isolated environment)”pipx install cyberzardpipx install cyberzard[openai] # with OpenAIUsing uv (fast installer)
Section titled “Using uv (fast installer)”uv pip install cyberzard# or run directly without install:uvx cyberzard scanOption 2: Linux Binary Installer
Section titled “Option 2: Linux Binary Installer”One-liner script for Linux servers:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/elwizard33/Cyberzard/main/scripts/install.sh)"With AI extras:
CYBERZARD_EXTRAS=openai bash -c "$(curl -fsSL https://raw.githubusercontent.com/elwizard33/Cyberzard/main/scripts/install.sh)"# orCYBERZARD_EXTRAS=anthropic bash -c "$(curl -fsSL https://raw.githubusercontent.com/elwizard33/Cyberzard/main/scripts/install.sh)"Standalone Binary (no Python needed)
Section titled “Standalone Binary (no Python needed)”On each GitHub Release we attach Linux x86_64 binaries:
# Download latest binarycurl -fsSL -o cyberzard \ https://github.com/elwizard33/Cyberzard/releases/download/$(curl -fsSL https://api.github.com/repos/elwizard33/Cyberzard/releases/latest | sed -n 's/.*"tag_name"[[:space:]]*:[[:space:]]*"\(v[^"[:space:]]*\)".*/\1/p')/cyberzard-linux-x86_64 && \chmod +x cyberzardVerifying checksums:
curl -fsSL -O \ https://github.com/elwizard33/Cyberzard/releases/download/$(curl -fsSL https://api.github.com/repos/elwizard33/Cyberzard/releases/latest | sed -n 's/.*"tag_name"[[:space:]]*:[[:space:]]*"\(v[^"[:space:]]*\)".*/\1/p')/checksums.txtshasum -a 256 cyberzard | grep -F -f <(cut -d' ' -f1 checksums.txt) || echo 'Checksum mismatch!'Option 3: Install from Source
Section titled “Option 3: Install from Source”For development or latest changes:
git clone https://github.com/elwizard33/Cyberzard.gitcd Cyberzardpython3 -m venv .venv && source .venv/bin/activatepython -m pip install -U pip setuptools wheelpip install -e . # or .[openai] / .[anthropic]Verify Installation
Section titled “Verify Installation”Run a basic command:
cyberzard scanIf you have a model key:
export CYBERZARD_MODEL_PROVIDER=openaiexport OPENAI_API_KEY=sk-... # or set via secret managercyberzard agent "Summarize current risks"Upgrade
Section titled “Upgrade”From PyPI
Section titled “From PyPI”pip install --upgrade cyberzard# or with pipx:pipx upgrade cyberzardFrom git/installer-based install
Section titled “From git/installer-based install”cyberzard --upgrade # or: cyberzard upgradecyberzard upgrade --channel stable # use latest tagged releaseManual (from source checkout)
Section titled “Manual (from source checkout)”git pull --rebasepip install -e . --upgradeSee also: Upgrade & Troubleshooting
Troubleshooting
Section titled “Troubleshooting”Editable install fails with message like:
build backend is missing the ‘build_editable’ hook
Fix:
python -m pip install -U pip setuptools wheelpip install -e . # or non-editable: pip install .This commonly occurs on stock Ubuntu with older pip (22.x).
Docs build on CI fails with rollup optional deps error:
Cannot find module @rollup/rollup-linux-x64-gnu
Workaround (already applied in CI): remove node_modules and lockfile, then reinstall:
rm -rf docs/node_modules docs/package-lock.jsoncd docs && npm install --legacy-peer-deps && npm run build