data-usage.md +11 −20
7### Data training policy7### Data training policy
8 8
9**Consumer users (Free, Pro, and Max plans)**:9**Consumer users (Free, Pro, and Max plans)**:
1010Starting August 28, 2025, we're giving you the choice to allow your data to be used to improve future Claude models.We give you the choice to allow your data to be used to improve future Claude models. We will train new models using data from Free, Pro, and Max accounts when this setting is on (including when you use Claude Code from these accounts).
11
12We will train new models using data from Free, Pro, and Max accounts when this setting is on (including when you use Claude Code from these accounts).
13
14* If you're a current user, you can select your preference now and your selection will immediately go into effect.
15 This setting will only apply to new or resumed chats and coding sessions on Claude. Previous chats with no additional activity will not be used for model training.
16* You have until October 8, 2025 to make your selection.
17 If you're a new user, you can pick your setting for model training during the signup process.
18 You can change your selection at any time in your Privacy Settings.
19 11
20**Commercial users**: (Team and Enterprise plans, API, 3rd-party platforms, and Claude Gov) maintain existing policies: 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](https://support.claude.com/en/articles/11174108-about-the-development-partner-program)).12**Commercial users**: (Team and Enterprise plans, API, 3rd-party platforms, and Claude Gov) maintain existing policies: 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](https://support.claude.com/en/articles/11174108-about-the-development-partner-program)).
21 13
51 43
52For full details, please review our [Commercial Terms of Service](https://www.anthropic.com/legal/commercial-terms) (for Team, Enterprise, and API users) or [Consumer Terms](https://www.anthropic.com/legal/consumer-terms) (for Free, Pro, and Max users) and [Privacy Policy](https://www.anthropic.com/legal/privacy).44For full details, please review our [Commercial Terms of Service](https://www.anthropic.com/legal/commercial-terms) (for Team, Enterprise, and API users) or [Consumer Terms](https://www.anthropic.com/legal/consumer-terms) (for Free, Pro, and Max users) and [Privacy Policy](https://www.anthropic.com/legal/privacy).
53 45
5446## Data flow and dependencies## Data access
47
48For all first party users, you can learn more about what data is logged for [local Claude Code](#local-claude-code-data-flow-and-dependencies) and [remote Claude Code](#cloud-execution-data-flow-and-dependencies). Note for remote Claude Code, Claude accesses the repository where you initiate your Claude Code session. Claude does not access repositories that you have connected but have not started a session in.
49
50## Local Claude Code: Data flow and dependencies
55 51
56The diagram below shows how Claude Code connects to external services during installation and normal operation. Solid lines indicate required connections, while dashed lines represent optional or user-initiated data flows.52The diagram below shows how Claude Code connects to external services during installation and normal operation. Solid lines indicate required connections, while dashed lines represent optional or user-initiated data flows.
57 53
61 57
62Claude Code is built on Anthropic's APIs. For details regarding our API's security controls, including our API logging procedures, please refer to compliance artifacts offered in the [Anthropic Trust Center](https://trust.anthropic.com).58Claude Code is built on Anthropic's APIs. For details regarding our API's security controls, including our API logging procedures, please refer to compliance artifacts offered in the [Anthropic Trust Center](https://trust.anthropic.com).
63 59
6460### Cloud execution### Cloud execution: Data flow and dependencies
65
66<Note>
67 The above data flow diagram and description applies to Claude Code CLI running locally on your machine. For cloud-based sessions using Claude Code on the web, see the section below.
68</Note>
69 61
70When using [Claude Code on the web](/en/claude-code-on-the-web), sessions run in Anthropic-managed virtual machines instead of locally. In cloud environments:62When using [Claude Code on the web](/en/claude-code-on-the-web), sessions run in Anthropic-managed virtual machines instead of locally. In cloud environments:
71 63
7264* **Code storage**: Your repository is cloned to an isolated VM and automatically deleted after session completion* **Code and data storage:** Your repository is cloned to an isolated VM. Code and session data are subject to the retention and usage policies for your account type (see Data retention section above)
7365* **Credentials**: GitHub authentication is handled through a secure proxy; your GitHub credentials never enter the sandbox* **Credentials:** GitHub authentication is handled through a secure proxy; your GitHub credentials never enter the sandbox
7466* **Network traffic**: All outbound traffic goes through a security proxy for audit logging and abuse prevention* **Network traffic:** All outbound traffic goes through a security proxy for audit logging and abuse prevention
7567* **Data retention**: Code and session data are subject to the retention and usage policies for your account type* **Session data:** Prompts, code changes, and outputs follow the same data policies as local Claude Code usage
76* **Session data**: Prompts, code changes, and outputs follow the same data policies as local Claude Code usage
77 68
78For security details about cloud execution, see [Security](/en/security#cloud-execution-security).69For security details about cloud execution, see [Security](/en/security#cloud-execution-security).
79 70