Skip to main content Switch to mobile version opencomplai-ai 0.18.0 Optional intent-analysis package for Opencomplai (EU AI Act); includes a deterministic matcher that needs no model download
pip install opencomplai-ai==0.18.0 Copy PIP instructions
The optional AI intent classification plugin for Opencomplai. It adds the --ai-intent flag to opencomplai scan, classifying how each AI callsite in your code is actually used — its decision autonomy, the subjects it acts on, and which EU AI Act risk tier and Annex III area it maps to.
All inference runs locally — models execute on your machine via llama.cpp, or via a deterministic code-signal matcher that needs no model weights at all. No code or prompts leave your environment unless you explicitly opt into the saas backend.
opencomplai-ai is a plugin. Install the core engine first:
pip install opencomplai-core # or the opencomplai / opencomplai-cli suite Install
# Base install — only the deterministic codebert-onnx matcher, no download pip install opencomplai-ai # Deep install — required for the local LLMs (for example qwen2.5-coder-1.5b) # and every other generative GGUF model pip install "opencomplai-ai[deep]" The base install runs codebert-onnx, and opencomplai scan --ai-intent uses it by default. A local LLM such as qwen2.5-coder-1.5b needs [deep] and is chosen with --ai-model or opencomplai ai configure — without [deep] that scan fails fast with an actionable message instead of downloading the ~1 GB model first and only then discovering it can't be run.
Once installed alongside the CLI, the --ai-intent flag becomes available on the scan command:
opencomplai scan --ai-intent By default only callsites in files with lexical findings are annotated (fast). To analyze every callsite in the repository:
opencomplai scan --ai-intent --ai-deep Useful flags:
The default model is codebert-onnx, a deterministic Annex III / prohibited-practice / limited-risk code-signal matcher — no model weights, no download, runs on the base install. It trades recall for speed and zero setup. The GGUF models need the [deep] extra; they are downloaded from the Hugging Face Hub on first use and cached locally under ~/.cache/opencomplai/models/.
opencomplai scan --ai-intent # default: codebert-onnx, no download, no [deep] extra opencomplai scan --ai-intent --ai-model qwen2.5-coder-1.5b # local LLM, needs [deep] Model download flow
On first use of a GGUF model, the plugin prompts before downloading and shows a progress bar; the download is refused up front (no prompt, no partial download) if [deep] isn't installed. codebert-onnx needs none of this in normal use — it does deterministic code-signal matching with no model artifact to fetch.
The package also contains a Python-API-only function, opencomplai_ai.downloader.ensure_model("codebert-onnx"), that exports the official PyTorch checkpoint of CodeBERT to ONNX (CodeBERT has no prebuilt ONNX build on the Hub). No CLI command calls it (opencomplai ai configure only saves your model choice), nothing reads the exported file, and it is not used for --ai-intent classification. It needs the separate [onnx] extra (optimum[onnxruntime]).
Full AI-intent guide and the model reference at docs.opencomplai.com.
AGPL-3.0-only. See LICENSE.
Released: Dec 1, 2026
Both files in this release have provenance metadata.
View provenance details
GNU Affero General Public License v3 (AGPL-3.0-only)
ai-governance code-signals compliance-as-code eu-ai-act intent-analysis risk-assessment
Development Status 4 - Beta
Intended Audience Developers
Information Technology
License OSI Approved :: GNU Affero General Public License v3
Operating System OS Independent
Programming Language Python :: 3
Topic Scientific/Engineering :: Artificial Intelligence
Software Development :: Quality Assurance
Release files for opencomplai-ai 0.18.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 155.5 kB
Release files / opencomplai_ai-0.18.0.tar.gz
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.
Release files / opencomplai_ai-0.18.0-py3-none-any.whl
Security for opencomplai-ai 0.18.0
Both files in this release have been uploaded with provenance metadata.
With provenance opencomplai_ai-0.18.0.tar.gz Dec 1, 2026
With provenance opencomplai_ai-0.18.0-py3-none-any.whl Dec 1, 2026
Attestation for opencomplai_ai-0.18.0.tar.gz
Attestation for opencomplai_ai-0.18.0-py3-none-any.whl
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.
Release history Release notifications | RSS feed
Dec 1, 2026 2 release files Full provenance
Nov 16, 2026 2 release files Full provenance
Nov 8, 2026 2 release files Full provenance
Nov 3, 2026 2 release files Full provenance
Oct 28, 2026 2 release files Full provenance
Oct 14, 2026 2 release files Full provenance
Oct 13, 2026 2 release files Full provenance
Oct 12, 2026 2 release files Full provenance
Oct 11, 2026 2 release files Full provenance
Oct 8, 2026 2 release files Full provenance
Sep 24, 2026 2 release files Full provenance
Sep 23, 2026 2 release files Full provenance
Sep 22, 2026 2 release files Full provenance
Sep 4, 2026 2 release files Full provenance
Aug 26, 2026 2 release files Full provenance
Aug 21, 2026 2 release files Full provenance
Aug 13, 2026 2 release files Full provenance
Jul 3, 2026 2 release files No provenance
Jun 28, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 147871d











