Does Claude Code (Team / Enterprise) train on your data?
Doesn't train by default
Doesn't train on business data by default.
On Team, Enterprise, API, third-party platforms and Claude Gov, Anthropic does not train generative models on code or prompts sent to Claude Code unless the customer opts in (for example, the Developer Partner Program). Consumer Free/Pro/Max/Ultra accounts are different: training follows the user's setting.
Why this matters: A "no" keeps your prompts and files out of Anthropic's models, where they couldn't be removed later. Confirm it covers the plan you use. Why training matters →
Below, check how long Claude Code (Team / Enterprise) keeps your data and what it says about security and AI-management standards (SOC 2, ISO 27001 and ISO 42001). We also cover data processing agreements (DPAs), business associate agreements (BAAs) and HIPAA support, where data can be stored or processed, and zero data retention. Each answer links to Anthropic's own page.
Trains on your data by default
On Team, Enterprise, API, third-party platforms and Claude Gov, Anthropic does not train generative models on code or prompts sent to Claude Code unless the customer opts in (for example, the Developer Partner Program). Consumer Free/Pro/Max/Ultra accounts are different: training follows the user's setting.
- code.claude.com/docs/en/data-usage · checked Nov 18, 2026
“Anthropic does not train generative models using code or prompts sent to Claude Code under commercial terms, unless the customer has chosen to provide their data to us for model improvement (for example, the Developer Partner Program).”
Data retention
Standard retention for Team, Enterprise and API is 30 days. Qualified Claude for Enterprise accounts can get zero data retention. Clients also keep session transcripts locally in ~/.claude/projects/ for 30 days by default (adjustable with cleanupPeriodDays). Feedback sent with /feedback is retained for 5 years.
- code.claude.com/docs/en/data-usage · checked Nov 18, 2026
“Commercial users (Team, Enterprise, and API): Standard: 30-day retention period”
- code.claude.com/docs/en/data-usage · checked Nov 18, 2026
“Local caching: Claude Code clients store session transcripts locally in plaintext under ~/.claude/projects/ for 30 days by default”
SOC 2 Type II
Trust Center lists SOC 2 Type 2 for Claude Team, Claude Enterprise, and Claude via Anthropic's API, the commercial plans Claude Code runs on. The scope table has no separate Claude Code row. Anthropic's Claude Code legal page points to the Trust Center for certifications.
- trust.anthropic.com · checked Nov 18, 2026
“SOC 2 Type 2”
- code.claude.com/docs/en/legal-and-compliance · checked Nov 18, 2026
“You can find more information in the Anthropic Trust Center”
ISO/IEC 27001
Trust Center lists ISO 27001:2022 for Claude Team, Claude Enterprise, and Claude via Anthropic's API. The scope table has no separate Claude Code row.
- trust.anthropic.com · checked Nov 18, 2026
“ISO 27001:2022”
ISO/IEC 42001
Trust Center lists ISO/IEC 42001:2023 for Claude Team, Claude Enterprise, and Claude via Anthropic's API. The scope table has no separate Claude Code row.
- trust.anthropic.com · checked Nov 18, 2026
“ISO/IEC 42001:2023”
DPA available
Claude Code use on Team, Enterprise and Claude API is subject to Anthropic's Commercial Terms, which incorporate the Anthropic Data Processing Addendum.
- code.claude.com/docs/en/legal-and-compliance · checked Nov 18, 2026
“Your use of Claude Code is subject to: Commercial Terms of Service - for Team, Enterprise, and Claude API users”
- anthropic.com/legal/commercial-terms · checked Nov 18, 2026
“Data submitted through the Services will be processed in accordance with the Anthropic Data Processing Addendum (“DPA”), which is incorporated into these Terms by reference.”
BAA / HIPAA
A BAA covers Claude Code in two setups: a HIPAA-ready Claude for Enterprise organization with the HIPAA configuration applied to Claude Code (local mode), or Claude Code with Zero Data Retention enabled. Under the HIPAA configuration, cloud sessions, Remote Control, the Claude mobile app, and routing through a third-party cloud provider or gateway are not covered.
- code.claude.com/docs/en/legal-and-compliance · checked Nov 18, 2026
“If a customer has executed a Business Associate Agreement (BAA) with Anthropic, that BAA extends to Claude Code in two configurations, depending on what is available for your organization:”
- code.claude.com/docs/en/hipaa-setup · checked Nov 18, 2026
“The HIPAA configuration is an organization setting on Claude Enterprise plans, for organizations that handle protected health information (PHI) and have a Business Associate Agreement (BAA) with Anthropic.”
Data residency options
Not stated as a customer-selectable region option on the Claude Code docs, commercial terms, or Trust Center pages we checked.
- code.claude.com/docs/en/data-usage · checked Nov 18, 2026
- code.claude.com/docs/en/zero-data-retention · checked Nov 18, 2026
- code.claude.com/docs/en/legal-and-compliance · checked Nov 18, 2026
- code.claude.com/docs/en/hipaa-setup · checked Nov 18, 2026
- code.claude.com/docs/en/admin-setup · checked Nov 18, 2026
- trust.anthropic.com · checked Nov 18, 2026
- anthropic.com/legal/commercial-terms · checked Nov 18, 2026
- privacy.anthropic.com/en/articles/8114513-business-associate-agreements-baa-for-commercial-customers · checked Nov 18, 2026
- privacy.anthropic.com/en/articles/8956058-i-have-a-zero-data-retention-agreement-with-anthropic-what-products-does-it-apply-to · checked Nov 18, 2026
Zero-retention option
Zero Data Retention is available to qualified Claude for Enterprise accounts and is not included in the standard Enterprise plan; Anthropic enables it per organization after confirming eligibility. When it is on, prompts and model responses are processed in real time and not stored after the response is returned, except where needed to comply with law or combat misuse. It applies only to Anthropic’s direct platform, not Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry.
- code.claude.com/docs/en/zero-data-retention · checked Nov 18, 2026
“Zero Data Retention (ZDR) for Claude Code is available to qualified accounts on Claude for Enterprise. When ZDR is enabled, prompts and model responses generated during Claude Code sessions are processed in real time and not stored by Anthropic after the response is returned, except where needed to comply with law or combat misuse.”
- code.claude.com/docs/en/data-usage · checked Nov 18, 2026
“ZDR is not included in the standard Enterprise plan; it is enabled on a per-organization basis by your account team after confirming eligibility”
Vendor pages we monitor for this tool
We calculate a code from the page’s visible text each time we check it (a SHA-256 fingerprint). Changes to that code help us spot edits to the vendor’s terms.
| Page | Checked | Fingerprint |
|---|---|---|
| https://code.claude.com/docs/en/data-usage | Nov 18, 2026 | 8b0b86a75a02… |
| https://code.claude.com/docs/en/zero-data-retention | Nov 18, 2026 | a21b4770900f… |
| https://code.claude.com/docs/en/legal-and-compliance | Nov 18, 2026 | 53cc9bb8b7f5… |
| https://code.claude.com/docs/en/hipaa-setup | Nov 18, 2026 | ed4ef5b63395… |
| https://code.claude.com/docs/en/admin-setup | Nov 18, 2026 | 8697272ac4b4… |
| https://trust.anthropic.com/ | Nov 18, 2026 | c1283d879f8f… |
| https://www.anthropic.com/legal/commercial-terms | Nov 18, 2026 | 2cf885badeca… |
| https://privacy.anthropic.com/en/articles/8114513-business-associate-agreements-baa-for-commercial-customers | Nov 18, 2026 | aa8ad5f55c70… |
| https://privacy.anthropic.com/en/articles/8956058-i-have-a-zero-data-retention-agreement-with-anthropic-what-products-does-it-apply-to | Nov 18, 2026 | 43298aa47200… |
Compare with
- Cursor (Teams / Enterprise) Not stated
- GitHub Copilot Business / Enterprise Doesn't train
- JetBrains AI Assistant Doesn't train
- Replit (Teams / Enterprise) Doesn't train
- Tabnine Enterprise Doesn't train
- Windsurf (Teams / Enterprise) Trains by default
See all Coding tools · Which AI tools don't train on your data? · Why AI training on your data matters · How we source and verify this