The detection engine is the same binary in every Deployment mode. There are three: Cloud (we run everything), Hybrid (the engine runs on your servers and reports to our dashboard) and Air-gapped (engine and dashboard both run on your servers). “Self-hosted” below means Hybrid or Air-gapped; where the two differ, the row names the mode. Self-hosting does not give you a cut-down firewall, the
/guard engine, policy enforcement, audit trail, and RBAC run on your servers. What differs is the managed surface around it: metering, hosted inference, the control plane, and a small amount of proprietary tooling that is stripped from customer images. This page is the honest line-by-line.Capability matrix
Legend: ✅ available · ⚙️ available but you operate/supply it · ⚠️ works, with the caveat stated · ❌ not available ·, not applicable
Why the cloud-only items are cloud-only
Red-team attack engine & self-test UI
Red-team attack engine & self-test UI
The offensive red-team engine is proprietary attack tooling that is stripped from non-cloud images at build time (
DEPLOYMENT_MODE ≠ cloud). It is internal IP we do not ship inside customer environments. The defensive detectors it exercises are fully present in self-host; only the built-in “attack yourself” harness is cloud-only. You can still run your own adversarial spot-checks against your live config by POSTing known-attack payloads to /guard in CI.Managed ML and LLM-judge inference
Managed ML and LLM-judge inference
On Cloud we operate the classifier and LLM-judge inference for you. Self-hosted,
ML_INFERENCE_MODE=local runs the prompt-injection and toxicity classifiers and the multi-turn embeddings inside the engine, from model weights you download yourself, with your own Hugging Face token and under each model’s licence, which you accept on your own account (Third-Party Models); PromptGuard does not ship or redistribute them. It never calls hosted inference. The LLM judges need a judge server inside your network: the Helm chart’s optional judge service (vLLM serving gpt-oss-safeguard-20b, which needs a GPU and weights you download; bring your own GPU model server, not validated by PromptGuard), or your own OpenAI-compatible server at LLM_GUARD_BASE_URL. Every detector that cannot run is listed on the scan result as unavailable, so reduced coverage is never read as a pass. ML_INFERENCE_MODE=off runs the (substantial) rule engine alone.Stripe billing & quota metering
Stripe billing & quota metering
Cloud enforces per-plan monthly request quotas through Stripe-backed subscriptions. A self-hosted instance has no reason to phone a billing provider, so it runs on a signed, time-limited license (365 days by default; a hybrid install renews it automatically through its daily check-in, an air-gapped one by installing the renewed licence we send) and is metered-but-uncapped: the counter increments for your own visibility, but requests are never hard-capped. With no license installed, billable requests get
503 until one is (health and maintenance keep running); an expired license keeps serving for 7 days, after which a lapsed/invalid license fails closed on billable requests (503 LICENSE_INACTIVE) while /health and /docs stay up.Per-endpoint contracts are billed from a report you send monthly. Shadow fleets are priced per Billable Endpoint, and with no billing provider to report to, the install exports the count instead: run python -m shared.billing.services.endpoint_export_service --month YYYY-MM in the API container once a UTC month has closed, and send the JSON it prints to PromptGuard. It lists each Organization’s endpoints, grouped under the Organization invoiced for them, and names each machine by a hash only, never a hostname or user. The same month always exports the same file, so it can be audited against your inventory and re-run to check.Shadow AI agent auto-update & staged rollout
Shadow AI agent auto-update & staged rollout
Staged rollout, kill-switch, and auto-update for the Shadow AI desktop agents are control-plane features: they need the hosted release/telemetry backend to target cohorts and halt a bad release. An air-gapped fleet distributes agent updates through your own MDM instead.
Two things that behave differently self-hosted
Monitoring a self-hosted instance
The API serves Prometheus metrics atGET /metrics, on the same origin as everything else, and only to a scraper that presents METRICS_TOKEN as Authorization: Bearer <token>. With no METRICS_TOKEN set, /metrics answers 404, and the API’s startup log says so. It is never open, because in both shipped topologies the API’s origin is reachable from outside: the Helm chart’s default ingress serves every path, and on Docker Compose port 8080 is the origin browsers call.
- Helm: the chart generates
METRICS_TOKENinto the API’s Secret on first install and keeps it across upgrades. To choose it yourself, setapi.secrets.metricsToken. Setmonitoring.serviceMonitor.enabled=trueand the Prometheus Operator scrapes every API pod, presenting the token from that Secret. Scrape pods, not the Service: the counters are per pod, so they are summed across pods. Setmonitoring.prometheusRule.enabled=trueto install the alert rules we run on Cloud, written against these series. For a Prometheus outside the cluster, read the token withkubectl get secret <release>-api-secrets -o jsonpath='{.data.METRICS_TOKEN}' | base64 -d. - Docker Compose: set
METRICS_TOKENin your.env(generate one withopenssl rand -hex 32) and restart the API. Scrapehttp://<host>:8080/metrics.
promptguard_conversation_memory_failures_total counts turns scanned without their earlier turns because the store failed or was slow, and promptguard_kv_entries_rows estimates the rows in the kv_entries table that holds them (absent when the store is Redis).
When a Hybrid data plane cannot reach PromptGuard
A Hybrid data plane writes each event to an outbox table in your own Postgres, in the same transaction that records the event, and forwards the outbox to our dashboard in batches. If it cannot reach us, because of a PromptGuard outage, your network, or a revoked instance token, every event stays in the outbox, however long that lasts. The data plane retries with exponential backoff, at least once a minute, and forwards the whole backlog, oldest first and with the original timestamps, as soon as it gets through. Nothing is dropped for being old, and the outbox has no size limit: it grows in your Postgres until we answer. The one event that is ever set aside is one our dashboard refuses on its own while it accepts the others. When a batch is refused with400, 413 or 422 (for example an event too large to accept), or the same oldest event keeps drawing a 5xx, the data plane resends that batch one event at a time, so the other events in it still arrive. An event refused twice by itself while others get through is kept in the outbox with status dead_letter rather than deleted, and the API logs the control plane refused N event(s) sent alone at ERROR. If no event gets through even alone, the fault is ours, not the events’: nothing is set aside, the data plane keeps retrying, and it logs the control plane refused every event it was sent at ERROR.
To send events in dead_letter again, for example after a PromptGuard fix, return them to the queue in your Postgres. Our dashboard ignores an event it already holds, so this never duplicates one:
max(), because every pod reports the same table:
The chart’s alert rules fire
PromptGuardEventForwardingStalled when the oldest waiting event is more than 15 minutes old, and PromptGuardEventsDeadLettered on any event set aside. Without Prometheus, the same backlog is in the API log: every failed attempt logs event forward failed, retrying in Ns: ...; N events waiting, oldest Ns.
Choosing a model
Hybrid and Air-gapped deployments are an Enterprise-tier capability. See the Compliance page for the air-gap egress audit, or contact sales to scope a deployment.
Next steps
Enterprise Setup
Organizations, SSO, RBAC, and audit logs
Compliance
Air-gap egress audit, build provenance, and certification status
Shadow AI Deployment Modes
Personal, fleet, and air-gapped agent deployment
Reliability
Fail-open vs fail-closed behavior