How to code with AI without sending your code to the cloud
Most AI coding tools send your code to someone's servers. Here is what actually leaves your computer, what providers do with it, and how to keep it at home.
AI coding tools are only as private as the path your code takes, and the key question is simple: does the AI run in the cloud or on your own computer? Anything sent to a cloud AI is received and handled by another company, under its rules. A model running locally keeps your code on your machine. Here's how to tell the difference, and how to keep your code at home.
Three places your code can go
| Setup | What leaves your computer | Examples |
|---|---|---|
| Browser-based AI builder | Your whole project lives on the platform, along with prompts and AI conversations | Lovable, Bolt, Replit, Base44 |
| Local editor with a cloud model | Your project stays on your computer when the agent runs there; prompts and the code needed for each request go to the model provider | Claude Code, Codex, most AI editors |
| Local editor with a local model | Nothing, apart from downloading the model (Ollama's paid cloud models are the exception: they run on Ollama's servers) | Ollama or MLX with an open model |
What providers say they do with your data
Policies differ by provider and by plan, and they change, so read the current terms for the plan you use. As of November 2026:
- Anthropic (Claude, Claude Code): consumer plans (Free, Pro, Max and Ultra) have a model-improvement setting that controls whether chats and coding sessions can be used for training. Commercial products and the API are not used for training by default (feedback you choose to submit is an exception).
- OpenAI (ChatGPT, Codex): on consumer plans, OpenAI says it may use your content to train its models unless you turn this off in Data controls. ChatGPT Business, Enterprise and the API are not used for training by default.
- Lovable: content on Free and Pro plans may be used for model training unless you opt out in account settings; Business and Enterprise are excluded.
- Bolt (StackBlitz): its privacy policy allows Bolt content to be used to train AI models and licensed as de-identified datasets, with a free opt-out; accounts in the EEA, UK and Switzerland are excluded.
Training is only part of the picture. Even with training switched off, a cloud service still receives and processes your requests, and keeps them for a time under its retention policy. Settings change what a provider does with your code; only running the model locally means no provider gets it. See the most private AI coding tools: cloud vs local.
How to keep your code on your own computer
- Keep the project local. Work in a folder on your own machine rather than on a hosted platform. You decide what you push to GitHub or deploy, and when.
- Use a local model for sensitive work. An open model running on your computer through Ollama or Apple's MLX processes everything locally. (Avoid Ollama's cloud models here: they run on Ollama's servers.)
- Use cloud models deliberately. When you do need Claude Code or Codex, check your plan's training settings and remember that those requests go to the provider.
- Keep keys out of other people's clouds. Store API keys and sign-ins on your own machine, for example in the macOS Keychain.
How Nexus handles your data
Nexus is a native Mac app, and your projects are ordinary folders on your Mac. Its privacy policy says Nexus does not collect, receive or store your code, project files or history. Keys and sign-ins for connected services are kept in the macOS Keychain.
What leaves your Mac depends on the engine you pick in the chat:
- A local model through Nexus's built-in MLX engine or Ollama: your code and prompts stay on your Mac.
- Claude Code by Anthropic or the Codex app by OpenAI: Anthropic or OpenAI receives what each request needs, directly from your Mac, under your own account and their terms.
You can switch between them in the chat, so private work can stay local while bigger jobs use a cloud agent. Nexus runs on Apple silicon Macs with macOS 12 or later (macOS 14 or later for local models and the Codex app, 13 or later for Claude Code). It will be a one-time purchase of $199 USD with no Nexus subscription, and it's coming soon. Connecting third-party AI services such as Claude Code or Codex is optional and at your own expense (see Nexus pricing).
Frequently asked questions
Do AI coding tools train on my code?
It depends on the provider and your plan. Anthropic and OpenAI say they do not train on API and business-plan data by default. Their consumer plans let you choose: ChatGPT consumer plans may use content for training unless you turn it off, and Claude consumer plans have a model-improvement setting. Some app builders, such as Lovable and Bolt, also use content for training on some plans or in some regions unless you opt out.
Is there a way to use AI for coding with no data leaving my computer?
Yes. Run an open model locally with a runner such as Ollama or Apple's MLX (not one of Ollama's cloud models). The request and your code stay on your machine; only the model download uses the internet.
Does Nexus see my code?
No. Nexus runs on your Mac and its privacy policy says it does not collect your code, project files or history. If you connect a cloud agent such as Claude Code or Codex, that provider receives what it needs for each request under your own account and their terms.