Norviq
Runtime policy enforcement for LLM agent tool calls.
Norviq is a policy enforcement point (PEP) that sits between an agent's reasoning loop and the tools
it can call. Every tool call is evaluated against OPA/Rego policy and then allowed, blocked,
escalated, or audited — before the tool function runs. It turns "the model decided to call
execute_sql" from implicit trust into an enforced, auditable decision.
This package is the Python SDK: it wraps your existing tools so enforcement happens in-process. The full platform (control plane, console, Kubernetes admission webhook, sidecar injection) is installed with the Helm chart — see the documentation.
Install
pip install "norviq[langchain]" # LangChain / LangGraph
pip install "norviq[crewai]" # CrewAI
pip install "norviq[autogen]" # AutoGen
pip install "norviq[semantic-kernel]" # Semantic Kernel
pip install "norviq[frameworks]" # all of the above
Use
from norviq.sdk import PolicyEngineClient, ToolInterceptor
from norviq.sdk.langchain.adapter import protect
engine = PolicyEngineClient() # NRVQ_POLICY_ENGINE_URL + NRVQ_API_TOKEN
interceptor = ToolInterceptor(evaluator=engine)
# Every tool is wrapped: policy runs before the tool body, on every call the model makes.
tools = protect([search_kb, execute_sql, delete_record], interceptor, session_id="session-1")
A blocked call raises NorviqBlockError, which carries the full PolicyDecision — including the
rule_id that fired and a human-readable reason — so you can surface a refusal instead of
performing the action:
from norviq.sdk import NorviqBlockError
try:
result = agent.invoke({"messages": [("user", "delete all customer records")]})
except NorviqBlockError as exc:
print(f"blocked by {exc.decision.rule_id}: {exc.decision.reason}")
Two things to know before your first run, because either one makes a correct setup look broken:
-
A scope with no policy is ALLOWED, not denied. With nothing loaded for the namespace/agent-class you evaluate against, the decision is
allowwithrule_id: default_allow— so a typo inagent_class, or an agent pointed at a namespace you never wrote a policy for, looks like a clean pass rather than an error. If your first calls all come back allowed, check that the scope you are sending matches the scope you wrote the policy for.This is deliberate: Norviq sits in the request path of production agents, so an unconfigured scope must not take the customer's traffic down. Set
config.noPolicyDecision: deny(chart) orNRVQ_NO_POLICY_DECISION=denyto lock a namespace down once you have written its policies — deny-by-default is then an explicit choice you make per deployment, not a surprise on day one. -
POST /api/v1/evaluaterequires a bearer token. Without one the client fails closed.
Links
- Documentation — https://docs.norviq.dev
- Integration guide (all supported frameworks) — https://github.com/norviq-dev/norviq/blob/main/docs/guides/integrating-agents.md
- Runnable examples — https://github.com/norviq-dev/norviq/blob/main/examples/README.md
- Source — https://github.com/norviq-dev/norviq
- Security policy — https://github.com/norviq-dev/norviq/blob/main/SECURITY.md
Apache 2.0 licensed.
Metadata
Release files for norviq 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| norviq-0.2.5.tar.gz | 748.1 kB | With provenance | Details for norviq-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| norviq-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for norviq-0.2.5-py3-none-any.whl |
Total release size: 1.6 MB
Release files / norviq-0.2.5.tar.gz
| Download URL | norviq-0.2.5.tar.gz |
|---|---|
| Size | 748.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc963acc221ca8c94801e33caeeb016db957f55a887b7ea19d7a1d53534231e4
|
|
BLAKE2b-256 checksum How to use checksums |
e0e876c15c5ef0ad199dbe81ba5d567d0f9d3a3195df913b5e4274f2d17938e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Aug 21, 2026.
Transparency logRelease files / norviq-0.2.5-py3-none-any.whl
| Download URL | norviq-0.2.5-py3-none-any.whl |
|---|---|
| Size | 831.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc43a22bf1e0b3467f87f28601416a93d1c2ab9a7a5091955c4c5a63af806027
|
|
BLAKE2b-256 checksum How to use checksums |
c39d1bf8891f7d53452d9b2da18472441c69a5d76655055b5ade96ecfc113cdf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Aug 21, 2026.
Transparency logSecurity for norviq 0.2.5
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for norviq-0.2.5.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 Aug 21, 2026.
Transparency logA 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.