Free, independent guides since 2010

Build with AI

Running AI locally for privacy: Ollama, LM Studio and open models

How to run AI models on your own computer for website work: why you would, what hardware you need, tools like Ollama and LM Studio, connecting them to your code editor, and the trade-offs.

<guide section="Build with AI" type="article" read="1 min"/>

Cloud AI tools are convenient, but every prompt goes to someone else’s server. For confidential client work, customer data or simply peace of mind, you can run AI models on your own computer. This has become surprisingly easy.

Why run AI locally?

  • Privacy: texts, code and documents stay on your machine.
  • No usage costs: no subscriptions or credits.
  • Offline work: on the train, on a plane, in a client’s office without guest Wi-Fi.
  • Control: the model does not change under your feet.

The tools

ToolWhat it is
OllamaA free tool that downloads and runs open models with one command, and serves them to other apps
LM StudioA desktop app with a friendly interface to find, download and chat with models
Open WebUIA browser-based chat interface for local models
Continue, ClineOpen-source code editor extensions that can use local models
Plain text
# Example: install Ollama, then in a terminal
ollama run <model-name>
# Ask a question directly, or connect your editor to the local server

Hardware

Model size decides what you need. Small models run on a recent laptop with 16 GB of memory; medium models want 32 GB or more; the largest open models need a powerful graphics card or a workstation. Apple computers with lots of unified memory are popular for this. Start small and see whether the quality is enough for your tasks.

Good local use cases for website work

  • Summarising and rewriting confidential client briefs.
  • Drafting alt texts, meta descriptions and outlines.
  • Code explanation and simple code generation.
  • Processing personal data, such as anonymising support emails before analysis.

Trade-offs

  • The best cloud models are still stronger at complex coding and reasoning.
  • Local models are slower on modest hardware.
  • You maintain the setup yourself.

Frequently asked questions

Are local AI models free?

The software and many open models are free to use, but check each model’s licence for commercial use. You pay in hardware, electricity and time.

Can I use a local model with my code editor?

Yes. Open-source editor extensions such as Continue and Cline can connect to local models served by Ollama or LM Studio.