Skip to main content

opencomplai

License: AGPL-3.0 PyPI Python

The convenience meta-package for Opencomplai — AI compliance for your AI systems: the EU AI Act, and a NIST AI RMF 1.0 view evaluated from the same evidence. 24 frameworks by status, evaluated, mapping pending external review: EU AI Act (5 rows: mapping not yet reviewed), NIST AI RMF 1.0 (9 rows: mapping not yet reviewed), ISO/IEC 42001:2023 AI management system (3 rows: mapping not yet reviewed), ISO/IEC 27090:2026 AI security guidance (4 rows: mapping not yet reviewed), ISO/IEC 27001:2022 information security management (118 rows: mapping not yet reviewed), SOC 2 Trust Services Criteria (not a SOC 2 report) (61 rows: mapping not yet reviewed), NIS2 Directive (EU) 2022/2555 cybersecurity measures (21 rows: mapping not yet reviewed), DORA Regulation (EU) 2022/2554 digital operational resilience (37 rows: mapping not yet reviewed), EBA Guidelines on ICT, outsourcing and loan origination (25 rows: mapping not yet reviewed), EIOPA Opinion on AI governance and risk management (8 rows: mapping not yet reviewed), GDPR Regulation (EU) 2016/679, duties relevant to AI systems (21 rows: mapping not yet reviewed), Cyber Resilience Act Regulation (EU) 2024/2847 (63 rows: mapping not yet reviewed), ETSI EN 304 223 baseline cyber security for AI (72 rows: mapping not yet reviewed), ISO/IEC 42005:2025 AI system impact assessment (20 rows: mapping not yet reviewed), ISO/IEC 23894:2023 AI risk management guidance (23 rows: mapping not yet reviewed); beta: UK agentic AI controls (FCA-aligned) (8 rows: mapping not yet reviewed), OWASP Top 10 for LLM Applications (2025) (10 rows: mapping not yet reviewed), OWASP Top 10 for Agentic Applications (2026) (10 rows: mapping not yet reviewed), Colorado ADMT Act (SB 26-189, C.R.S. 6-1-1701 to 6-1-1709) (10 rows: mapping not yet reviewed), NYC Local Law 144 of 2021, automated employment decision tools (8 rows: mapping not yet reviewed), California CCPA regulations on ADMT and risk assessments (CPPA) (9 rows: mapping not yet reviewed), ISO/IEC 27701:2025 privacy information management, controls relevant to AI systems (44 rows: mapping not yet reviewed), California CCPA as amended by the CPRA, business duties relevant to AI systems (22 rows: mapping not yet reviewed), UK FCA AI control library, twelve control domains (20 rows: mapping not yet reviewed). Installing opencomplai gives you both the risk engine and the command-line tool in one step.

Not sure whether the EU AI Act applies to your AI system? Try the free EU AI Act checker: rules-based, a few minutes, not legal advice.

Install

pip install opencomplai

This installs:

  • opencomplai-core — the deterministic, rule-based EU AI Act risk engine and code-corroboration scanner.
  • opencomplai-cli — the opencomplai command-line tool.

Quick start

Command line

opencomplai init      # scaffold a system-manifest.json
opencomplai scan      # corroborate manifest against code
opencomplai check     # run the compliance gate

Python SDK

from opencomplai import assess, AssessmentInput, ModelMetadata

result = assess(AssessmentInput(
    model=ModelMetadata(
        name="my-model",
        version="1.0.0",
        modality="text",
        use_case="customer support chatbot",
        deployment_context="production",
    )
))
print(result.risk_level)

Public API re-exported from opencomplai: assess, AssessmentInput, ModelMetadata, RiskLevel, RiskResult, RuleResult, ScanResult, ScanStatusArtifact, SystemManifest, and, for assessing several frameworks side by side, evaluate_targets, resolve_targets, FRAMEWORKS, FrameworkPack, FrameworkReport and GapReport.

Runtime events

RuntimeReporter records decisions, out-of-mandate actions, metrics and incidents of a running system, keeps them in a local buffer file and sends them in batches. Only hashes and metadata leave the machine: the tool input is hashed, never stored or sent.

from opencomplai import RuntimeReporter

with RuntimeReporter("support-bot") as reporter:
    reporter.decision(
        "support-bot", "refund_order", "success", {"order_ref": "ord_7Hq2xK9mWb4vTz1L"}
    )
    reporter.metric("latency_ms", 182.5, unit="ms")

It sends with OPENCOMPLAI_API_KEY and OPENCOMPLAI_DASHBOARD_URL, the same pair opencomplai push uses; without them it only buffers. Use one buffer file per system and one process per file, and keep .opencomplai/runtime-events.jsonl* out of version control (the same folder holds signed records you do commit). See the SDK reference for the buffer, the retries and the event format.

Optional: AI intent plugin

For optional intent analysis of code callsites (it includes a deterministic matcher that needs no download; local GGUF models need the [deep] extra), also install opencomplai-ai:

pip install opencomplai-ai
opencomplai scan --ai-intent   # deterministic matcher (codebert-onnx), no download

scan --ai-intent and scan --propose both use the deterministic matcher unless you pass --ai-model (and scan --ai-intent also honours a model saved with opencomplai ai configure). A local GGUF LLM such as qwen2.5-coder-1.5b is opt-in and needs pip install 'opencomplai-ai[deep]'.

Documentation

Full guides, SDK reference, and the EU AI Act concepts at docs.opencomplai.com.

License

AGPL-3.0-only. See LICENSE.

Metadata

Release files for opencomplai 0.18.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opencomplai 0.18.0
File Size Uploaded Provenance Actions
opencomplai-0.18.0.tar.gz 46.6 kB With provenance Details for opencomplai-0.18.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for opencomplai 0.18.0
File Interpreter ABI Platform Actions
opencomplai-0.18.0-py3-none-any.whl Python 3 none any Details for opencomplai-0.18.0-py3-none-any.whl

Total release size: 73.9 kB

Release files / opencomplai-0.18.0.tar.gz

Download URL opencomplai-0.18.0.tar.gz
Size 46.6 kB
Tags Source
SHA-256 checksum
How to use checksums
55f8812b5bbcadb74ae5f8a55f85b2483eba3116017a6074e4ef967c186bcea2
BLAKE2b-256 checksum
How to use checksums
61e3e4ce7e7dae8a87dd4b1681f5c506ecc286fc31929fd191fde0d6fc611674
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / opencomplai-0.18.0-py3-none-any.whl

Download URL opencomplai-0.18.0-py3-none-any.whl
Size 27.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb49031b89dc8405ac6ebba5bc711f387420ec2d091d237854fc427c20d84573
BLAKE2b-256 checksum
How to use checksums
0f6ad23a0fcd0980cf84507f063c89af17a19e25312dc7215b9fb5666041dc46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for opencomplai 0.18.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for opencomplai-0.18.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page