★ Reading this for free? Get 20 structured AI courses + per-chapter AI tutor — the first chapter of every course free, no card.Start free in 30 seconds
Agents

Which Local Model Can Actually Drive Claude Code? The `ollama launch` VRAM Map

September 6, 2026
11 min read
LocalAimaster Research Team

Want to go deeper than this article?

Free account unlocks the first chapter of all 25 courses — RAG, agents, MCP, voice AI, MLOps, real GitHub repos.

📚AI Learning Path

Ollama’s running. Here’s what to build with it. Go from “ollama run” to RAG apps, agents, and fine-tuned models — structured and hands-on. First chapter free.

Start free
Or own it for life — Lifetime $149, pay once

Short answer: ollama launch claude is one command, and on a 24GB card with muse-glimmer:30b (an 18GB download, 128K context, Apache 2.0) it is a genuinely usable setup. On 12GB you drop to a 9B-class driver like qwen3.5:9b (6.6GB). On 16GB, gemma4:12b (7.6GB) leaves room to breathe. Below 8GB, don't. And the number that decides all of this is not parameters — it's that Ollama defaults to 4k context under 24GiB of VRAM while every agent harness in its own docs asks for 64k minimum.

That last sentence is the whole page. Everything else is detail.


What fits, by VRAM tier

Sizes below are the exact download sizes published on each model's Ollama tag page, checked 18 August 2026. They are the weights only. Add KV cache for whatever context you set — see the next section, because on the small tiers it is the difference between working and thrashing.

Your hardwareModel tagDownload sizeContext on cardOur read
8GBqwen3.5:4b3.4GB256K max, ~32k realisticRuns. Expect it to lose the plot in long agent loops — this is a "try it" tier, not a work tier
12GBqwen3.5:9b6.6GB64k reachableThe lowest tier we'd point a real agent at. Ollama's own OpenClaw doc lists qwen3.5 at ~11GB VRAM as a recommended local model
16GBgemma4:12b7.6GB64k comfortableBest headroom-to-capability ratio in the mid tier. Ollama's docs list gemma4 at ~16GB VRAM
24GBmuse-glimmer:30b18GB64k tightThe intended target. Ollama defaults 24-48GiB cards to 32k context, so you will still raise it by hand
24GB (alt)qwen3.5:27b-q4_K_M17GB64k tightSame footprint, 256K max context vs Muse Glimmer's 128K
32GBmuse-glimmer:30b18GB128K viableWhere the harness stops fighting you
32GB (alt)qwen3.5:35b-a3b24GB64k+MoE, 3B active — faster per token than a dense 27B
Apple 32GB unifiedmuse-glimmer:30b-mlx21GB64k tightOllama says its MLX engine gives state-of-the-art performance on Apple Silicon for this model. 21GB of 32GB shared with macOS is genuinely tight
Apple 48GB+ unifiedmuse-glimmer:30b-mlx21GB128K viableThe comfortable Mac tier, and the cheapest comfortable tier full stop

The "Context on card" and "Our read" columns are our judgement, not vendor figures — the download sizes and maximum context windows are. Treat the first two columns as fact and the last two as a starting point to test against.

A few notes that matter more than the table:

  • The -mlx tag is bigger, not smaller. 21GB against 18GB for the standard tag. People assume the Apple build is leaner; it is not. Ollama added DFlash and image input support to the MLX path in 0.32.7.
  • Muse Glimmer has a lot of tags. 30b-nvfp4 is 17GB, 30b-q4_K_M is 18GB, 30b-mxfp8 is 33GB, 30b-bf16 is 57GB, and the DFlash variants add a few GB each. The plain muse-glimmer tag resolves to the 18GB build — that is the one you want unless you know why you want otherwise.
  • Qwen3.5 goes both smaller and much larger. 0.8B (1.0GB) through 122B-A10B (81GB), all at 256K context. If you're mapping a whole fleet, our Ollama RAM/VRAM table and the 24GB VRAM coding picks cover the wider lineup.

Reading articles is good. Building is better.

Free account = the first chapter of all 25 courses, with a per-chapter AI tutor. No card.

Context is the real bottleneck, not parameters

Ollama's documentation states its default context lengths outright: under 24GiB VRAM you get 4k, 24-48GiB gets 32k, and 48GiB or more gets 256k. The same page then says tasks that need large context — "web search, agents, and coding tools" — should be set to at least 64000 tokens.

