Short answer
Claude Code zero data retention applies in two setups: a commercial API key under a ZDR arrangement, or a qualified Enterprise plan with Anthropic’s approval. At Strategized.ai I take rollout leads through both, so you can pick the path that fits whoever runs Claude Code on client code, and know exactly what the BAA needs.
Here is the setup I see most often. A developer on staff, or an outside consultant, already runs Claude Code on a client’s codebase, on whatever key or login was handy. Someone in the office assumes the company’s zero data retention agreement covers it. That is almost right. ZDR is applied per organization and per sign-in, so the same tool can be covered on one laptop and not on the next.
This is not a developer setup guide, and it is not legal or HIPAA advice. It is the decision a rollout lead makes before a client’s compliance officer asks the question: which path each person is on, what ZDR leaves out, and what the BAA requires on each path.
If nobody on your team runs Claude Code, you don’t need this page. On the Team plan the short answer is different, and what zero data retention means on Claude Team covers it; the plan guides on Strategized.ai start one step earlier. Just you and Claude, no staff? A short call with CoworkConsultant.com will serve you better than a strategy engagement.
Key facts
| Fact | What it means for a rollout lead |
|---|---|
| API key path | ZDR applies when Claude Code runs on an API key from a commercial organization that has a ZDR arrangement |
| Enterprise path | A separate Claude Code ZDR offering for qualified Enterprise accounts, enabled by Anthropic, not from admin settings |
| Console and playground | Any usage in the Claude Console, including the playground, is outside ZDR |
| Metrics exemption | With metrics logging on in Claude Code, usage statistics are exempt and may be retained |
| BAA on the API key path | Applies to Claude Code only when that Console organization has ZDR enabled |
| BAA on a HIPAA-ready Enterprise plan | Covers Claude Code with the HIPAA configuration applied to Claude Code (local mode), or with ZDR for Claude Code |
| Covered Models | Limited data retention and review still apply as part of Anthropic’s safety work |
| Scope | Per organization; a new organization needs its own enablement |
Sources: Zero data retention products, API and data retention, Claude Code ZDR documentation, BAA for commercial customers.
Claude Code Zero Data Retention: The Two Setups Anthropic Names
Start with the list. Anthropic’s zero data retention article names the only products a ZDR agreement applies to: eligible Anthropic APIs, Anthropic products that use your commercial organization API key, including Claude Code accessed via the API, and Claude Code for Enterprise plans.
Three conditions travel with it. ZDR is subject to Anthropic’s approval, and requests are reviewed and applied one organization at a time. Even under ZDR, Anthropic still keeps User Safety classifier results to enforce its Usage Policy, and it can store data where needed to comply with law or combat misuse. And for Covered Models, limited data retention and review still apply as part of Anthropic’s safety work.
What is missing from the list matters just as much. The Team and Enterprise product interfaces are not ZDR-eligible; the one exception is Claude Code on Enterprise. Claude Code on a Free, Pro, Max or Ultra account is a consumer product and sits outside ZDR too.
So your first question is not “do I have ZDR?” It is “how does each of your people sign in when they run Claude Code?” In my consulting work, that sign-in list is the first thing I ask for, before anyone opens a contract. The wider picture for a small company, including how to request ZDR at all, is in Claude zero data retention for a small business.
API Key or Enterprise Plan: Two Paths for a Firm Running Claude Code on Client Code
Picture your own firm. A developer on your staff, or a consultant you hired, runs Claude Code against a client’s code. That work can sit under ZDR in two ways, and they are separate arrangements, not two switches on one.
- The API key path. ZDR applies when Claude Code runs on an API key from a commercial organization with a ZDR arrangement. Usage in the Claude Console itself, including the playground, is not covered. If metrics logging is on in Claude Code, productivity data such as usage statistics is exempt and may be retained. A Console user can confirm ZDR under Settings > Privacy Controls > Data retention period.
- The Enterprise path.Claude Code’s own ZDR documentation says it is available to qualified accounts on Claude for Enterprise, is not included in the standard plan, and cannot be enabled from your admin settings. Anthropic enables it separately after confirming eligibility, and every enablement action is audit-logged. The organization keeps its admin tools while under ZDR: cost controls per user, an analytics dashboard, server-managed settings and audit logs.

