Lompat ke konten

Pelajaran 22 ยท Privacy and Team Use

Privacy Mode and Protecting Data

Understand what Cursor sends to AI providers, what Privacy Mode does and does not do, how to protect secrets and personal data, and what to check at work.

An AI editor works by sending information to AI models. Before you open private or company code, find out what is sent, who may keep it and what controls you have. This lesson summarizes official documentation as of December 2026. It is education, not legal advice. Read the current privacy policy and agreements yourself, especially after a rename and a change of ownership.

What leaves your computer

The documentation says AI features send prompts and code context to model providers, such as Anthropic and Google. First-party models are also an option. Think of context broadly: files you attach, files the agent reads, terminal output, tool results, screenshots and rules can all be part of a request.

A local search index does not mean that nothing is sent. When the agent opens a file, its content can be part of a model request.

Privacy Mode

The documentation says that with Privacy Mode on, your code is never used for training by the vendor or by other AI model providers.

  • You can turn it on in the general settings of the app.
  • It is on by default for team members on Teams plans and for Enterprise teams, and administrators can enforce it. If you use an individual plan, check your own setting.

Training is only one question. Retention, meaning how long data is stored, is another. The documentation says:

  • Most models run under zero data retention agreements, so those providers do not keep inputs or outputs.
  • There are exceptions. For example, it names certain Claude Fable models, for which the provider stores inputs and outputs for harm-prevention reviews. For Enterprise teams and teams with Privacy Mode, an administrator must approve such models.
  • Zero data retention does not apply when you use your own API keys.
  • Cloud agents keep encrypted copies of the repositories they work on.

The documentation also says that the editor's Privacy Mode does not govern the company's separate Grok Bot product, which has its own data flows. Read the terms of each product you use.

Questions to answer

Question Where to look
Is my code used for training? Your Privacy Mode setting and the policy
What is retained, and for how long? Data use and retention documentation
Which companies process the data? The subprocessor list
Is there a data processing agreement? Your plan and contract
Are there region or model restrictions? Administration and compliance pages
Do I need my employer's approval? Your company policy

Protect secrets

No setting replaces keeping secrets out of reach.

  1. Keep keys in a secret manager or in the environment of the programs that need them, not in code.
  2. Use separate development keys with minimal rights.
  3. List secret files in .cursorignore, remembering that terminal and MCP tools are not blocked.
  4. Never paste a secret into a prompt, rule file, plan or screenshot.
  5. If a secret is exposed, rotate it first. Then clean it up.

Redact before sharing

When you must share a log, remove sensitive values. This real function masks a few common patterns. It will not catch everything, so read the output before you send it.

Python Mask sensitive values in a log

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Look at the last line: the name is still there. Pattern matching cannot find every kind of personal data, which is why fake data is better than redacted real data.

Create fake test data

Python Generate fake records for development

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The example.com domain is reserved for examples, so use it instead of addresses that could belong to someone.

Other protections

The security documentation also describes approvals for sensitive actions, and default limits on which network requests the agent's tools can make. It describes workspace trust as supported but off by default. You can enable it with the security.workspace.trust.enabled setting. A new folder can then open in a restricted mode, which disables AI features. For an untrusted repository, the documentation recommends using a basic text editor.

Be careful with repositories you do not know. Their rules, hooks, MCP settings, skills and scripts may try to steer the agent or run code. Inspect the .cursor folder and similar configuration first.

Regulated and customer data

Health, financial, children's and other regulated data often come with strict legal duties. Do not put such data into any AI tool unless your organization has clearly approved that tool for that data and use.

Before you open a new project

Take two minutes to ask: Am I allowed to use this tool on this code? Is Privacy Mode set the way my organization requires? Does the folder contain secrets or personal data? Which MCP servers, hooks and rules would become active? If you cannot answer, ask the project owner before you send your first prompt.

Common mistakes

  • Believing that Privacy Mode means data never leaves your computer.
  • Assuming a team setting also applies to your personal account.
  • Choosing a new model without checking its retention terms.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What does the documentation say Privacy Mode does?

    It addresses training. Data is still sent to providers to answer requests.
  2. 2. What happens to zero data retention when you use your own API keys?

    Check your own provider's terms in that case.
  3. 3. A real API key appeared in a prompt. What should you do first?

    Assume it may have been exposed and replace it.
  4. 4. What is safer for development than redacted real customer data?

    Invented data cannot expose a real person's information.

Summary

  • AI features send prompts and context to model providers.
  • Privacy Mode addresses training; check retention and exceptions separately.
  • Keep secrets out of reach, rotate any that leak and use fake data.
  • Follow your organization's rules before using real or regulated data.

Next: Using Cursor as a Team

Progres Anda disimpan di browser ini. Tidak perlu akun.