Loading KingLand…

Ollama: run your local models on Claude Desktop

Ollama v0.33.0 brings a major native integration with Claude Desktop, letting you run your local language models inside Anthropic's interface with no inference charge.

Unifying the local development workflow takes another step forwardThanks to its compatibility with the Anthropic Messages API, Ollama lets Claude Code run local models while preserving Anthropic's agentic environment, improving control over the path taken by sensitive data.

Explore the latest Ollama releases Understand the ecosystem of your local models.

Ollama: Claude Code directly leverages your local models

Why this matters now: in August 2026 Ollama boosted its local engine performance while its officially maintained integration with the Anthropic ecosystem now goes through Claude Code and its compatible API, not Claude Desktop.

The key takeaway

Ollama pre-release v0.32.15 notably adds a metadata cache to reduce per-request overhead. At the same time, Claude Code can be launched with local models via ollama launch claudeThe old Claude Desktop integration, briefly offered in spring 2026, is no longer supported by Ollama.

Contents

Why this matters now

In 2026, local AI is no longer limited to CLI experiments. Privacy, cost control and the ability to run workloads on your own hardware are pushing engineering teams to take open-weight and open-source models more seriously in development workflows.

Ollama has supported the Anthropic Messages API since version 0.14.0, enabling Claude Code to use locally served models. However, the specific Claude Desktop integration introduced with Ollama v0.23.0 was removed in ollama launch v0.23.2. As of August 25, 2026, Ollama's official documentation explicitly recommends Claude Code for Anthropic-compatible programming workflows.

Recent technical news is mainly about performance. The pre-release v0.32.15 of Ollama adds a cache of metadata and model capabilities to avoid some repetitive operations on every request. This optimization strengthens Ollama as an execution layer for mixing local models and cloud services as needed.

What it is

Architecturally, Ollama exposes a local API compatible with part of the Anthropic Messages API. Claude Code can send requests to this API, typically available on http://localhost:11434instead of always using Anthropic's hosted models API. The command ollama launch claude automates this configuration for officially supported workflows.

Pre-release v0.32.15 also adds a cache of resolved model metadata. The fix prevents rereading certain GGUF metadata multiple times during an inference call. In the published benchmark with the fix, mean TTFT dropped from about 995 ms to 524 ms, but this depends on model, hardware and test parameters and is not a general guarantee.

Technology in brief

Claude Code can talk to the local Ollama server through its Anthropic-compatible endpoint. Claude Code keeps its programming agent features while the chosen model and inference can be executed by Ollama on your hardware.

Ollama also keeps optimizing its llama.cpp and MLX engines across platforms. Cache, context and resumption mechanisms should not be seen as uniform: their behavior depends on engine, model, context length and version.

What you can use it for

This architecture directly addresses fragmented development environments and the need to control data flows. It supports three goals within a coherent workflow:

  • Better control of sensitive data: When an Ollama model runs locally, prompts and responses processed by Ollama stay on the machine according to the vendor's documentation. A complete security policy must still consider the client's other network functions and the environment used.
  • Keep an advanced development agent: Claude Code can read, modify and run code in the workspace while using a model served by Ollama, provided that model supports the capabilities required by the chosen workflow.
  • Match local and cloud to the context: Developers can reserve local models for tasks that fit their hardware and use cloud models when model size, context or task complexity exceed workstation capabilities.

In practice, Ollama reduces friction for experimenting with local-first development workflows without forcing a complete move away from cloud services.

Operational impact and ROI

The main economic benefit of this architecture rests on two levers: fewer paid token calls and tighter control of inference flows. Actual savings depend on hardware, power use, administration time and the share of tasks that can run locally.

For senior developers

  • Benefit: Some requests can run without network latency to a remote model provider. The metadata cache added in pre-release v0.32.15 also reduced mean TTFT from 995 ms to 524 ms in the published benchmark, though that number does not automatically apply to every setup.
  • Use cases: Test generation, documentation, code exploration and refactoring can be handed to local models when their capabilities and available memory suffice, without directly consuming cloud inference quotas for those requests.

For AI architects and CTOs

  • Benefit: A hybrid strategy can cut some variable API costs when repetitive tasks run on already available hardware. Local inference doesn't bill per token with Ollama, but it still incurs hardware, energy and operational costs.
  • Use cases: Organizations can set differentiated policies: some sensitive content routed to local models while cloud models remain for tasks needing more capacity or context.

