Skip to main content

Norviq

Runtime policy enforcement for LLM agent tool calls.

License Docs

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 auditedbefore 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 allow with rule_id: default_allow — so a typo in agent_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) or NRVQ_NO_POLICY_DECISION=deny to 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/evaluate requires a bearer token. Without one the client fails closed.

Links

Apache 2.0 licensed.

Download files

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

Source Distribution

norviq-0.2.5.tar.gz (748.1 kB view details)

Uploaded Source

Built Distribution

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

norviq-0.2.5-py3-none-any.whl (831.5 kB view details)

Uploaded Python 3

File details

Details for the file norviq-0.2.5.tar.gz.

File metadata

  • Download URL: norviq-0.2.5.tar.gz
  • Upload date:
  • Size: 748.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for norviq-0.2.5.tar.gz
Algorithm Hash digest
SHA256 bc963acc221ca8c94801e33caeeb016db957f55a887b7ea19d7a1d53534231e4
MD5 747780559aa9a83daaa361cd28727068
BLAKE2b-256 e0e876c15c5ef0ad199dbe81ba5d567d0f9d3a3195df913b5e4274f2d17938e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for norviq-0.2.5.tar.gz:

Publisher: release.yml on norviq-dev/norviq

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file norviq-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: norviq-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 831.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for norviq-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fc43a22bf1e0b3467f87f28601416a93d1c2ab9a7a5091955c4c5a63af806027
MD5 4564213f2671c071171ac1cca7edd21a
BLAKE2b-256 c39d1bf8891f7d53452d9b2da18472441c69a5d76655055b5ade96ecfc113cdf

See more details on using hashes here.

Provenance

The following attestation bundles were made for norviq-0.2.5-py3-none-any.whl:

Publisher: release.yml on norviq-dev/norviq

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

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