Read those two facts together and the failure mode is obvious. A 12GB card boots your agent with a 4k window. Claude Code loads a system prompt, a directory tree and one file, and it's already out of room. Nothing errors. The agent just gets stupid.

Raise it explicitly:

OLLAMA_CONTEXT_LENGTH=64000 ollama serve

Then confirm nothing spilled to CPU:

ollama ps

Check the PROCESSOR column reads 100% GPU and the CONTEXT column reads what you asked for. If it says something like "62%/38% CPU", your tokens-per-second just fell off a cliff and the agent will feel broken even though it technically works. Drop to a smaller tag or a lower context before you conclude the model is bad — our Ollama RAM/VRAM table has the smaller options.

Ollama's docs repeat the 64k floor in three separate integration pages we read — Codex ("requires a larger context window", at least 64k), OpenClaw ("at least 64k tokens if using local models"), and Claude Code ("for larger repositories, set the context length to 64k or higher"). When three vendor docs independently name the same number, treat it as the requirement, not a suggestion.


The commands

Every command below is copied from Ollama's own docs or release notes as of 18 August 2026.

Install a driver model and start Claude Code against it:

ollama pull muse-glimmer
ollama launch claude --model muse-glimmer

The same shape works across harnesses:

ollama launch pi --model muse-glimmer        # minimal, extensible coding agent
ollama launch openclaw --model muse-glimmer  # personal assistant, messaging bridges
ollama launch hermes --model muse-glimmer    # self-improving skills + memory
ollama launch codex                          # OpenAI Codex CLI
ollama launch dsh --model qwen3.8            # DeepSeek Harness (developer preview)

Useful flags, all documented:

ollama launch                     # interactive picker — the current, authoritative list
ollama launch claude --config     # configure without starting
ollama launch codex --restore     # remove Ollama's launch profile and generated catalog
ollama launch dsh -- --port 3081  # pass arguments through to the harness

And the non-interactive form for scripts, Docker or CI, straight from the Claude Code integration doc:

ollama launch claude --model gemma4:cloud --yes -- -p "how does this repository work?"

--yes skips the selectors, pulls the model if needed, and requires --model.

If you'd rather not use the launcher at all, the manual wiring for Claude Code is three variables:

export ANTHROPIC_AUTH_TOKEN=ollama
export ANTHROPIC_API_KEY=""
export ANTHROPIC_BASE_URL=http://localhost:11434
claude --model qwen3.5

That manual path is what our older Claude Code offline with Ollama guide describes, and it still works — the launcher just does it for you and adds a model picker.


Which harness for which job

ollama launch is not one integration; the Ollama repo's docs directory currently carries integration pages for 26 tools. The five that matter for local coding, with what the vendor docs actually say about each:

HarnessCommandWhat Ollama's docs say it isWorth knowing
Claude Codeollama launch claudeAgentic coding tool: chat, CLI, tool calling, file edits, subagents, web search, vision, thinkingHas a /loop <interval> <prompt> scheduler and an official Telegram plugin path
Codex CLIollama launch codexOpenAI's coding assistantRefreshes the model catalog and uses a dedicated Codex profile per session. Manual path is codex --oss -m <model>
Piollama launch pi"Minimal and extensible coding agent"Ships only read, write, edit, bash; everything else is an extension package
OpenClawollama launch openclawPersonal assistant bridging WhatsApp, Telegram, Slack, Discord, iMessage to coding agentsFormerly Clawdbot; ollama launch clawdbot still aliases. Shows a security notice on first launch, for good reason
DeepSeek Harnessollama launch dsh"Open-source coding agent"Explicitly labelled a developer preview — upstream config may change between releases

Pi's tool set is the honest tell about the whole category. Four tools and an extension system means the harness is thin and the model is doing the work. Which is exactly why the model choice above matters more than the harness choice.

Per-tool walkthroughs live in their own guides: Codex CLI, OpenCode, Crush, Kilo Code, Zed, Goose and Hermes. This page is the model-selection layer above them.


Save yourself the weekend

Have the whole stack running before your coffee goes cold

Ten Compose files that come up with one command — instead of an afternoon of debugging YAML and CUDA flags.

Get it — $5$5 once · instant accessStart free →

What we did and did not verify

Being blunt about this, because a wrong VRAM number costs you an evening:

Verified against primary sources, 18 August 2026:

  • Release tags and dates from the GitHub release records: v0.32.0 (11 July 2026), v0.32.7 (10 August 2026), v0.32.8 (10 August 2026), v0.32.11 (14 August 2026), v0.32.14 (15 August 2026).
  • Every model size and context figure from the model's own tag listing on ollama.com.
  • Every command from Ollama's docs directory or a release body.
  • Muse Glimmer's licence (Apache 2.0), 128K context, 30B parameters and image input from its model card.
  • The default-context-by-VRAM figures from Ollama's context-length documentation.

Not verified, and therefore not claimed anywhere on this page: tokens-per-second on any card, task completion rates, and any head-to-head "which model finishes the refactor" comparison. We have not run a controlled benchmark across these harnesses, and publishing invented throughput numbers is how buying guides get people to waste money. When we have measured numbers, they'll appear here with the methodology attached.

Vendor claims, labelled as such: Ollama states its MLX engine gives "state-of-the-art performance on Apple Silicon" for Muse Glimmer, and describes Muse Glimmer as built for always-on local agents. Those are Ollama's and Meta's words, not a measurement of ours.


Honest limitations

Where this setup will disappoint you:

  1. "Offline" is conditional. First launch installs the harness over npm or a vendor script. Web search inside Claude Code, Pi, OpenClaw and DeepSeek Harness routes through Ollama's hosted search and needs ollama signin. The inference is local; the convenience layer is not.
  2. Context eats your card. Covered above, and it is the single most common reason a local agent underperforms the same model in a chat window.
  3. DeepSeek Harness is a preview. Ollama's own doc says the upstream configuration may change between releases. Don't build a workflow on it yet.
  4. The launcher writes config. ollama launch codex uses a dedicated profile and regenerates a model catalog; ollama launch dsh writes ~/.ollama/launch/dsh/settings.yaml. Ollama's docs say it leaves your own ~/.dsh/settings.yaml, profiles, sessions and credentials alone — but know that files are being written on your behalf.
  5. A 30B local model is not a frontier cloud model. It is roughly free, private, and yours. Set expectations accordingly and give it smaller, better-scoped tasks than you'd hand a hosted agent.
  6. Ollama is shipping fast. Nine tagged releases between 4 and 15 August 2026 alone (v0.32.6 through v0.32.14). Anything in this space, including this page, has a short half-life — check ollama launch with no arguments for the live list.

Verdict

If you have 24GB of VRAM or a 48GB Mac, local agentic coding stopped being a science project this summer. One ollama launch claude and an 18GB model download gets you there, and the setup friction that used to fill a whole blog post is now handled by the launcher.

If you have 12-16GB, you can absolutely run this — just go in knowing you're driving a 9B-to-12B model with a hand-raised 64k window, and that the ceiling is real. If you have 8GB, spend the evening on smaller-model workflows instead and save agentic coding for your next card.

And whatever tier you're on: set the context length before you judge the model. Most "local agents are useless" takes are 4k-context takes.


FAQ

🎯
AI Learning Path

Ollama’s running. Here’s what to build with it.

Go from “ollama run” to RAG apps, agents, and fine-tuned models — structured and hands-on. First chapter free.

Or own it for life — Lifetime $149 $599, pay once
Once your hardware is sorted

Stop piecing Ollama together from blog posts

Ollama Mastery is 15 chapters end to end — install, model choice, Modelfiles, GPU offload, the API, and the 20 errors that actually happen. Plus 24 more courses.

$149 once unlocks everything, forever — about $0.27/chapter for life. Prefer to spread it out? Pro is $79/year (saves 27%) or $8.99/month.
Secure checkout by Lemon Squeezy — your card never touches this siteInstant access the moment you payFirst chapter of every course is free — try before you buy

Liked this? 25 full AI courses are waiting.

From fundamentals to RAG, agents, MCP servers, voice AI, and production deployment with real GitHub repos. First chapter free, every course.

Reading now
Join the discussion

LocalAimaster Research Team

Creator of Local AI Master. I've built datasets with over 77,000 examples and trained AI models from scratch. Now I help people achieve AI independence through local AI mastery.

Build Real AI on Your Machine

RAG, agents, NLP, vision, and MLOps - chapters across 25 courses that take you from reading about AI to building AI.

Want structured AI education?

25 courses, 519+ chapters, from $9. Understand AI, don't just use it.

AI Learning Path
More on Ollama
See the full Best Ollama Models 2026 guide.

Comments (0)

No comments yet. Be the first to share your thoughts!

Can Claude Code really run on a local model?