Two rules apply to both paths, and they are where your rollout will slip if it slips at all. ZDR is enabled per organization, and it does not carry over to a new organization created under the same account. And it covers only requests that sign in to the ZDR organization. A developer on a personal account, or on an API key from a different organization, is outside it, whatever the company’s agreement says.
One more boundary. Enterprise ZDR for Claude Code covers Anthropic’s direct platform only. If the work runs through Amazon Bedrock, Google Cloud or Microsoft Foundry, those platforms’ own retention policies apply. Retention is one review; if your developers also connect Claude to a custom MCP server, run the owner’s security checks before staff connect as well.
Which path fits you? In my experience the API key path suits a firm with one or two developers already working through a Console organization. The Enterprise path suits you if you want Claude Code under the same admin controls as everyone else’s seats. If you are on pay-as-you-go keys today, there is a move to Enterprise that keeps ZDR for Claude Code, and your account team coordinates it.
Not sure which path your people are on? Book a short call with Strategized.ai and leave with a sign-in list and a path for each person on it.
What Zero Data Retention Does Not Cover, Even When It Is On
This is the section your client’s security questionnaire will test. Anthropic’s API and data retention page sets out what ZDR does not reach. Put the API side and the Enterprise side together and the list looks like this:
- Chat in the Enterprise web interface. The chat side of the plan follows standard retention, even in a ZDR organization.
- Claude Code analytics. It does not store prompts or responses, but it collects productivity metadata such as account emails and usage statistics.
- User and seat management. Account emails and seat assignments are kept under standard policies.
- Third-party tools and MCP servers. Data processed by outside integrations is not covered.
- The Claude Console and Claude Managed Agents. Console usage, including the playground, is outside ZDR, and Managed Agents session transcripts persist until you remove them.
- Policy violations and the law. Data can be kept where the law requires it or where a session is flagged for a Usage Policy violation, and flagged inputs and outputs may be retained for up to 2 years.
ZDR also switches features off. On Enterprise, features that need to store prompts or completions are blocked at the backend: cloud sessions, artifacts, feedback submission, Remote Control and Claude Tag among them. A developer who tries one gets an error saying the organization’s policies do not allow that action. Tell your team before they find out in the middle of a task.
Then the model carve-out. Covered Models require limited retention and review for safety work. In a Claude Code ZDR organization that can’t use them, they are missing from the model picker or shown as disabled, and the other models stay available. Make sense? ZDR narrows what is kept. It does not promise that nothing is.
Watch this
Never tell a client “Claude keeps nothing.” The honest line is narrower: covered Claude Code prompts and responses are not stored after the response is returned, with the exceptions listed here. If the client’s contract demands more, read what a zero retention demand actually requires before you reply.
Business Associate Agreements for Commercial Customers: What the BAA Needs for Claude Code
Your compliance officer’s next question is the BAA, every time. Anthropic’s BAA article for commercial customers is the page to read, and its answer depends on the path:
- Claude Code on a Console API key. The BAA applies only when that Console organization has ZDR enabled.
- Claude Code on a HIPAA-ready Enterprise plan. It is covered in one of two ways: the Primary Owner applies the HIPAA configuration to Claude Code (local mode), or the organization has ZDR for Claude Code. Without either, Claude Code is available but not covered. Keep protected health information out of it.
- The HIPAA-ready services themselves. The Claude API with HIPAA configuration enabled and HIPAA-ready Enterprise plans don’t need ZDR for the BAA.

