Skip to content

How-ToGPU

How to Use Ollama Launch to Start Coding Agents with Local Models

Ollama's launch command sets up and starts coding agents such as Claude Code, OpenCode and Codex with local models, without editing config files. Here's how to use it, which apps it supports and why you need a 64K context window first.

By , Systems & Technical Editor

3 min read

How to Use Ollama Launch to Start Coding Agents with Local Models

Connecting a coding agent to a local model used to mean editing config files and pointing each tool at Ollama's API by hand. Ollama now has a shortcut: the ollama launch command, which sets up and starts supported apps for you. This guide explains what it does, which apps it supports and what your PC needs, based on Ollama's documentation and release notes, read on 28 November 2026.

What ollama launch does

Ollama's CLI reference describes ollama launch as a way to "configure and launch external applications to use Ollama models", calling it "an interactive way to set up and start integrations with supported apps". Instead of writing a provider config yourself, you pick the app and a model, and Ollama does the wiring.

Which apps it supports

Ollama's CLI reference lists these supported integrations:

  • OpenCode, an open-source coding assistant

  • Claude Code, Anthropic's agentic coding tool

  • Codex, OpenAI's coding assistant

  • VS Code, Microsoft's editor with built-in AI chat

  • Droid, Factory's AI coding agent

Ollama's integrations page also says you can run ollama launch and choose OpenClaw or Hermes Agent for a personal assistant, and its release notes for Ollama 0.40.17 mention ollama launch pi and ollama launch chatgpt. The list is changing quickly, so run ollama launch on its own to see what your version offers.

Step 1: Install or update Ollama

You need a recent Ollama build, as ollama launch features are still being added in point releases. See How to Update Ollama on Windows or How to Install Ollama on Linux.

Step 2: Run the launcher

Open a terminal and use one of the forms from Ollama's CLI reference:

  • ollama launch opens an interactive picker.

  • ollama launch claude launches a specific integration.

  • ollama launch claude --model qwen3.5 launches it with a specific model.

  • ollama launch droid --config configures an app without launching it.

For OpenCode the command is ollama launch opencode; Ollama's OpenCode page says it "configures OpenCode to use local and cloud models".

Step 3: Give the model enough context

This is the step most likely to trip you up on a home PC. Ollama's Claude Code page says to choose a local model and set a 64k+ context window, and its OpenCode page says "OpenCode requires a context length of 64k or higher". Check your context setting before you start; see How to Set Ollama Context Length.

A longer context needs more memory, so a model that loads fine for chat may not fit your GPU at 64K. Our guides to context length and VRAM and how much VRAM you need explain the trade-off, and the best local coding models suggests models to try.

Ollama also offers cloud models through the same launcher. Its pages say cloud models let you "use larger models without downloading them"; cloud models aren't downloaded to your PC, so pick a local model if you want everything to stay on your machine.

Scripts and automation

For scripts, Docker or CI, Ollama's Claude Code page documents a --yes flag that "skips selectors, pulls the model when needed, and requires --model". Anything after -- is passed straight to the app, for example ollama launch claude --model <model> --yes -- -p "how does this repository work?".

Recent changes

Ollama's 0.40.17 release notes list several launcher updates: ollama launch claude supports Claude Code's deferred tool loading, so MCP tools load when needed; ollama launch opencode sets thinking options from the model's metadata; ollama launch pi refreshes Pi's model list after sign-in; and ollama launch chatgpt --restore asks before switching an active profile.

Prefer to set things up by hand?

ollama launch is a shortcut, not a requirement. Our app-by-app guides cover manual setup for Claude Code, OpenCode, Codex CLI, VS Code, Hermes Agent and OpenClaw.

The bottom line

Update Ollama, set the context length to at least 64K, then run ollama launch and pick your app, or name it directly with ollama launch claude or ollama launch opencode. It saves editing config files, but your GPU still needs enough VRAM for the model at that context length, and you should pick a local rather than cloud model if you want your code to stay on your PC.

Sources

  1. 01Ollama, CLI Reference
  2. 02Ollama, Integrations overview
  3. 03Ollama, Claude Code integration
  4. 04Ollama, OpenCode integration
  5. 05Ollama (GitHub), v0.40.17 release notes

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next