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
| Aspect | store=false | ZDR |
|---|---|---|
| What it is | Request parameter sent to xAI | xAI team-level retention policy |
| Control | gh0st sends on every request | Configured in xAI console |
| Verification | Sent automatically by gh0st | Checked via x-zero-data-retention header |
| Scope | Per-request | Account/team-wide |
| Guarantee | Asks xAI not to persist response | xAI 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