Most people use AI through a website or an app, which means every prompt goes to someone else’s servers. For a lot of work, that’s fine. But if you handle sensitive documents, work offline, or just want to experiment without usage limits, you can run a capable AI model on your own computer.
Tools like Ollama and LM Studio have made this surprisingly easy. Here’s what you need, how to set it up, and what to realistically expect.
Table of Contents
- Why Run AI Locally?
- What Are Open-Weight Models?
- Hardware: What Do You Need?
- Option 1: LM Studio (Easiest for Beginners)
- Option 2: Ollama (Simple and Developer-Friendly)
- Choosing Your First Model
- Useful Things to Do With a Local Model
- Limitations to Expect
- Security Tips
- Asking Questions About Your Own Documents
- FAQ
- Final Thoughts
Why Run AI Locally?
- Privacy. Your prompts and documents stay on your machine. Nothing is sent to an AI provider.
- Offline use. Once the model is downloaded, it works without an internet connection.
- No per-use cost. After the hardware, there’s no subscription for basic use.
- Control. You choose the model and settings, and it won’t change under you overnight.
- Learning. It’s a great way to understand how these models actually work.
The trade-off is that the models you can run at home are usually less capable than the largest cloud models, and speed depends on your hardware.
What Are Open-Weight Models?
Local tools run “open-weight” models, whose trained parameters are published for download. Well-known families include Meta’s Llama, Mistral’s models, Google’s Gemma, Alibaba’s Qwen, Microsoft’s Phi and DeepSeek’s models. Each comes in different sizes, usually described by the number of parameters, such as 3B, 8B or 70B (billions).
Licenses vary. Some are very permissive; others have conditions for commercial use or large companies. Read the license before using a model in a business product.
Hardware: What Do You Need?
The main constraint is memory: RAM on a regular PC, VRAM on a graphics card, or unified memory on Apple Silicon Macs. Models are usually run in compressed (“quantized”) versions that need much less memory than the originals, with a small loss in quality.
| Your machine | What you can realistically run |
|---|---|
| 8 GB RAM laptop | Small models (around 1B to 4B parameters); fine for simple tasks |
| 16 GB RAM, or a GPU with 8 GB VRAM | Models around 7B to 8B comfortably; good for everyday writing and summaries |
| 32 GB+ RAM, Apple Silicon with lots of memory, or a 16-24 GB GPU | Mid-size models (around 13B to 30B) |
| Workstation with multiple high-end GPUs | Very large models |
These are rough guidelines; actual requirements depend on the model, the quantization level and how much text you give it at once. A dedicated NVIDIA GPU or an Apple Silicon Mac makes a big difference to speed. On a CPU alone, it works but can be slow.

Option 1: LM Studio (Easiest for Beginners)
LM Studio is a desktop app for Windows, macOS and Linux with a friendly interface.
- Download LM Studio from its official website and install it.
- Open the model search and browse available models. The app indicates which versions are likely to fit your hardware.
- Download a small or mid-size model to start, such as an 8B-class model or smaller.
- Load the model and start chatting in the built-in chat window.
- Optional: drag documents in to ask questions about them, or start the local server to connect other apps.
Option 2: Ollama (Simple and Developer-Friendly)
Ollama runs models with simple commands and provides a local API that other apps can use.
- Download and install Ollama from its official website.
- Open a terminal (Command Prompt or PowerShell on Windows, Terminal on Mac).
- Run a model with a single command, for example
ollama run llama3.2. The first run downloads the model. - Type your prompt and press Enter. Type
/byeto exit. - Use
ollama listto see downloaded models andollama rm <model>to delete one and free up disk space.
Model names and versions change, so check Ollama’s model library for current options. Many third-party chat interfaces, such as Open WebUI, can connect to Ollama if you’d prefer a browser-style interface.
Choosing Your First Model
- Start small. A model that fits comfortably in memory and runs fast is more useful than a bigger one that crawls.
- Pick a general “instruct” or chat model for writing and Q&A.
- For coding, try a model trained for code.
- Compare two or three models on your actual tasks. Quality varies more than benchmark tables suggest.
If you want help writing better prompts for these models, the same techniques apply as for cloud tools. Our comparison of ChatGPT, Claude and Gemini is a useful benchmark for what the large cloud models can do.
Useful Things to Do With a Local Model
- Summarize or ask questions about private documents
- Draft and rewrite emails or reports without sending them to a cloud service
- Brainstorm and outline
- Classify or tag text in bulk, using the local API in a script or automation
- Practice and learn prompt techniques with no usage limits
For automations, local APIs from Ollama and LM Studio can plug into self-hosted tools such as n8n. See our guide to AI workflow automation for workflow ideas.

Limitations to Expect
- Lower quality than top cloud models, especially on complex reasoning and long documents.
- Speed depends on hardware; long answers on a CPU can take a while.
- Disk space. Models can take several gigabytes each.
- No live knowledge. Local models don’t browse the web unless you set up extra tools.
- Same accuracy risks. Local models still make things up. Check facts as you would with any AI.
Security Tips
- Download tools and models only from official sources and reputable repositories.
- Keep the apps updated.
- If you expose the local API on your network, restrict access. By default, keep it on your own machine.
- Remember that “local” protects your data from AI providers, not from malware on your computer. Keep your device secure; our guide on whether you still need antivirus software covers the basics.
Asking Questions About Your Own Documents
One of the most popular reasons to run AI locally is to ask questions about private files. LM Studio lets you attach documents directly in a chat. With Ollama, you can pair it with an interface such as Open WebUI, which supports uploading documents and searching them. Behind the scenes, these tools split your documents into chunks, find the passages most relevant to your question and pass them to the model, a technique often called retrieval-augmented generation (RAG).
Keep expectations realistic: smaller local models can miss details in long documents, so ask them to quote the passage they used and check it.
FAQ
Is running AI locally free?
The tools mentioned here can be downloaded for free for personal use, and many open-weight models are free to download. Check the license terms of the app and the model, especially for business use.
Can a laptop run a local AI model?
Yes. A modern laptop with 16 GB of RAM can run smaller models well. Apple Silicon MacBooks are particularly capable thanks to unified memory.
Is a local model as good as ChatGPT?
The best cloud models are generally more capable. Smaller local models are good for many everyday tasks and are improving quickly.
Does local AI work without internet?
Yes, once you’ve downloaded the app and the model.
Final Thoughts
Running AI locally is no longer a project for experts. Install LM Studio for a point-and-click experience or Ollama for a simple command-line setup, start with a small model, and test it on real tasks. For private documents and offline work, a local model is a genuinely useful addition to your toolkit.


