gh0st

ZDR Verification

Zero Data Retention — runtime verification of xAI data retention policy

What is ZDR?

Zero Data Retention (ZDR) means xAI does not persist your conversation data after inference completes. gh0st verifies this at runtime — it does not assume every xAI account has ZDR enabled.

ZDR is enabled at the xAI team/account level. You must have ZDR enabled in your xAI console for verification to succeed.

How Verification Works

1

Preflight Request

gh0st sends harmless test request with store:false to xAI Responses API

2

Header Check

xAI responds with x-zero-data-retention: true if ZDR active for your team

3

Cache Result

Verification cached for 30 minutes to avoid repeated checks

4

Strict Mode Gate

If ZDR unverified, strict mode blocks sensitive requests until verified

store=false vs ZDR

Aspectstore=falseZDR
What it isRequest parameter sent to xAIxAI team-level retention policy
Controlgh0st sends on every requestConfigured in xAI console
VerificationSent automatically by gh0stChecked via x-zero-data-retention header
ScopePer-requestAccount/team-wide
GuaranteeAsks xAI not to persist responsexAI commits to no retention

Privacy Modes

Strict (default)

ZDR Required
Required
Behavior
Blocks sensitive requests until ZDR verified

Extended

ZDR Required
Optional
Behavior
Allows MCP/tools with explicit consent

CLI Commands

gh0st zdr              # Verify ZDR status gh0st zdr --force      # Force fresh verification (bypass cache) gh0st doctor           # Includes ZDR check in diagnostics