Run your first local model

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

How you’ll run it
Your system
  1. Install Ollama

    Download the Mac app from ollama.com and open it once.

  2. Download and start the model

    ollama run qwen3.5:4b

    The first run downloads about 3.4 GB. Use a tag without “cloud” in it: cloud tags run on Ollama’s servers, not your computer.

  3. Check it’s using your graphics

    ollama ps

    The PROCESSOR column should say “100% GPU”. A CPU share means part of the model didn’t fit and it will be slower.

  4. Run the quick test

    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.

Something’s not right?

The usual fixes, in the order to try them.

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.

It’s very slow

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.

“Model not found”

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.

It forgets the start of a long chat

The context is full. Raise it in the app’s settings, but only as far as your memory allows: longer contexts need more memory.

Use it with an agent

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 model

Claude Code with a local model via LM Studio

Start 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-20b
LM Studio’s guide

Claude Code with a local model via Ollama

Point 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
Ollama’s guide

Codex CLI with a local model via Ollama

--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:20b
Ollama’s guide

OpenClaw, an always-on personal agent, via Ollama

Ollama 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 openclaw
Ollama’s guide

Hermes Agent with a local model via Ollama

Run 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 model
Hermes Agent’s guide

Apps, engines and agents

The 26 tools in the November research, with versions as checked then.

ToolKindRuns onLicence
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.
EngineAll (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.
RunnermacOS, Windows, LinuxMIT
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 appmacOS, Windows, LinuxProprietary (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 SiliconMIT
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 engineLinux (CUDA, ROCm, XPU)Apache-2.0
SGLangFast multi-user serving with structured output and strong support for MoE and DeepSeek models.
Server engineLinux (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 CUDAMIT / 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.
RunnerAllAGPL-3.0
JanAn open-source alternative to LM Studio.
Desktop appmacOS, Windows, LinuxApache-2.0
Open WebUIA ChatGPT-style interface for any OpenAI-compatible backend, with chat over your documents (RAG) and multiple users.
Web UIDocker/anyOpen WebUI licence (BSD-3 based, branding clause)
AnythingLLMWorkspaces for chatting with your documents (RAG), plus agents, all with local models.
Desktop/Server appAllMIT
LocalAIA drop-in replacement for the OpenAI API.
ServerAllMIT
Unsloth (Studio)Dynamic GGUF quants for nearly every model here, plus local fine-tuning.
Quants / fine-tuneAllApache-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)AllMIT
Hermes AgentNous Research’s agent harness. Works with local OpenAI-compatible servers.
Agent (personal)AllMIT
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 CLIAllProprietary
Codex CLI (local backend)Run codex --oss --local-provider ollama (or lmstudio), or start it from Ollama with ollama launch codex.
Coding agent CLIAllApache-2.0
OpenCodeAn open-source coding agent for the terminal, with built-in support for local providers.
Coding agent CLIAllMIT
ClineAn agent in your IDE that plans, then acts. Works with Ollama and LM Studio.
Coding agent (VS Code)VS Code / JetBrainsApache-2.0
GooseA general-purpose agent built around MCP.
Agent (desktop/CLI)AllApache-2.0
OpenHandsAn autonomous software-engineering agent that works in a sandbox and reaches local models through LiteLLM.
Coding agent (autonomous)DockerMIT
Roo CodeArchivedRepository archived on 15 May 2026. Listed for reference; not recommended for new setups.
Coding agent (VS Code)VS CodeApache-2.0
ContinueAutocomplete and chat in your IDE, with local models.
IDE assistantVS Code / JetBrainsApache-2.0
AiderA pair programmer that works with Git. It still runs against local OpenAI-compatible endpoints, but development has slowed.
Coding agent CLIAllApache-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
Commands are examples for a single user on this computer. Check each tool’s own docs before changing settings.Research checked 24 Nov 2026 · US prices before tax