#### Security and privacy

# Privacy and data

Grok Build is designed to keep your code private.

## What is privacy mode?

Privacy Mode ensures your code is never used for training by Grok Build or other AI model providers.

Learn more about [how your data is used](https://cursor.com/data-use).

For more information about subprocessors and data handling, see the [Security page](https://cursor.com/security#infrastructure-security).

## How do I enable privacy mode?

1. Open Grok Build Settings with `Cmd+Shift+J` / `Ctrl+Shift+J`
2. Click **General** in the sidebar
3. Toggle **Privacy Mode** on

For teams, Privacy Mode is enabled by default for all team members. Admins can enforce it organization-wide in [grok.com/dashboard/workspace-settings](https://grok.com/dashboard/workspace-settings) so members cannot disable it.

## What data is sent to AI providers?

When you use AI features, Grok Build sends prompts and code context to model providers like Anthropic and Google. With Privacy Mode enabled, your code is not used for training.

## Where is my code processed?

When you use AI features, Grok Build sends prompts and code context to model providers like Anthropic and Google. All [sub-processors](https://trust.cursor.com/subprocessors) have data processing agreements.

See the [Security page](https://cursor.com/security#infrastructure-security) for details.

## Is my code used for training?

With Privacy Mode enabled, your code is never used for training.

Privacy Mode is on by default for Enterprise teams. Teams and Enterprise admins can enforce it organization-wide so members cannot disable it.

## Does privacy mode apply to Grok 4.5?

Yes. Privacy Mode works the same for [Grok 4.5](/build/agents-window/help/models-and-usage/grok-4-5) as for every other model. With Privacy Mode enabled, your code is never used for training.

Like other models, Grok 4.5 is hosted by the model provider, a trusted partner, or Grok Build. See the list of [sub-processors](https://trust.cursor.com/subprocessors) for details.

## Does Grok Build's DPA cover Grok Bot?

Grok Build's [Data Processing Agreement](https://cursor.com/terms/dpa) governs how Grok Build processes personal data under enterprise contracts. For Teams and Enterprise customers, the DPA and [privacy and data governance](/build/agents-window/enterprise/privacy-and-data-governance) docs describe processor commitments and sub-processor coverage.

Current sub-processors are listed at [trust.cursor.com/subprocessors](https://trust.cursor.com/subprocessors). If you are on an individual plan, the DPA does not apply; your data handling follows the [Privacy Policy](https://cursor.com/privacy).

## Does privacy mode prevent SpaceXSI from training on my Grok Bot data?

Privacy Mode in the Grok Build editor prevents your code from being used for training by Grok Build or model providers. Grok Bot runs on a separate product surface with its own data flows.

For how your data is handled across Grok Build products, see [How your data is used](https://cursor.com/data-use) and the [sub-processor list](https://trust.cursor.com/subprocessors).

## Where is Grok Bot computer data stored, how long is it kept, and how do I delete it?

Grok Bot can copy or create files on a cloud computer during agent runs. Storage location, retention period, and deletion options for that data depend on your account type and how the files were created.

To request deletion of files that contain personal data, [contact support](/build/agents-window/help#contact-support) with your account email, the agent name, and a description of the files. This follows the same data-deletion process as the rest of Grok Build; see [How your data is used](https://cursor.com/data-use).

## Are there exceptions to zero data retention?

ZDR doesn't apply when you use your own API keys. In that case, your data handling follows your provider's privacy policy.

Some models also require data retention with their provider and fall outside Grok Build's ZDR agreements. These models are off by default and require admin approval before use. See [Models with data retention](/build/agents-window/enterprise/privacy-and-data-governance#models-with-data-retention) for details.

## What privacy controls are available for enterprise?

Enterprise plans include additional controls beyond Privacy Mode:

* **AI code tracking API and audit logs**: Track how AI features are used across your organization
* **Granular admin and model controls**: Restrict model access, enforce Privacy Mode org-wide, and manage agent permissions
* **Compliance certifications**: SOC 2 Type II and more (see [Security and compliance documents](/build/agents-window/help/security-and-privacy/compliance))
* **Customer Managed Encryption Keys (CMEK)**: Encrypt Cloud Agent data with your own keys, with full control over key rotation and access

See the full Enterprise feature list on [grok.com/pricing](https://grok.com/pricing) or [contact sales](https://cursor.com/contact-sales?source=docs-help-privacy) for details.

## What data stays on my machine vs. in Grok Build's cloud with self-hosted machines?

With [Self-Hosted Machines](/build/agents-window/help/ai-features/self-hosted-machines), tool execution stays on your machine and the agent loop stays in Grok Build's cloud. [Privacy Mode](https://cursor.com/data-use) applies the same way it does for managed Cloud Agents.

See [Self-Hosted Machines](/build/agents-window/help/ai-features/self-hosted-machines#what-data-stays-on-my-machine-vs-in-grok-builds-cloud) for the full data split.

## Related

* [Security and compliance documents](/build/agents-window/help/security-and-privacy/compliance)
* [Privacy and data governance](/build/agents-window/enterprise/privacy-and-data-governance)
* [Agent security](/build/agents-window/agent/security)
* [API keys](/build/agents-window/help/models-and-usage/api-keys)
