It won’t load, or says it’s out of memory
Choose a smaller build of the same model, or keep the context at 8K. Close other big apps first. Check what fits.
The quickest way to run AI on your own computer: install Ollama, run ollama run qwen3.5:4b to download and start Qwen3.5-4B, then send it a test message. After the download it works offline.
Pick how you’d like to run it. Every path starts small, ends with a quick test, and only then adds longer context or tools. We use Qwen3.5-4B as the example because it fits almost any computer.
Checked 24 Nov 2026 · How we estimate this
Build: Ollama qwen3.5:4b · 3.4 GB download · All builds
Download the Mac app from ollama.com and open it once.
ollama run qwen3.5:4bThe first run downloads about 3.4 GB. Use a tag without “cloud” in it: cloud tags run on Ollama’s servers, not your computer.
ollama psThe PROCESSOR column should say “100% GPU”. A CPU share means part of the model didn’t fit and it will be slower.
Send this message: Reply with the number of days in a week and one sentence explaining it.
It works if the answer says 7 and gives a sensible sentence. If it’s very slow or won’t load, choose a smaller build. Then raise the context or add tools.
The usual fixes, in the order to try them.
Choose a smaller build of the same model, or keep the context at 8K. Close other big apps first. Check what fits.
Run ollama ps: if it shows a CPU share, part of the model didn’t fit in graphics memory. Use a smaller build or a shorter context, and make sure your graphics driver is installed.
Check the tag’s spelling against the model’s page. For a local model, use a tag without “cloud” in it; cloud tags run on Ollama’s servers.
The context is full. Raise it in the app’s settings, but only as far as your memory allows: longer contexts need more memory.
Agents read a lot and call tools, so use a model with and at least 64K of , with enough memory for both. Some agent features still use the internet, so don’t assume it’s offline.
Find a model for agents Find a coding modelStart LM Studio’s server, point Claude Code at it, and pick the loaded model.
lms server start --port 1234
export ANTHROPIC_BASE_URL=http://localhost:1234
export ANTHROPIC_AUTH_TOKEN=lmstudio
export CLAUDE_CODE_ATTRIBUTION_HEADER=0
claude --model openai/gpt-oss-20bPoint Claude Code at Ollama on this computer and name a local model you’ve pulled. Set its context to 64K or more.
export ANTHROPIC_AUTH_TOKEN=ollama
export ANTHROPIC_API_KEY=""
export ANTHROPIC_BASE_URL=http://localhost:11434
claude --model qwen3.8:27b--oss tells Codex to use a model on this computer, and --local-provider ollama picks Ollama. Use a model with a 64K+ context window.
codex --oss --local-provider ollama -m gpt-oss:20bOllama installs OpenClaw, runs its setup and starts it. Pick a local model, not one ending in “:cloud”. OpenClaw needs 64K of context or more with local models.
OLLAMA_CONTEXT_LENGTH=65536 ollama serve
ollama launch openclawRun hermes model, choose Custom endpoint, enter http://localhost:11434/v1, skip the API key and type the model name. Hermes won’t start with less than 64K of context.
OLLAMA_CONTEXT_LENGTH=65536 ollama serve
hermes modelThe 26 tools in the November research, with versions as checked then.
| Tool | Kind | Runs on | Licence |
|---|---|---|---|
llama.cppThe reference engine for GGUF models. Offloads MoE experts, supports an FP8 KV cache and speculative decoding, and includes llama-server with an OpenAI-compatible API and MCP. | Engine | All (CUDA, ROCm, Vulkan, Metal, SYCL, CPU) | MIT |
OllamaThe easiest place to start. Since version 0.40 it runs supported models on its MLX runner by default on Apple silicon, and it can launch Codex or Claude Code for you. Most frontier models are offered only as cloud tags. | Runner | macOS, Windows, Linux | MIT |
LM StudioThe most polished desktop app. Runs llama.cpp, MLX and its new Splash engine, speeds up answers with draft models (DFlash, DSpark, MTP), offers OpenAI- and Anthropic-compatible endpoints, and adds LM Link for remote use. | Desktop app | macOS, Windows, Linux | Proprietary (free); lms CLI MIT |
MLX / mlx-lmThe fastest native option on a Mac, and it can spread one model across several Macs. | Engine (Apple) | Apple Silicon | MIT |
vLLMBuilt for serving many users at once, with tensor parallelism, NVFP4 and FP8. Version 0.34 adds Mistral Large 4 and MiniMax-M3.1-Flash and removes the old V1 runner. | Server engine | Linux (CUDA, ROCm, XPU) | Apache-2.0 |
SGLangFast multi-user serving with structured output and strong support for MoE and DeepSeek models. | Server engine | Linux (CUDA, ROCm) | Apache-2.0 |
ExLlamaV3 + TabbyAPIEXL3 quants give the best quality for their size when a model fits entirely in NVIDIA VRAM, and it can split a model across mismatched cards. | Engine (NVIDIA) | NVIDIA CUDA | MIT / AGPL-3.0 (TabbyAPI) |
KTransformersRuns 500B–1T MoE models on one GPU with plenty of system RAM. | Engine (hybrid CPU+GPU) | Linux (CUDA + big-RAM CPU) | Apache-2.0 |
KoboldCppA single-file version of llama.cpp, popular for roleplay and writing. | Runner | All | AGPL-3.0 |
JanAn open-source alternative to LM Studio. | Desktop app | macOS, Windows, Linux | Apache-2.0 |
Open WebUIA ChatGPT-style interface for any OpenAI-compatible backend, with chat over your documents (RAG) and multiple users. | Web UI | Docker/any | Open WebUI licence (BSD-3 based, branding clause) |
AnythingLLMWorkspaces for chatting with your documents (RAG), plus agents, all with local models. | Desktop/Server app | All | MIT |
LocalAIA drop-in replacement for the OpenAI API. | Server | All | MIT |
Unsloth (Studio)Dynamic GGUF quants for nearly every model here, plus local fine-tuning. | Quants / fine-tune | All | Apache-2.0 (core); Studio UI AGPL-3.0 |
OpenClawA self-hosted personal agent that stays on. During setup (openclaw onboard) you can point it at Ollama in its “Local only” mode. | Agent (personal) | All | MIT |
Hermes AgentNous Research’s agent harness. Works with local OpenAI-compatible servers. | Agent (personal) | All | MIT |
Claude Code (local backend)Point ANTHROPIC_BASE_URL at LM Studio or Ollama, and use a model that supports tools with at least 64K of context. | Coding agent CLI | All | Proprietary |
Codex CLI (local backend)Run codex --oss --local-provider ollama (or lmstudio), or start it from Ollama with ollama launch codex. | Coding agent CLI | All | Apache-2.0 |
OpenCodeAn open-source coding agent for the terminal, with built-in support for local providers. | Coding agent CLI | All | MIT |
ClineAn agent in your IDE that plans, then acts. Works with Ollama and LM Studio. | Coding agent (VS Code) | VS Code / JetBrains | Apache-2.0 |
GooseA general-purpose agent built around MCP. | Agent (desktop/CLI) | All | Apache-2.0 |
OpenHandsAn autonomous software-engineering agent that works in a sandbox and reaches local models through LiteLLM. | Coding agent (autonomous) | Docker | MIT |
Roo CodeArchivedRepository archived on 15 May 2026. Listed for reference; not recommended for new setups. | Coding agent (VS Code) | VS Code | Apache-2.0 |
ContinueAutocomplete and chat in your IDE, with local models. | IDE assistant | VS Code / JetBrains | Apache-2.0 |
AiderA pair programmer that works with Git. It still runs against local OpenAI-compatible endpoints, but development has slowed. | Coding agent CLI | All | Apache-2.0 |
MCP (Model Context Protocol)The common standard for giving models tools. llama-server, LM Studio, Goose, OpenClaw, Claude Code and Cline all support it, so local models can use the same tools as cloud agents. | Protocol | — | Apache-2.0 (new code/spec; MIT→Apache transition), docs CC-BY-4.0 |