Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Ollama Tools and Editor Integration

Ollama Tools and Editor Integration

Ollama officially maintains a full integration catalog: terminal coding agents, mainstream IDEs, desktop assistants, and automation platforms can all use local models directly.

In this chapter we use ollama launch for one-click connection, or manually configure environment variables, to plug local models into your daily toolchain.


Integration ecosystem overview

Official integrations are divided into three categories by use case, covering all entry points from writing code to daily assistants.

Overview of the Ollama integration ecosystem

All integrations essentially follow the same path: point the tool's model requests to localhost:11434, or to an interface compatible with OpenAI and Anthropic.


ollama launch: one-click connection

launch is the unified entry point for integrations, interactively completing the four steps of "choose tool, choose model, write config, start".

Example

Interactively select the integration to start

ollama launch

Directly start a specified integration and specify the model

ollama launch claude

--model

qwen3.5

Only generate config, do not start

ollama launch droid

--config

In non-interactive scenarios such as scripts and CI, use --yes to skip all selectors; the model must be specified with --model:

Example

Non-interactive mode: auto-pull model, auto-config, direct execution

Arguments after "--" are passed verbatim to Claude Code itself

ollama launch claude

--model

qwen3.5

--yes

--

-p

"What is this repository for?"


Terminal Coding Agent

Coding agents in the terminal are the most active integration category; Ollama connects to them via each vendor's compatible protocol.

Tool Description
Claude Code Anthropic's coding agent, connected via the Anthropic-compatible interface, supports tool calling, subtasks, and web search
OpenCode Open-source coding agent that edits, runs, and iterates code
Codex OpenAI's coding assistant, available in CLI and desktop forms
Copilot CLI GitHub's command-line coding assistant
Droid AI coding agent by Factory
Goose Open-source automation agent supporting MCP extensions
DeepSeek Harness DeepSeek's open-source agent framework with subtasks and web search
Cline CLI The command-line form of Cline

Claude Code integration in detail

Taking the most representative Claude Code as an example, the one-click method is the launch command above; manual configuration needs only two environment variables:

Example

Point Claude Code's requests to local Ollama

export

ANTHROPIC_AUTH_TOKEN

=ollama

export

ANTHROPIC_API_KEY

=

""

export

ANTHROPIC_BASE_URL

=http:

//

localhost:

11434

Start with any local model

claude

--model

qwen3.5

After integration, Claude Code's chat, file editing, command execution, vision input, and web search can all use local or cloud Ollama models.

The hard threshold for running coding agents is the context window: tool returns and code files often run to tens of thousands of tokens. Official guidance recommends setting context above 64K; the last section of this article gives the setup method.


IDEs and editors

Official VS Code extension

Ollama provides an official extension for VS Code, plugging local models into VS Code Chat.

Three steps to complete integration:

Step 1, install the Ollama extension from the extension marketplace; it discovers the service on localhost:11434 by default.

Step 2, open the Chat panel, find the Ollama section in the model selector below the input box, and choose a model.

Step 3, ask questions directly in chat, and the local model can take part in coding Q&A.

Example

Prepare a model for Chat (pull first if not downloaded)

ollama pull qwen3.5

Cloud models require login; local models need no account

ollama signin

When a model does not appear in the selector, troubleshoot in order: confirm Ollama is running, confirm ollama list shows the model, run Ollama: Refresh Models in the command palette, then use Ollama: Diagnose Models to view diagnostic output.

Other editors

Tool Form Description
JetBrains Plugin Using Ollama models in IntelliJ-family IDEs
Cline / Roo Code VS Code plugin Agent-style coding plugin supporting custom model endpoints
Zed Built-in configuration High-performance editor with native support for custom model providers
Xcode Built-in configuration Apple platform development tools connecting to local models

Desktop assistants and automation

Local models can do more than write code; they can also serve as daily assistants and automation engines.

Tool Locate
Claude Desktop Anthropic desktop assistant that connects to local and cloud Ollama models
OpenClaw Personal assistant integrated into messaging apps to handle daily tasks
Hermes / Hermes Desktop Open-source agent with self-improvement skills and memory
n8n Visual workflow platform embedding Ollama into automation flows
Onyx Enterprise knowledge-base Q&A platform (RAG scenarios)
Marimo Reactive Python Notebook that can call models in cells

Context tuning for agent scenarios

If an integrated tool won't run or gives irrelevant answers, eight times out of ten the context window is too small.

Web content returned by tools, entire code files, and multi-turn agent history all crowd into the context window; the default 4K is far from enough, and official guidance recommends at least 64000 tokens for web search, agents, and coding tools.

Choose any of three setup methods:

Example

Method 1: drag the context slider on the Ollama app settings page (restart the integration after changing)

Method 2: set globally when starting the service

OLLAMA_CONTEXT_LENGTH

=

64000

ollama serve

Method 3: bake it into a dedicated model with a Modelfile

PARAMETER num_ctx

65536

After setting, verify with the CONTEXT column of ollama ps, then check the PROCESSOR column to confirm VRAM still fits.


State of the classic open-source ecosystem

Besides the official integration catalog, the community ecosystem has a number of open-source projects that work extensively with Ollama.

Projects Locate Status
LangChain / LlamaIndex LLM application development framework with built-in Ollama integration classes Community-maintained, commonly used for RAG development
Open WebUI Self-hosted ChatGPT-like web UI that connects to local Ollama in one click Community-maintained, commonly used for internal team sharing
Continue Open-source AI code assistant plugin Community-maintained, supporting custom model endpoints