Read the edges before you sign. The BAA covers only the single organization that accepted it, and it excludes the Claude Console. With the HIPAA configuration applied, cloud features such as Claude Code cloud sessions and Remote Control are not available, and the Primary Owner can’t remove the configuration afterward. Covered Models are not available to Claude Code while the organization has ZDR for Claude Code, unless Anthropic has expressly authorized it.
One trap if you already use the API under a BAA. An API BAA signed before December 2, 2025 covers API usage only and does not extend to the HIPAA-ready Enterprise plan. Adding Enterprise means a new BAA with your account team.
None of this makes a firm compliant. It tells you which configuration the BAA expects for Claude Code. Your counsel decides whether that meets your obligations. If health data only shows up now and then, carving out an occasional PHI workflow may be the cheaper answer than moving the whole office.
What a Rollout Lead Sees When the Client’s Compliance Officer Asks
A rollout lead at a software consultancy gets an email from a client’s compliance officer. Her question: does the AI your developers use on my code keep anything? She does not guess. She opens her sign-in list. The staff developer runs Claude Code through the company’s Enterprise login. The contract developer runs it on an API key from his own Console organization.
She starts with the contractor. She asks him to open the Claude Console and go to Settings > Privacy Controls > Data retention period, and to send her what the screen shows. It does not show ZDR. His sessions on that key are outside ZDR, whatever her own agreement says. She moves his work onto a key from her company’s organization before he touches the client’s code again.
Then the staff developer. There is no switch for her to find, because Enterprise ZDR is enabled by Anthropic, not from admin settings. She asks the account team to confirm in writing that Claude Code ZDR is on for this organization. The developer sees what changes once it is: a feedback command returns an error saying the organization’s policies do not allow that action, and cloud sessions are blocked.
Last, the BAA. The client’s test files hold patient records. Her Primary Owner opens Organization settings > Data and privacy > HIPAA Compliance and looks for the checkmark that, per the HIPAA-ready Enterprise article, confirms the organization is enabled. No checkmark means not enabled, so patient data stays out of Claude until it is.
Her reply fits in one paragraph: which path each developer is on, what ZDR covers, what it leaves out, and the BAA status. That is the reply you want to be able to send.
Michael’s take
The risky Claude Code setup is rarely the one with no ZDR. It is the one where everyone believes they have it. With the businesses I work with, the gap is almost always a sign-in: a contractor’s own key, a personal login on a work laptop, a second organization nobody enabled. For a small firm the cost lands on one client, the one who asked a precise question and got a loose answer. List the sign-ins before you promise anything.
When the rule has to hold on every machine, write it down where Claude reads it. A custom Claude plugin built by my team can carry your sign-in rule and your PHI fence into every member’s Claude as standing instructions, so the policy is not a memo nobody opens.
Your Claude Code ZDR Check: Six Answers Before You Reply to a Client
Write your six answers down before you reply to anyone.
- Every person who runs Claude Code, and how each signs in: Enterprise login, commercial API key or a personal account.
- For each API key, the Console organization it belongs to, and whether its data retention setting shows ZDR.
- For Enterprise, written confirmation from your account team that Claude Code ZDR is on for this organization, and for any new one.
- Whether metrics logging is on, since usage statistics are then kept.
- The third-party tools and MCP servers in use, each with its own data terms.
- If health data is involved: HIPAA enabled, plus the HIPAA configuration or ZDR for Claude Code. Claude Code comes with the Enterprise seat, but without that configuration or ZDR it is available and not covered under the BAA.
Prompt: sort each Claude Code user by zero data retention path
I am checking which of my team's Claude Code sessions sit under zero data retention. Below is a list of each person who runs Claude Code and how they sign in, followed by the rules I am applying. Rules: - Enterprise login: covered only if the account team has confirmed Claude Code ZDR for this organization. - Commercial API key: covered only if that key's Console organization shows ZDR. - Personal account, or a key from another organization: not covered. For each person, return one line: name, sign-in, covered / not covered / unconfirmed, and the one thing I must check to confirm it. Do not guess; mark anything my list does not say as unconfirmed. [paste the list of people and sign-ins here]
Claude returns one line per person with a status and the check that would confirm it. Anything marked unconfirmed is your to-do list before the client gets an answer.
For the plan question behind all this, Claude Team vs Enterprise for client data sets out the trade. Then book a short call with Strategized.ai: bring the six answers and leave knowing which path each person is on and what to tell the client.
Frequently Asked Questions
Does Claude Code zero data retention work with a Console API key?
Yes, when the key belongs to a commercial organization that has a ZDR arrangement. Strategized.ai reminds rollout leads that Console usage, including the playground, stays outside it, and usage statistics may be kept when metrics logging is on.
Is Claude Enterprise zero data retention included in the standard plan?
No. Strategized.ai explains that Claude Code ZDR on Enterprise is for qualified accounts only, cannot be switched on from admin settings, and is enabled by Anthropic one organization at a time after it confirms eligibility.
Does the BAA cover Claude Code without zero data retention?
Only on a HIPAA-ready Enterprise plan with the HIPAA configuration applied to Claude Code (local mode). Strategized.ai flags the API key path as stricter: there the BAA applies only when that Console organization has ZDR enabled.
Is the Claude Console playground covered by Claude Code data retention rules under ZDR?
No. Strategized.ai points out that any usage in the Claude Console, including the playground, is outside zero data retention, and the BAA for commercial customers excludes the Console as well.
