Repository navigation
AegisAI v0.2.0 is the first release since the project's initial version. It includes the work of 150+ contributors from GSSoC 2026, plus a post-program cleanup that restored green CI and fixed several security issues.
Status: beta. AegisAI is under active development. It is not security-certified or production-hardened, and it does not provide legal advice: classifications and generated documents are a starting point for your own compliance work.
Highlights
- Compliance engine
- EU AI Act risk classification, including the Article 5 prohibited practices.
- Bulk classification and classification history.
- A searchable AI system registry with CSV import/export.
- Generated documents with versions, diffs and PDF export.
- LLM Guard
- Prompt-injection detection with Unicode/homoglyph normalisation.
- Scan audit log (hashes only, never raw prompts), statistics, export and SHAP/LIME explanations.
- RAG intelligence
- Per-user document ingestion with streaming answers and article-level citations.
- Feedback and grounding scores.
- Platform
- Notifications and outbound webhooks.
- Compliance analytics with daily snapshots.
- OAuth (backend), an MCP server and a reusable GitHub Action.
- Structured logging and Prometheus metrics.
See CHANGELOG.md for the full list.
Guard SDK on PyPI
pip install aegisai-guard # deterministic rules, no ML dependencies
pip install "aegisai-guard[ml]" # adds the fine-tuned classifier (PyTorch, transformers)Install
Docker (recommended)
git clone https://github.com/SdSarthak/AegisAI.git && cd AegisAI
cp backend/.env.example backend/.env # set SECRET_KEY and your LLM provider
docker compose up -d # http://localhost:5173To run Ollama in a container instead of using an API key:
docker compose -f docker-compose.yml -f docker-compose.ollama.yml up -d
docker compose -f docker-compose.yml -f docker-compose.ollama.yml exec ollama ollama pull llama3.2Without Docker: see Option 2 in the README. It runs on SQLite, without PostgreSQL or Redis, for local development.
Supported configuration
| Component | Supported |
|---|---|
| Python | 3.11+ |
| Node.js | 20+ |
| Database | PostgreSQL 15 (production); SQLite for local development |
| Redis | Required in production (rate limiting, caching); optional with DEBUG=true |
| LLM | Any OpenAI-compatible API: OpenAI, Groq, Together AI, vLLM, Ollama |
| Deployment | Docker Compose; Kubernetes manifests in infra/ |
Upgrade notes
- RAG indexes need re-signing or rebuilding. Indexes are now signed, and unsigned ones are refused before anything is unpickled. Re-ingest your documents, or if you trust the existing files run
python -m scripts.sign_faiss_indexes --yesfrombackend/. SetFAISS_INDEX_SIGNING_KEYif you rotateSECRET_KEY. - Docker Compose now takes the LLM provider from
backend/.env. Ollama is opt-in, as shown above. SECRET_KEYmust be non-empty, including inDEBUGmode.
Security fixes
- Raw RAG questions and answers sent to MLflow (#1717): hashes and lengths only now
- Server paths and exception text in RAG error responses (#1711)
- Streamed RAG answers now drop retrieved chunks containing injected instructions (#1493)
- Guard regex layer missed "ignore all previous instructions"
- Webhook SSRF via DNS rebinding (#1530)
- Pickle deserialization of unsigned FAISS indexes (#1490)
- Cross-tenant document leakage in RAG index rebuilds (#223)
- CSRF middleware blocking every authenticated write from the UI, SDK and GitHub Action (#1062)
- Untrusted PR code running under
pull_request_targetin CI
Please report vulnerabilities privately via Security Advisories.
Known limitations
- No baseline Alembic migration yet, so tables are created at startup (#70).
- The Guard classifier ships without fine-tuned weights and uses the base model until weights are published.
- The regulatory knowledge base is not pre-loaded (#1473).
- Compliance scores are never computed yet, so the compliance timeline stays empty (#137).
- OAuth sign-in has no frontend buttons yet (#1598). JWTs are stored in localStorage (#930).
- Grounding verification is not yet applied to streamed RAG answers (#1493);
/rag/queryhas it. - The hosted demo has no backend (#1177).
Contributing
New contributors are welcome. Start with a good first issue and read CONTRIBUTING.md.