Skip to main content

EU AI Act Deployer Compliance SDK — wrap Claude/GPT, log everything, generate Art. 26 reports

Project description

auditai

EU AI Act Deployer Compliance SDK — wrap Claude, GPT, Ollama or any OpenAI-compatible LLM and generate Article 26 reports in minutes.

PyPI License: MIT

Install

pip install auditai-sdk

Quickstart

from auditai import wrap_client
import anthropic

client = wrap_client(anthropic.Anthropic(), project="my-app")

# Your code stays identical — every call is now logged and risk-classified
response = client.messages.create(
    model="claude-sonnet-4-6",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello"}],
)

Supported providers

Works with any OpenAI-compatible API — including local LLMs:

from openai import OpenAI
from auditai import wrap_client

# OpenAI
client = wrap_client(OpenAI(), project="my-app")

# Ollama (local)
client = wrap_client(
    OpenAI(base_url="http://localhost:11434/v1", api_key="ollama"),
    project="my-app"
)

# LM Studio (local)
client = wrap_client(
    OpenAI(base_url="http://localhost:1234/v1", api_key="lm-studio"),
    project="my-app"
)

# vLLM, llama.cpp, Azure OpenAI — same pattern

CLI

# Risk classification wizard (9 questions → EU AI Act category)
auditai classify

# View call stats
auditai stats --project my-app

# Generate Article 26 Deployer Report (PDF)
auditai report --project my-app --company "Acme SL" --email "cto@acme.com"

# Launch Streamlit dashboard
auditai dashboard --project my-app

What gets logged

Every AI call is recorded in a JSONL audit trail:

{
  "call_id": "uuid",
  "timestamp": "2026-05-07T20:00:00Z",
  "provider": "anthropic",
  "model": "claude-sonnet-4-6",
  "input_tokens": 312,
  "output_tokens": 87,
  "input_hash": "sha256...",
  "output_preview": "first 100 chars...",
  "risk_category": "limited",
  "hitl_required": false
}

Generate compliance report

from auditai import generate_report

report_path = generate_report(
    project="my-app",
    company_name="Acme SL",
    contact_email="compliance@acme.com",
    extra_info={
        "system_description": "Customer support chatbot",
        "use_case": "Automated responses to user queries",
    },
)
# → EU_AI_Act_Report_my-app_2026-05-07.pdf

The report covers Art. 26 obligations: risk classification, technical evidence, HITL events, and deployer declaration.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auditai_sdk-0.1.4.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

auditai_sdk-0.1.4-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file auditai_sdk-0.1.4.tar.gz.

File metadata

  • Download URL: auditai_sdk-0.1.4.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for auditai_sdk-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c1118a1c0c210aeae04a2e90e852d6849ddc9777fa74f70eee1fe520a4f3e517
MD5 a844407a1bfed19abab513aaf92bda89
BLAKE2b-256 672a3ad3502799780d85d5a1fa26c4393fd3e01225c8745a867039531d1b6c9a

See more details on using hashes here.

File details

Details for the file auditai_sdk-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: auditai_sdk-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for auditai_sdk-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c70390e4cd9e7ef2ed54fff0ccb2f2e63f496aa9d2c832feab4fcecf3cf9e63d
MD5 f027d7bbfcbb1df1a68c306cbb3c76e9
BLAKE2b-256 0f8293307893f04cb5b882b27aa8c5ce96a69ddf7641f0848f8286884536f5f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page