Mirror Mode

Observe every AI request without adding latency or blocking anything.

How it works

In normal mode, SignalVault sits between your app and the AI provider — it evaluates guardrails before the request is sent and can block or redact content.

In mirror mode, requests go directly to the AI provider first. SignalVault receives a copy of the request and response asynchronously and logs everything to your audit trail. No latency is added and requests are never blocked.

When to use it

  • Getting started — deploy mirror mode first to see what your AI traffic looks like before enabling blocking rules
  • Latency-sensitive paths — keep the audit trail without any overhead on the request path
  • Gradual rollout — run mirror mode alongside normal mode on different environments to compare

Node.js

const client = new SignalVaultClient({
  apiKey: 'sk_live_...',
  openaiApiKey: process.env.OPENAI_API_KEY,
  mirrorMode: true,
});

Python

client = SignalVaultClient(
    api_key="sk_live_...",
    openai_api_key=os.environ["OPENAI_API_KEY"],
    base_url="https://api.signalvault.io",
    mirror_mode=True,
)

Mirror mode still records guardrail violations in the audit log — they just won't block or redact the request. This lets you fine-tune rules before enforcing them.