Local AI coding vs cloud AI coding
Cloud models are the most capable. Local models are private and have no usage bills. Here is how to decide, and why many people end up using both.
Every AI coding tool sends your request to a language model somewhere. The question is where that model runs. With cloud AI coding, it runs on the provider's servers: your prompt and the relevant parts of your code travel there and the answer comes back. With local AI coding, an open model runs on your own computer and nothing about the request needs to leave it.
Both approaches are useful. They differ in cost, privacy, quality and what hardware you need.
The short version
| Cloud AI coding | Local AI coding | |
|---|---|---|
| Where the model runs | The provider's servers | Your own computer |
| Ongoing cost | A subscription or per-token billing | No usage fees after setup |
| Your code and prompts | Sent to the provider, under their terms | Stay on your machine |
| Model quality | The strongest models available | Good for focused tasks, behind the top cloud models on hard ones |
| Hardware | Any computer with internet | Enough memory for the model you choose |
| Works offline | No | Yes, once the model is downloaded |
| Usage limits | Plan limits that reset over time | Only your hardware's speed |
How cloud AI coding works
Cloud coding agents such as Claude Code and OpenAI's Codex can run their agent on your computer (both also have web versions) but send requests to models hosted by Anthropic or OpenAI. Browser-based app builders such as Lovable, Bolt, Replit and Base44 go further: the editor, the AI and often your project itself live on their platform.
The advantages are real. You get the most capable models, there are no models to download, and any laptop will do. The costs are ongoing. Claude Code needs a paid Claude plan (Pro is listed at $20 a month, with Max at $100 and Ultra at $200 for more usage) or pay-as-you-go API billing. Codex is included with ChatGPT plans, with limited access on the free and Go plans and more usage on Plus at $20 a month and Pro from $100. Most plans come with usage limits that reset over hours or weeks.
Prices as listed on Anthropic's and OpenAI's pricing pages in November 2026. Plans change, so check the providers' pages before you decide.
How local AI coding works
Open models such as Qwen, Llama, Gemma, Mistral, DeepSeek and Phi can be downloaded and run on your own hardware. On a Mac, two common ways to run them are Ollama, a free and open-source model runner, and MLX, Apple's open-source machine learning framework for Apple silicon. Once a model is downloaded, it answers without contacting anyone. Ollama's own documentation says that when you run models locally, it does not see your prompts or data. (Ollama's cloud models are different: they run on Ollama's servers, so pick a local model when privacy matters.)
The trade-offs are memory and capability. A model has to fit in your computer's memory with room to spare. As a rough guide from Ollama's library, a 4-billion-parameter Qwen3 model is about a 2.5 GB download, an 8B model about 5 GB, and a 30B model about 19 GB. An 8 GB Mac can run only the smallest ones, and it will be tight; larger models need 32 GB or more. Small models are quick and capable on focused tasks, such as editing a page, writing a function or explaining code, but they are not a full replacement for the largest cloud models on complex, multi-step work.
Cost: subscriptions vs hardware you already own
A cloud coding plan is a recurring cost, and heavy use tends to push people towards the higher tiers. A local model costs nothing per request once you have a capable computer. For many people the realistic setup is a mix: local models for routine edits, and a cloud agent for the jobs that need it. That keeps the subscription at a lower tier, or lets you use pay-as-you-go API billing only when you need it.
The development environment is a separate cost. Many browser-based AI builders charge a monthly subscription and meter AI usage in credits on top. Nexus will be sold differently: a one-time purchase of $199 USD, with no Nexus subscription and no Nexus credits. It does not include any model provider's plan, so if you connect Claude Code by Anthropic or the Codex app by OpenAI, you use your own Anthropic or OpenAI account.
Privacy: who sees your code
With a cloud model, the provider receives the prompts and code needed to answer each request. What happens next depends on their terms and your plan. For example, Anthropic and OpenAI do not train on API and business-plan data by default, while their consumer plans offer settings to opt in or out of training. With a local model, the request never needs to leave your computer. Read more in how to code with AI without sending your code to the cloud.
Which should you choose?
- Choose cloud if you need the strongest model for complex features, large refactors or unfamiliar code, and you are comfortable with a subscription.
- Choose local if your code is sensitive, you want no usage bills or limits, you work offline, or you mostly make smaller, well-defined changes.
- Use both if you want the best of each. Tools that let you switch models between tasks make this easy.
Where Nexus fits
Nexus is a native Mac app that gives you a visual workspace for building with AI: a chat, a live preview, diffs and restore points, with every project kept in a folder on your Mac. In the chat you pick the engine for each task: Claude Code by Anthropic or the Codex app by OpenAI with your own account, or a local model running through Nexus's built-in MLX engine or Ollama. You are not tied to one model or one provider. 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), and it is coming soon. See Claude Code, Codex and local models in Nexus for how each option works.
Frequently asked questions
Is local AI coding free?
Running an open model on your own computer has no per-request fees. You pay for the hardware and electricity, and the size of model you can run depends on your computer's memory.
Are local models as good as Claude or GPT models?
Usually not. The largest cloud models are generally stronger at complex coding work. Small local models handle simpler, well-defined tasks well, and the gap depends on the task and the model.
Can I use local and cloud models in the same project?
Yes, in tools that support both. In Nexus you can switch between Claude Code, Codex and local models in the chat, so you can use a local model for routine work and a cloud agent for harder tasks.