Start the runtime
Run this beside your app. Local mode is the default, so there is no account, no key, and no outbound calls - the runtime enforces its deterministic rules on its own.
docker run -p 8080:8080 znyx/runtime:latest
Mount your own policy with -v $(pwd)/policies.yaml:/app/config/policies.yaml
The runtime enforces the deterministic rules out of the box and needs no sidecar. To also run the model-backed detectors - prompt injection, toxicity, PII entities - start the sidecar alongside it and point the runtime at it. Use this instead of the command above.
# 1. a shared network so the two containers can find each other by name docker network create znyx-net # 2. the inference sidecar docker run -d --name znyx-inference --network znyx-net \ znyx/inference:latest # 3. the runtime, pointed at the sidecar docker run -d --name znyx-runtime --network znyx-net \ -e ZNYX_INFERENCE_URL=http://znyx-inference:9000 \ -p 8080:8080 \ znyx/runtime:latest
Both containers must be on the same network, and the address must use the sidecar's container name - inside the runtime container localhost means the runtime itself, not the sidecar. Model weights are not bundled in the image.