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-safetyInstall 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 --versionEnvironment variables
| Variable | Default | Purpose |
|---|---|---|
AIGUARD_PROJECT | CWD folder name | Active project name |
AIGUARD_PG_DSN | unset | Postgres DSN (switches storage from SQLite to Postgres) |
OPENAI_API_KEY | unset | OpenAI / OpenAI-compatible provider key |
ANTHROPIC_API_KEY | unset | Anthropic key (for Claude targets) |