Zero data retention for coding agents: what a buyer gets and gives up
Published · Updated · Checked against Claude Code ZDR, data-usage and Compliance API FAQ pages; Cursor, GitHub and Codex docs; 10 Nov 2026
Zero data retention (ZDR) means the model vendor does not store your prompts and responses after the request returns. It does not mean nothing is stored anywhere. The transcript still sits on the developer's machine, some features are switched off, some models are excluded by default, and for Claude Code the vendor-side audit view of those sessions goes away with it. A buyer's job is to write down which of those trades the company has accepted. The table below gives the position per vendor as of 10 November 2026, and the questions after it belong in the order form.
ZDR coverage table
| Vendor | Where ZDR applies | Excluded | Features turned off | Model exceptions | Source/date |
|---|---|---|---|---|---|
| Claude Code (Anthropic) | Claude Code inference on Claude for Enterprise, for qualified accounts; enabled per organization by the account team | Chat on claude.ai, Cowork, Claude Code Analytics metadata, user and seat data, third-party integrations and MCP servers | Cloud sessions, Chat and Cowork unified, Claude Tag, Artifacts, /feedback, /bug, /share, Remote Control | Claude Fable 5.1 and Fable 5 "require data retention by default"; governed by the Covered Models policies | ZDR page, 10 Nov 2026 |
| Cursor | Most models "run under Cursor's ZDR agreements" | Cloud Agents, the only feature that stores code, kept while the agent runs and deleted afterward | Not stated beyond Cloud Agents being optional | Fable 5.1 and Fable 5 require retention with Anthropic; requests fail until an admin approves the policy in the dashboard | Privacy and data governance, 10 Nov 2026 |
| GitHub Copilot | A zero data retention agreement with OpenAI, and with Anthropic for generally available Anthropic features | Not stated on the page as a list; other hosts (Google, xAI, Fireworks) are described separately, with Google caches held up to 24 hours | Not stated | Fable 5 and 5.1 not covered by default; eligible enterprises may use them with ZDR "through the end of 2026" under a time-bound exemption; an admin must enable each Fable model | Model hosting, 10 Nov 2026 |
| Codex (OpenAI) | Eligibility, scope and enablement could not be confirmed | Not confirmed | With ZDR, Modified Abuse Monitoring or non-US storage, full safety findings and resume are unavailable and the task ends | Not confirmed | Agent approvals and security, 10 Nov 2026 |
Treat each blank or "not stated" as a question, not as an absence. A page that does not list a feature does not prove it is stored or not stored. The OpenAI enterprise privacy and DPA pages could not be confirmed on 10 November 2026, so the Codex row rests on one page, and its server-side data retention is not described there. The Codex page covers local controls instead, among them history.persistence and history.max_bytes for transcripts saved under CODEX_HOME.
What a Claude Code ZDR contract actually requires of you
Three conditions in Anthropic's page change how you deploy.
First, ZDR is not a plan feature. The page says it "is not included in the standard Claude for Enterprise plan and cannot be enabled from your admin settings", and that it needs separate enablement by Anthropic. It also applies per organization, so each new organization needs its own enablement.
Second, ZDR covers only requests that authenticate into the ZDR organization. A developer signing in with a personal account or an API key from a different organization is outside it. The page recommends the forceLoginMethod and forceLoginOrgUUID managed settings. Anthropic's admin-setup page says the organization check covers claude.ai logins and not Claude Console logins or gateway sign-in, so a ZDR purchase needs a login policy to match. See finding shadow coding agents.
Third, ZDR is not absolute. Anthropic "may retain data where required by law or to address Usage Policy violations", and for a session flagged for a policy violation the page says inputs and outputs may be kept for up to 2 years.
The tension buyers miss
ZDR is server-side. The developer's machine keeps its own copy. Anthropic's data usage page says Claude Code stores session transcripts locally in plaintext under ~/.claude/projects/ for 30 days by default, adjustable with cleanupPeriodDays. So a company that buys ZDR to avoid a vendor-side copy still holds a local one on every laptop, unencrypted, until the cleanup period passes. Where Claude Code stores sessions and where Codex stores sessions show the locations.
The second half of the tension is audit. The Claude Compliance API FAQ lists what its session endpoints do not capture, and the list includes "sessions for which zero data retention is in effect". The Compliance API is the vendor-side route to session transcripts for Enterprise Claude Code users, so a ZDR organization trades that route away. The ZDR page lists audit logs among the administrative capabilities available with ZDR; whether those logs include any session content could not be confirmed, and the Compliance API FAQ says its Activity Feed does not capture prompt or response text in any case. The result is that, under ZDR, the only record of what the agent was asked and did is the local one. What to log and keep covers how to decide what that record must contain, and Claude Code audit log compliance covers the telemetry route.
Eight questions for the order form
1. Which of our organizations, workspaces or accounts have ZDR enabled,
and who confirms that in writing for each new one? [names]
2. Which products and features are outside ZDR for us (chat, cloud
sessions, analytics metadata, integrations)? List them. [list]
3. Which models are excluded from ZDR by default, and what is the
process and cost to include them? [models, process]
4. For models that require retention, what is retained, for how long,
and who can access it? [retention terms]
5. What can you retain despite ZDR for law or abuse review, for how
long, and how will we be told? [terms]
6. How do we enforce that every developer login lands in the ZDR
organization, and which login types does that check not cover? [method]
7. What audit evidence do we still get under ZDR, and which of our
current evidence sources stop working? [sources]
8. If the ZDR terms change or a new feature needs storage, how are we
notified, and can we refuse the feature? [notice period]
Delete what does not apply, and attach the answers to the contract record.
Where Sealkeep fits
Under ZDR the vendor keeps no copy and the Compliance API excludes those sessions, so any record is the local one. Sealkeep can keep an encrypted, company-controlled copy of Claude Code and Codex local transcripts. For some teams that is the opposite choice to ZDR's intent, and a team that buys ZDR to avoid retention should decide whether keeping its own copy contradicts its policy before it installs anything. If the answer is that it does not, Sealkeep is a store and search layer for files the tools already write: it covers Claude Code and Codex only, not Cursor or Copilot, runs only on machines where it is installed, is not real-time, has an unaudited encryption format, and is not a compliance certification. It has no documented legal hold, scheduled deletion, redaction or SIEM export. See the architecture and data flow page.
FAQ
Is ZDR the same as not training on our data?
No. Anthropic's data usage page says Anthropic does not train generative models on code or prompts sent under commercial terms, a separate commitment from ZDR. ZDR is about storage after the request, not about training.
Does ZDR remove the need for a DPA?
No. The vendor still processes your data during the request, and account and seat data are retained outside ZDR. The DPA review checklist covers that side.
Can we have ZDR and cloud sessions?
For Claude Code, no: cloud sessions are among the features disabled under ZDR because they need server-side storage.
Where do the controls of other vendors differ?
The comparison across the four tools is in coding agent enterprise controls compared.