In this article
The launch command simplifies integration, while model, quantization, allocated context and actual CPU/GPU placement still determine local feasibility.
On 23 January 2026, Ollama introduced ollama launch, a command that configures and starts familiar coding agents with models through Ollama. It connects an agent interface to a local or cloud model; the announcement names Claude Code, OpenCode, Codex and Droid. The feature requires Ollama 0.15 or later. It shortens the path from installation to work, but local operation is often constrained by memory for the working context as much as the model itself. Ollama announcement
Ollama recommends at least 64 000 context tokens for coding tools. The same announcement estimates approximately 23 GB VRAM for local glm-4.7-flash at that context. This is a planning reference, not an independent benchmark: no detailed measurement protocol or particular graphics card is given. Nominal 24 GB capacity on a product box does not guarantee that enough memory is free to keep everything on GPU. Ollama announcement
What one command starts
The coding agent and model have different roles. The agent supplies the working interface, sends instructions and file contents to the model, and may propose edits or use tools. Ollama serves the selected model; launch connects it to the agent. Support and action quality depend on both. A successful connection does not guarantee that a local model handles tools as reliably as any particular cloud model.
For example, the announcement’s local workflow first downloads a model and then starts the agent:
ollama pull glm-4.7-flash
ollama launch claude
The setup flow allows model selection. Another example is ollama launch opencode; adding --config configures the integration without immediately starting it. The model catalogue also shows explicit selection: ollama launch claude --model glm-4.7-flash. This is one command for starting a prepared workflow, while Ollama installation, model downloads and hardware requirements remain prerequisites. Announcement, model listing
The local option suits developers who want inference on their own machine and control over the model environment. Ollama also offers cloud models, such as glm-4.7:cloud. Selecting one places model computation in the cloud and cannot be described as wholly local. Costs, limits and data-processing rules need checking for the particular service and configuration. Ollama announcement
Why context changes the calculation
The context window is the token budget available to a model in a request. Agents need room for the task, instructions, history, repository excerpts and tool results. As work grows, some content may need selection, compression or removal. The 64 000-token recommendation is Ollama’s practical guidance for agents, rather than a universal technical minimum for every project. Ollama documentation
Longer contexts also increase memory demand. Alongside weights, generation keeps intermediate attention states in a KV cache and needs working buffers. Download size therefore differs from total VRAM required. The Ollama catalogue, for example, lists glm-4.7-flash:q4_K_M at approximately 19 GB. That describes the model variant, not a promise that 19 GB supports a full 64k session. Other precisions occupy more space, while actual allocation also depends on implementation and settings.
The current Ollama context page gives VRAM-dependent defaults: 4k below 24 GiB, 32k for 24–48 GiB and 256k at 48 GiB or above. This is a selection policy, not a guarantee that every model fits at the associated context. The documentation separately recommends avoiding CPU offload for performance. Context length
Checking a particular machine
Context can be configured in application settings or when starting the server. For example, when the server is not already running, the documentation shows:
OLLAMA_CONTEXT_LENGTH=64000 ollama serve
After loading the model, run ollama ps: CONTEXT shows allocated context and PROCESSOR indicates CPU/GPU placement. If the result shows mixed placement, a successful start does not establish that the whole model resides in VRAM. Moving some computation to CPU can substantially slow execution. The environment variable applies to the server process, so an existing server may need restarting. Ollama documentation
Memory-saving settings also exist. The Ollama FAQ describes Flash Attention and KV-cache quantization. Its developers state that q8_0 uses approximately half the cache memory of f16. This concerns the cache rather than total model memory. Effects depend on the model and hardware, and reduced precision can affect quality. Check the actual task and model placement before settling on settings.
What separate observations show
External data also needs qualifications. llm-bench.io publishes two user-submitted glm-4.7-flash runs through Ollama with Q4_K_M on Radeon RX 7900 XTX and context 65 536, dated 13 and 25 April 2026. They list 24.3 GB memory and GPU placement of 89% and 87%. These are observations from two reported configurations, not proof of a general model requirement: the viewed description does not disclose a complete peak-memory method and every system setting.
Another separate script and result collection examines GLM-4.7-Flash on two RTX 3090 cards with Ollama 0.20.5, comparing behavior at different context sizes. Its author reports declining generation speed as context grows. Two cards with 24 GB each make this useful for studying performance dependence, but do not validate the approximately 23 GB single-card estimate.
For hardware selection, evaluate the combination of model, quantization, context and memory actually free during the task. If the agent starts but runs slowly, ollama ps helps identify mixed CPU/GPU placement. If context is insufficient, reducing the working input or choosing a smaller model may be more useful than allocating the entire window regardless of consequences.
Sources
- Ollama launch announcement
- Ollama context-length documentation
- Ollama glm-4.7-flash listing
- Ollama memory and KV-cache FAQ
- llm-bench.io user-submitted glm-4.7-flash results
- glm-3090-benchmarks scripts and data
The Ollama context guide explains configuration in detail, while the CPU/GPU split guide explains mixed placement.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.