Yes. Ollama ships an Anthropic-compatible endpoint, and `ollama launch claude` configures Claude Code to point at it for you — installing Claude Code if it is missing, letting you pick a model, and starting the session. Ollama's own documentation for the integration lists chat, command line, tool calling, file edits, subagents, web search, vision and thinking as supported capabilities. The manual equivalent is three environment variables: ANTHROPIC_AUTH_TOKEN=ollama, ANTHROPIC_API_KEY="" and ANTHROPIC_BASE_URL=http://localhost:11434.

What is `ollama launch` and when did it appear?

It is Ollama's launcher for external agent harnesses — it installs the tool if needed, writes a dedicated Ollama profile for it, picks the model, and drops you into a session. Ollama v0.32.0 (published 11 July 2026) introduced the interactive agent experience and moved the less common integrations behind `ollama launch`. v0.32.7 and v0.32.8 (10 August 2026) shipped Muse Glimmer with documented `ollama launch claude|codex|pi|openclaw|hermes` commands, and v0.32.11 (14 August 2026) added `ollama launch dsh` for DeepSeek Harness and `ollama launch muse` for Meta Muse Code. All dates read from the GitHub release records.

How much VRAM do I need to drive Claude Code locally?

Plan on 16GB as the realistic floor and 24GB as the comfortable one — not because of the weights, but because of context. Ollama's own documentation says it defaults to 4k context below 24GiB of VRAM, and that agents and coding tools should be set to at least 64000 tokens. So on a 12GB or 16GB card you are manually raising OLLAMA_CONTEXT_LENGTH, and that KV cache competes with the model for the same memory. A 6.6GB model on a 12GB card is not really a 6.6GB problem.

What is Muse Glimmer and do I need it?

Muse Glimmer is the 30B open model that Ollama's v0.32.7/0.32.8 release notes pushed specifically for these harnesses — described on its Ollama model card as Meta's latest open model built for always-on local agents, Apache 2.0, 128K context, with text and image input. The default `muse-glimmer:30b` tag is an 18GB download; `muse-glimmer:30b-mlx` is 21GB and is the Apple Silicon path, which Ollama says gets state-of-the-art performance on its MLX engine. You do not need it — `ollama launch` works with any tool-capable model — but it is the one the vendor is steering agent users toward.

Which harnesses can `ollama launch` start?

As of the docs in the Ollama repository on 18 August 2026, the integrations directory covers Claude Code, Codex CLI and the Codex app, OpenCode, Cline (and Cline CLI), Copilot CLI, DeepSeek Harness, Droid, Goose, Hermes (and Hermes Desktop), NemoClaw, oh-my-pi, Onyx, OpenClaw, Pi, Pool, Roo Code, Marimo, n8n, JetBrains, VS Code, Xcode, Zed and Claude Desktop. The CLI reference calls out OpenCode, Claude Code, Codex, VS Code and Droid as the headline set. Run `ollama launch` with no arguments to see the current list rather than trusting any published one.

Does this work fully offline?

The model inference does. Several conveniences do not. Web search inside Claude Code, Pi, OpenClaw and DeepSeek Harness routes through Ollama's hosted web search API, and Ollama's docs say web search for local models requires `ollama signin`. `ollama launch` also installs the harness itself over npm or a vendor install script the first time. Set the machine up while connected, then disconnect — that is the honest offline story.

Ready to Go Beyond Tutorials?

20 structured courses with hands-on chapters - build RAG chatbots, AI agents, and ML pipelines on your own hardware.

Bonus kit

Ollama Docker Templates

10 one-command Docker stacks for local models — get a serving box up before you wire an agent to it. Included with paid plans, or free after subscribing to both Local AI Master and Little AI Master on YouTube.

See Plans →

Was this helpful?

📅 Published: September 6, 2026🔄 Last Updated: September 6, 2026✓ Manually Reviewed
LM

Written by the Local AI Master Team

The team behind Local AI Master

We build Local AI Master around practical, testable local AI workflows: model selection, hardware planning, RAG systems, agents, and MLOps. The goal is to turn scattered tutorials into a structured learning path you can follow on your own hardware.

✓ Local AI Curriculum✓ Hands-On Projects✓ Open Source Contributor
📚
Free · no account required

Grab the AI Starter Kit — career roadmap, cheat sheet, setup guide

No spam. Unsubscribe with one click.

🎯
AI Learning Path

Ollama’s running. Here’s what to build with it.

Go from “ollama run” to RAG apps, agents, and fine-tuned models — structured and hands-on. First chapter free.

Or own it for life — Lifetime $149 $599, pay once
Free Tools & Calculators