Skip to content

Installation

AIGuard is published on PyPI as aiguard-safety. The core install includes the CLI, the aiguard.chat() SDK, adversarial evaluation, hallucination detection, and SQLite storage.

From PyPI

$pip install aiguard-safety

Install optional extras for additional features:

bash
# + Human review server
pip install "aiguard-safety[review]"

# + Monitoring API
pip install "aiguard-safety[monitoring]"

# + HuggingFace dataset ingestion
pip install "aiguard-safety[huggingface]"

# Everything
pip install "aiguard-safety[monitoring,review,huggingface]"

From source

bash
git clone https://github.com/Shelton03/aiguard
cd aiguard

python -m venv .venv && source .venv/bin/activate
pip install -e ".[monitoring,review,huggingface]"

Verify the install

$aiguard --version

Environment variables

VariableDefaultPurpose
AIGUARD_PROJECTCWD folder nameActive project name
AIGUARD_PG_DSNunsetPostgres DSN (switches storage from SQLite to Postgres)
OPENAI_API_KEYunsetOpenAI / OpenAI-compatible provider key
ANTHROPIC_API_KEYunsetAnthropic key (for Claude targets)