Sample multi-vector payload loaded. Click Download & Scan 3 Layers (~518.5 MB) to execute real local ONNX inference.
Gateway Exports & Audit Trail
Local AI Engine
Three dedicated ONNX models (~518.5 MB total) run strictly off the main thread in isolated FIFO Web Workers over shared Transformers.js 3.7.5 CPU WebAssembly — identical zero-egress protection on both WebGPU and CPU-only devices.
Stage 1 · Prompt Injection Shield (302.8 MB q8 · Apache-2.0)
Horizon-Labs/prompt-injection-guard-small · ModernBERT 141M (8k ctx, v2.7.1 OSC fix) · shared Transformers.js 3.7.5
Stage 2 · Content Moderation (186.9 MB q8 · OpenRAIL-M 0.1)
zgpu-ai/zlm-v1-moderation-edge · DeBERTa-base 139M multitask-v6 + 13-category isotonic calibration · shared Transformers.js 3.7.5
Stage 3 · Privacy & PII Guard (28.75 MB q8 · Apache-2.0)
onnx-community/bert-small-pii-detection-ONNX (49 BIO tags, built worker reuse) + deterministic API-secret prefix rules
How the Local AI Safety & Privacy Firewall Works
Every LLM agent gateway faces three distinct failure modes that no single classifier covers alone: instruction hijacking inside user prompts or retrieved RAG documents, abusive or illicit safety policy violations, and accidental PII or credential leakage. This showcase runs all three defenses client-side before a single token ever reaches an upstream model.
1. Prompt Injection Shield (ModernBERT 141M)
Horizon Prompt Injection Guard Small (Horizon-Labs/prompt-injection-guard-small,
Apache-2.0, pinned rev 8fcf1ab with the v2.7.1 ANSI OSC tokenizer fix, 268.41 MB int8 gather
weights + 34.39 MB tokenizer) scores both the full payload and each individual segment so indirect RAG
injections buried inside HTML comments or tool outputs are isolated without false-alarming benign look-alikes
(96.5% NotInject accuracy).
2. Calibrated 13-Category Content Moderation
ZLM v1 Moderation Edge (zgpu-ai/zlm-v1-moderation-edge, CodeML OpenRAIL-M 0.1,
pinned multitask-v6 rev 5bc79ed, 185.34 MB int8 + 1.51 MB tokenizer + 21 KB
postprocess.json) runs unpadded 192-token DeBERTa-base sequences and applies exact sigmoid,
parent-hierarchy clamping, and piecewise-linear isotonic calibration across 13 OpenAI moderation categories
(English-only; calibrated binary cut 0.4656).
3. 49-Label Neural PII + Secret Prefix Guard
BERT-Small PII Detection (onnx-community/bert-small-pii-detection-ONNX,
Apache-2.0, 28.75 MB q8, reusing built models/bert-small-pii-detection/worker.js) tags 24
personal, financial, contact, and network entity classes with subword-aligned BIO merging, paired with an
explicitly labeled deterministic scanner for structured API secrets (sk-live-*,
ghp_*, AKIA*, PEM keys). Stage 0 note: openai/privacy-filter
(809.1 MB q4f16 external weights / 837.1 MB total) exceeded Stage 0 transfer budgets under live browser
probing and was fail-closed in favor of fast, universal CPU WASM parity.