Relying on Ollama and its hybrid infrastructurecompanies gain another lever to diversify dependencies on model providers.

How to use it

Current implementation uses Claude Code rather than Claude Desktop. Here's the recommended workflow to connect an Ollama model to Anthropic's programming environment:

  1. Download and install a recent Ollama release from the Ollama official releases repoThe v0.32.15 build is a pre-release and may therefore be avoided in production in favor of the latest stable version.
  2. Make sure Claude Code is installed on your system per Anthropic's instructions.
  3. Open a terminal and check that the local Ollama server is running and the desired model is downloaded.
  4. Start the officially supported integration with ollama launch claudeIn manual configuration, Ollama also documents using ANTHROPIC_BASE_URL=http://localhost:11434 and a dummy local token required by the client.
  5. Choose a model suited for code agents, for example one recommended in Ollama's current documentation, then verify its context and tool-calling capabilities before using it on a real project.

Available models change regularly. After installing or updating a model with Ollama, restart or reconfigure the relevant workflow if needed rather than assuming a third-party interface will refresh its model list automatically.

Pricing and business model

Ollama today combines a freely usable local infrastructure with paid cloud services. Distinguish the main repo software, distributed under an MIT license, the licenses of each downloaded model, and Ollama Cloud's commercial offers.

  • Local usage: The Free plan is shown at $0. Ollama states that running models on your own hardware is unlimited. Models themselves remain subject to the licenses set by their publishers.
  • Ollama Pro: The Pro plan is shown at $20/month or $200/year billed annually. It includes access to larger cloud models, up to three simultaneous cloud models and a usage volume marketed as 50x the Free plan. Other offers, including Max, Team and Enterprise, also exist.

For a team that already has compatible hardware, local inference can lower some variable cloud model costs. It should not be presented as economically free, since hardware acquisition, electricity, admin and workstation refresh remain factors.

Alternatives to consider

Ollama is not the only option for running models locally. Choice depends on desired abstraction level, hardware, model formats and whether you need an API compatible with existing tools.

If you want a desktop-oriented GUI solution, LM Studio and its simplified interface are an alternative to consider for downloading, managing and running local models without favoring the command line.

For more technical scenarios, Llama.cpp provides a lightweight engine with a server compatible with several OpenAI- and Anthropic-style endpoints. vLLM targets serving scenarios on server infrastructure where throughput and request concurrency are priorities.

A practical example

To illustrate the operational interest of this architecture, consider a refactoring session on proprietary code using a model executed locally. This scenario is illustrative and is not a benchmark carried out by KingLand.

Prompt / action

The developer launches Claude Code with a programming-compatible model served by Ollama. They submit a large Java class and ask it to identify concurrency issues, improve thread handling and propose rewrites of some SQL queries.

The result

If the selected model, context and hardware are sufficient, the model inference can run locally via Ollama while Claude Code orchestrates the analysis and allowed actions on the project. Observed performance will strongly depend on model, quantization, context size and the machine used.

What can go wrong

When available memory becomes insufficient or the requested context is too large, performance can degrade sharply. Depending on platform and inference engine, some computation may be moved to other memory or CPU resources, directly affecting response time.

Implementation guide

Here is an operational roadmap to test then deploy this integration within a development team without turning a local experiment into an unverified promise of security or performance.

Phase 1: initial configuration

Goal: Install the inference engine, download a compatible model and connect Claude Code to the local Ollama endpoint.

Action: Install a recent Ollama version, download the target model with a command such as ollama pull qwen3-coder, then launch Claude Code with ollama launch claude or the Anthropic-compatible configuration documented by Ollama.

Expected result: Claude Code accepts the model served by Ollama and can run a conversation or a simple code task without an API error.

Phase 2: first results

Goal: Measure the real responsiveness of the local model and verify its behavior on tasks representative of the team's work.

Action: Submit multiple generation, analysis and code-editing tasks, measure TTFT, generation throughput, memory use and the stability of tool calls on the actual deployed hardware.

Expected result: A reproducible measurement baseline specific to your environment, rather than a generic latency target derived from a benchmark on another model and hardware.

Phase 3: deployment

Goal: Industrialize local/cloud usage and precisely document allowed data flows.

