Running a language model locally means the model weights sit on your disk and every prompt is processed on your own hardware. There is no subscription, nothing leaves your machine and it works offline. The trade-off is that you supply the hardware, and the models you can run comfortably are smaller than the frontier models behind paid chat apps.
This guide is about how to run models locally. For the model landscape itself (licenses, families, who makes what), see Best open-source LLM.
The two easiest ways to start
Ollama is a free command-line tool and background server for macOS, Windows and Linux. You pull a model with one command and chat with it in the terminal or through any app that speaks its local API. It is the default choice if you want local models inside editors, scripts or agents.
LM Studio is a free desktop app with a model browser, chat window and a local OpenAI-compatible server. It is the friendliest option if you prefer clicking to typing and want to see memory use before you download.
Other tools worth knowing: llama.cpp (the engine underneath much of this ecosystem), Jan and Open WebUI (a browser chat interface on top of Ollama). All are free software; we have no SaaS price to list for any of them.
Hardware reality: memory decides everything
The single number that matters most is how much memory your GPU (or Apple Silicon unified memory) has. A rough rule we use when testing:
| Your memory | What runs comfortably (4-bit quantized) | Typical feel |
|---|---|---|
| 8 GB | Small models, about 3B–8B parameters | Fast; fine for summaries and simple chat |
| 12–16 GB | Models up to about 14B | Good everyday assistant, light coding help |
| 24 GB | Models around 27B–32B | Strong reasoning and code for a local setup |
| 48 GB+ / large Mac unified memory | 70B-class models | Closest to cloud quality, slower |
These are rules of thumb, not guarantees. Context length also uses memory, so a long document can push a model that “fits” over the edge. CPU-only works for small models but is slow.
Model picks by job
- General chat: a mid-size Llama, Qwen or Gemma instruct model.
- Coding: a Qwen coder variant or a DeepSeek distilled model sized for your GPU.
- Low-memory laptops: small Gemma, Phi or Llama models.
- Multilingual: Qwen and Mistral families generally do well.
Model versions move fast; check the Ollama or LM Studio library for the current release of each family rather than relying on a version number from a blog post.
Local vs paid cloud
Local is free to run once you own the hardware and is the right call for private data, offline work and tinkering. Cloud wins on raw quality and speed for hard tasks. Some middle-ground options:
- OpenRouter lets you call many open-weight models through one API. Its free plan allows 50 requests; pay-as-you-go adds a 5.5% fee on credit purchases.
- DeepSeek sells API access to its models; see DeepSeek pricing for verified rates. Its consumer chat app price is price not verified.
- Chat subscriptions such as Claude Pro $20/mo are the simplest way to get frontier quality without hardware.
See also Free LLM API and Cheapest LLM API.
A sensible first setup
Install Ollama or LM Studio, download one 7B–8B instruct model and one coding model that fit your memory, and use them for a week on real tasks. If they handle most of your work, you have saved a subscription. If not, you will know exactly which tasks need a cloud model.