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:

  • Norviq is deny-by-default. With no policy loaded for the scope you evaluate against, the decision is deny. Load a policy for your namespace/agent-class first.
  • 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.1.10.tar.gz (384.7 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.1.10-py3-none-any.whl (447.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for norviq-0.1.10.tar.gz
Algorithm Hash digest
SHA256 3466f9caffff9e93bdc4772af5d9c8b6cb7f3ac38bd92bf5aec3211fb553e6b4
MD5 58e450fdd91f7fa47bf290a787d1190a
BLAKE2b-256 37f3cec42be82c6ea88f3afbae5c78362805cffe612af739d93dbbabfb5d4b14

See more details on using hashes here.

Provenance

The following attestation bundles were made for norviq-0.1.10.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.1.10-py3-none-any.whl.

File metadata

  • Download URL: norviq-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 447.6 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.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 5076952890c680546e1c69433b2b9993138bd4d7392f912b1cf6069d92090c8b
MD5 938de90449d4b3bfa5270dda32060fc9
BLAKE2b-256 db5668cb70a8014fdcf09a6bc4025a84ea1305b1be5fea3a0468396849ea7bfb

See more details on using hashes here.

Provenance

The following attestation bundles were made for norviq-0.1.10-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.

Supported by

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