Action: Standardize configuration ollama launch claude or required environment variables, disable Ollama cloud features with provided mechanisms when the environment demands it, then apply the organization's network and telemetry policies.

Expected result: A documented workflow where developers know which models can be used locally, what data can be entrusted to them and when cloud processing is still necessary.

Risks and limitations

Despite the technical appeal of the Ollama–Claude Code integration, organizations must evaluate hardware constraints, model licenses, integration maturity and capability differences between local and cloud models.

Model size Indicative memory to plan for Common quantization Suitable hardware type Main caution point
8B–9B About 6–12 GB or more depending on context Q4 to Q8 depending on needs Dedicated GPU or a machine with sufficiently sized unified memory Model quality and context length
14B–15B About 10–20 GB or more depending on quantization Q4 to Q8 depending on available memory GPU with larger memory or Apple Silicon with suitable unified memory Balance between quality, memory and speed
32B+ About 20–40 GB or more depending on architecture and context Quantization often required on a workstation A workstation with abundant VRAM or unified memory High risk of severe degradation if the model exceeds available resources

Ideal for: Software engineers wanting to test or industrialize local processing, organizations seeking tighter control of their data flows and teams aiming to reduce dependence on a single model API.

Watchpoints: v0.32.15 is a pre-release. Also, Claude Desktop is no longer a supported Ollama integration: the old configuration must be restored with ollama launch claude-desktop --restore if it had been enabled. The officially recommended workflow now relies on Claude Code.

Avoid if: Your workstations have little memory, if the model your activity needs far exceeds local capacity, or if you require performance and agentic capabilities a selected local model cannot reliably provide.

Questions to ask before you decide

[CTO] How does this integration guarantee our sensitive data won't leak?

It must not be presented as an absolute guarantee. Ollama states prompts and responses processed by its local models are not sent to Ollama.com. The organization must still audit the client, extensions, MCP tools and network accesses. Ollama does allow disabling its cloud features, and its Claude Code workflow disables Claude Code telemetry by default in recent versions. ollama launch for Claude Code disables Claude Code telemetry by default in recent versions.

[Ops / product] What is the impact of this integration on Ollama's KV cache management?

You must distinguish the KV cache from the new metadata cache in v0.32.15. The recent fix mainly prevents repeated reads and resolutions of model metadata on each request. It doesn't by itself guarantee persistence of the KV cache across all requests or engines. Context-cache behavior still depends on model, engine and version.

[Developer] Can we keep using Anthropic's MCP tools with a local Ollama model?

Claude Code retains its Model Context Protocol support, while Ollama supports tool calling with compatible models. Success depends strongly on the local model's ability to understand and correctly execute tool calls. Validate each model on the actual tools used before production deployment.

[Decision-maker] Does using Claude Desktop with Ollama require a paid license?

Claude Desktop is no longer the integration officially supported by Ollama. For Claude Code, Ollama documents a workflow using its Anthropic-compatible local endpoint and does not require an Ollama Pro subscription to run a model on your own hardware. Claude Code's terms of use remain defined by Anthropic and should be verified for your organization.

The KingLand verdict

Overall score: 4.6 / 5

The pairing of Ollama and Claude Code is an important step for teams that want to combine programming agents with locally executed models. The main value is not turning Claude Desktop into a universal frontend—since that integration was dropped—but using an Anthropic-compatible API layer to connect Claude Code to a portfolio of local or cloud models.

Verdict: recommended with prior technical validation for teams that have sufficiently powerful hardware and can precisely assess model quality, licenses, network flows and tool compatibility required by their workflows.

An AI explorer’s perspective

“The real change is not reproducing Claude in a local interface, but keeping a familiar development agent while choosing more freely where and how its model runs.”

What I find most interesting in this change is not the GUI but the gradual standardization of model access layers. With an API compatible with Anthropic's format, Ollama can now sit under development tools already in use without forcing teams to rebuild their environments. It's less flashy than a new chatbot but likely more structural for developers reclaiming control of their inference infrastructure.

This approach also paves the way for more pragmatic hybrid architectures. Repetitive code checks can be handled by a local model while analyses needing more context or capacity stay in the cloud. CLI automations can call Claude Code with an Ollama-served model, provided permissions and tools are tightly controlled. The point is not to declare the end of cloud billing, but to make cloud use more selective and return infrastructure choice to engineering teams.

Download Ollama for your infrastructure Deploy your models locally now.