The most private AI coding tools: cloud vs local

Privacy settings and training opt-outs help, but they don't change the basic fact: if your code goes to a cloud AI, another company receives it. Only a local model keeps it at home.

When people compare AI coding tools on privacy, they usually compare settings: who trains on your code, who offers an opt-out, who keeps data for how long. Those details matter, but they miss the bigger point. The real dividing line is simple: does the AI run in the cloud, or on your own computer?

Cloud means someone else receives your code

Every cloud AI coding tool works the same way at its core. To answer your request, it sends your prompt and the code it needs to the provider's servers, where the model runs. From that moment:

  • Another company receives and processes it. Depending on your plan and settings, it may also store it, sometimes for years, and pass it to the AI model companies it works with. Cursor, for example, says every request goes through its servers, even when you use your own API keys.
  • Their policies set the rules, including the limits of your settings. Retention periods, training use and who can access the data are set in their terms, and terms change.
  • People may look at it. Google's consumer terms for Antigravity say its employees and contractors may review interactions, and several providers keep data to check for abuse even when training is off.
  • It can be kept for a long time. Anthropic keeps consumer Claude data for five years if you allow it to be used for training; GitHub says Copilot Chat data on github.com is now kept for the life of the account, instead of 28 days.

Training opt-outs and "privacy modes" reduce what's done with your code. They don't change the fact that it left your computer and is now with a third party.

Local means your code stays with you

When the AI model runs on your own computer, there's no server and no third party. Your prompts and code are processed on your machine and stay there:

  • Ollama says it doesn't see your prompts or data when you run models locally. (Ollama also offers optional cloud models; set OLLAMA_NO_CLOUD=1 to stay local-only.)
  • LM Studio says your local messages, history and documents are never transmitted, and the app has no telemetry.
  • MLX is Apple's open-source framework, running entirely on your Mac.

You can use these local models from editors such as VS Code, Zed and JetBrains IDEs, from open-source assistants such as Cline, or from Nexus (see AI IDEs that run locally). The trade-off is capability: local models are smaller than the best cloud models. See local vs cloud AI coding.

Cloud vs local at a glance

Cloud AILocal AI
Where your code goesTo the provider's servers, and often its model partnersNowhere: it stays on your computer
Who decides what happens to itThe provider's terms, which can changeYou
Training on your codeDepends on the plan and your settingsNot possible: nothing is sent
RetentionSet by the provider (zero to years, depending on plan and settings)Only what you keep
Works offlineNoYes, once the model is downloaded
Model qualityThe most capable modelsSmaller models, best for focused tasks

If you do use the cloud: what the main tools do by default

If a task needs a cloud model, the defaults still matter. Many individual plans allow training unless you opt out; business plans usually don't:

ToolDefault on individual plansBusiness and enterprise
GitHub CopilotInteraction data, including code snippets, used for training since April 2026 unless you opt outNot used for training
Codex (ChatGPT)May be used for training unless you turn off "Improve the model for everyone" (Codex also has its own "Include environments" setting)Not used by default (Business, Enterprise, API)
Claude Code (Claude)Used for training only if the Model Improvement setting is onNot used for training (Team, Enterprise, API)
CursorWith Privacy Mode on: not used for training, and zero data retention with its providers for most models (not with your own keys)Privacy Mode on by default for teams
Devin Desktop (formerly Windsurf)May be used for training; paid plans can opt outEnterprise: not without written consent
KiroMay be used, including for training, unless you opt outEnterprise: not used
Google AntigravityInteractions used to improve services and may be reviewed by people; opt-out in settingsEnterprise code not used to train base models
Zed (hosted AI)Zed doesn't retain prompts or code by default (some model providers keep data for safety review)Data sharing off by default
LovableFree and Pro used for training since September 2026 unless you opt outBusiness and Enterprise excluded
BoltIndividual accounts: content from October 2026 may be used for training and licensed as de-identified datasets, unless you opt out (EEA, UK and Swiss accounts excluded)Organisation-managed accounts excluded unless enabled
ReplitPro: used to improve its models unless you opt outEnterprise: not used
Base44All plans except Enterprise may be used for training, with no opt-out settingEnterprise excluded automatically
FramerUsed for training unless disabled in workspace settingsEnterprise: never used

Based on each vendor's privacy documentation in November 2026. Policies change, so check the current terms for your plan.

Even the strongest rows promise less retention or no training. None of them can say "not received": with cloud AI, the provider always receives your code.

How to keep your code private

  1. Use a local model for anything sensitive. It's the only way to be sure your code never leaves your computer.
  2. Keep your project local. Browser-based builders hold your entire project on their servers, not just the parts the AI reads.
  3. When you must use the cloud, prefer business plans, check your training settings and send only what the task needs.
  4. Read the terms for your plan. Individual and business plans often have very different rules.

Where Nexus fits

Nexus is a native Mac app built around this choice. Its privacy policy says it doesn't collect your code, files or history, and your projects are folders on your Mac. Choose a local model, through its built-in MLX engine or a local Ollama model (not Ollama's cloud models), and your code and prompts stay on your Mac. When a task needs a cloud model, you can switch to Claude Code by Anthropic or the Codex app by OpenAI in the same chat, knowing that Anthropic or OpenAI then receives what each request needs under your own account and settings. Nexus will be a one-time purchase of $199 USD, with no Nexus subscription; it needs an Apple silicon Mac with macOS 12 or later (14 or later for local models and the Codex app, 13 or later for Claude Code). Connecting third-party AI services such as Claude Code or Codex is optional and at your own expense (see Nexus pricing). It's coming soon.

Frequently asked questions

Is any cloud AI coding tool truly private?

Not in the way a local model is. Every cloud AI tool sends your prompts and the code it needs to the provider's servers, where it's processed and handled under that company's policies. Settings can stop it being used for training, but the provider still receives it. Only a model running on your own computer keeps your code on your machine.

Does GitHub Copilot train on my code?

On individual plans (Free, Pro and Pro+), GitHub says it uses Copilot interaction data, including code snippets and context, to train its models unless you opt out. Copilot Business and Enterprise data isn't used for training.

What is the most private way to code with AI?

Run an open model locally with a tool such as Ollama (local models only), LM Studio or Apple's MLX. Your prompts and code are processed on your own computer, and once the model is downloaded nothing needs to be sent to anyone.