AI tools
Coding agents, IDE assistants and chat apps are clients: they connect to a local runtime through an API and shape how heavy your workload is.
Four layers between you and the hardware
- 1AI toolThe app you use (Claude Code, Cline, Open WebUI…). It builds prompts and tool calls but never runs the model.
- 2Provider / APIThe protocol between tool and runtime: OpenAI-compatible, Anthropic-compatible or Ollama API.
- 3RuntimeThe inference server (Ollama, llama.cpp, LM Studio, MLX-LM, vLLM…) that loads and executes the model.
- 4ModelThe open weights at a chosen quantization and format (GGUF, MLX, safetensors).
- 5HardwareYour GPU / unified memory and its bandwidth, which set the speed limits for everything above.
Tool × runtime compatibility
| Tool | Ollama | llama.cpp | MLX-LM | LM Studio | vLLM | SGLang | Jan | LocalAI | Lemonade |
|---|---|---|---|---|---|---|---|---|---|
| Claude Code | Community-supported | Community-supported | Requires bridge | Community-supported | Community-supported | Requires bridge | Requires bridge | Community-supported | Community-supported |
| Codex CLI | Official | Community-supported | Community-supported | Official | Community-supported | Community-supported | Community-supported | Community-supported | Community-supported |
| OpenCode | Official | Official | Official | Official | Official | Official | Official | Official | Official |
| Aider | Official | Official | Official | Official | Official | Official | Official | Official | Official |
| Continue | Official | Official | Official | Official | Official | Official | Official | Official | Official |
| Cline | Official | Official | Official | Official | Official | Official | Official | Official | Official |
| Roo Code (discontinued) | Community-supported | Community-supported | Community-supported | Community-supported | Community-supported | Community-supported | Community-supported | Community-supported | Community-supported |
| Pi Coding Agent | Official | Official | Official | Official | Official | Official | Official | Official | Official |
| VS Code (Copilot Chat, bring-your-own model) | Official | Official | Official | Official | Official | Official | Official | Official | Official |
| Zed | Official | Official | Official | Official | Official | Official | Official | Official | Official |
| Open WebUI | Official | Official | Official | Official | Official | Official | Official | Official | Official |
| LM Studio (built-in chat) | Unsupported | Unsupported | Unsupported | Official | Unsupported | Unsupported | Unsupported | Unsupported | Unsupported |
| API onlygeneric | Official | Official | Official | Official | Official | Official | Official | Official | Official |
| Custom appgeneric | Official | Official | Official | Official | Official | Official | Official | Official | Official |
| Other / not suregeneric | Community-supported | Community-supported | Community-supported | Community-supported | Community-supported | Community-supported | Community-supported | Community-supported | Community-supported |
“Requires bridge” means the tool only speaks the Anthropic API and the runtime only the OpenAI-compatible one, so a translating proxy such as LiteLLM sits in between. “Community-supported” paths work and are documented by the runtime or community, but not by the tool’s vendor.
The API layer
OpenAI-compatible API
The de-facto standard (/v1/chat/completions, sometimes /v1/responses). Exposed by nearly every runtime: llama.cpp, Ollama, LM Studio, MLX-LM, vLLM, SGLang, Jan, LocalAI.
Exposed by: Ollama, llama.cpp, MLX-LM, LM Studio, vLLM, SGLang, Jan, LocalAI, Lemonade
OpenAI API reference(opens in a new tab)verified 2026-09-30high confidenceAnthropic-compatible API
The Messages API (/v1/messages) used by Claude Code. Served locally by Ollama (v0.14+), llama.cpp's llama-server, LM Studio (v0.4.1+), Lemonade, vLLM and LocalAI — or via a bridge such as a LiteLLM proxy.
Exposed by: Ollama, llama.cpp, LM Studio, vLLM, LocalAI, Lemonade
Claude Code LLM gateway protocol(opens in a new tab)verified 2026-09-30high confidenceOllama API
Ollama's native API (/api/chat, /api/generate) with model management. Used natively by Open WebUI, Continue, Cline, Aider and VS Code.
Exposed by: Ollama
Ollama API(opens in a new tab)verified 2026-09-30high confidence
All tools
Claude Code
Anthropic
Coding agentAgentic loopTerminal coding agent. Speaks the Anthropic Messages API; local models work through runtimes that expose an Anthropic-compatible /v1/messages endpoint (ANTHROPIC_BASE_URL).
- Base prompt
- ≈18K tokens
- Calls per task
- ≈25
- Min. context
- 32K tokens
- Tool calling
- Heavy
Connections
- Anthropic-compatible APIany runtime exposing itCommunity-supported
Local use is documented by Ollama, LM Studio, llama.cpp and Lemonade via ANTHROPIC_BASE_URL; Anthropic does not officially support local models. Some features (prompt caching, token counting) may be unavailable.
Documentation(opens in a new tab)last verified 2026-09-30Claude Code LLM gateway docs; Ollama (v0.14+), LM Studio (v0.4.1+) and llama.cpp Anthropic-compatible endpoints(opens in a new tab)verified 2026-09-30high confidenceAnthropic states it does not support routing Claude Code to non-Claude models.
Codex CLI
OpenAI
Coding agentAgentic loopBuilt-in local supportOpenAI's terminal coding agent. Built-in --oss mode for Ollama and LM Studio; custom OpenAI-compatible providers via config.toml.
- Base prompt
- ≈9K tokens
- Calls per task
- ≈20
- Min. context
- 32K tokens
- Tool calling
- Heavy
Connections
- OpenAI-compatible APIOllama, LM StudioOfficial
codex --oss with oss_provider = "ollama" or "lmstudio".
- OpenAI-compatible APIany runtime exposing itCommunity-supported
Custom [model_providers] entry; Codex documents only wire_api = "responses", so the server must implement the Responses API.
Documentation(opens in a new tab)last verified 2026-09-30Codex configuration reference(opens in a new tab)verified 2026-09-30high confidenceOpenCode
SST / Anomaly
Coding agentAgentic loopBuilt-in local supportOpen-source terminal coding agent with first-class support for any OpenAI-compatible provider, including Ollama, LM Studio and llama.cpp.
- Base prompt
- ≈10K tokens
- Calls per task
- ≈20
- Min. context
- 32K tokens
- Tool calling
- Heavy
Connections
- OpenAI-compatible APIany runtime exposing itOfficial
Configure a provider with @ai-sdk/openai-compatible and the local base URL.
Documentation(opens in a new tab)last verified 2026-09-30OpenCode providers (Ollama, LM Studio, llama.cpp listed)(opens in a new tab)verified 2026-09-30high confidenceAider
Aider (open source)
Coding agentConversationalBuilt-in local supportPair-programming in the terminal with git integration. Uses text edit formats rather than tool calls, so it tolerates models with weak tool calling.
- Base prompt
- ≈4K tokens
- Calls per task
- ≈3
- Min. context
- 8K tokens
- Tool calling
- None
Connections
- Ollama APIany runtime exposing itOfficial
- OpenAI-compatible APIany runtime exposing itOfficial
openai/<model> with OPENAI_API_BASE pointing at the local server.
Documentation(opens in a new tab)last verified 2026-09-30Aider — Ollama / OpenAI-compatible / LM Studio(opens in a new tab)verified 2026-09-30high confidenceContinue
Continue
IDE assistantInline assistBuilt-in local supportVS Code / JetBrains assistant: chat, autocomplete, edit and agent mode. Native Ollama, LM Studio and llama.cpp providers.
- Base prompt
- ≈3K tokens
- Calls per task
- ≈4
- Min. context
- 8K tokens
- Tool calling
- Light
Connections
- Ollama APIany runtime exposing itOfficial
- OpenAI-compatible APIany runtime exposing itOfficial
Documentation(opens in a new tab)last verified 2026-09-30Continue — Ollama / LM Studio / llama.cpp providers(opens in a new tab)verified 2026-09-30high confidenceCline
Cline
IDE agentAgentic loopBuilt-in local supportAutonomous coding agent inside VS Code. Large system prompt with tool definitions; supports Ollama, LM Studio and OpenAI-compatible providers.
- Base prompt
- ≈12K tokens
- Calls per task
- ≈18
- Min. context
- 32K tokens
- Tool calling
- Heavy
Connections
- Ollama APIany runtime exposing itOfficial
- OpenAI-compatible APIany runtime exposing itOfficial
LM Studio and generic OpenAI-compatible providers.
Documentation(opens in a new tab)last verified 2026-09-30Cline — running models locally(opens in a new tab)verified 2026-09-30high confidenceRoo Code (discontinued)
Roo Code
IDE agentAgentic loopBuilt-in local supportVS Code agent with modes (architect, code, debug). NOTE: the official extension was shut down on May 15, 2026 — existing installs and the community fork (ZooCode) keep working with Ollama, LM Studio and OpenAI-compatible APIs.
- Base prompt
- ≈12K tokens
- Calls per task
- ≈18
- Min. context
- 32K tokens
- Tool calling
- Heavy
Connections
- Ollama APIany runtime exposing itCommunity-supported
Extension discontinued May 2026; maintained only by community forks.
- OpenAI-compatible APIany runtime exposing itCommunity-supported
Extension discontinued May 2026; maintained only by community forks.
Documentation(opens in a new tab)last verified 2026-09-30Roo Code docs — shutdown notice (May 15, 2026)(opens in a new tab)verified 2026-09-30high confidencePi Coding Agent
Earendil (pi)
Coding agentAgentic loopBuilt-in local supportMinimal terminal coding agent with a deliberately small system prompt and tool set. Local models via models.json (OpenAI-, Anthropic- or Google-compatible endpoints) with a dedicated llama.cpp guide.
- Base prompt
- ≈3K tokens
- Calls per task
- ≈15
- Min. context
- 16K tokens
- Tool calling
- Heavy
Connections
- OpenAI-compatible APIany runtime exposing itOfficial
models.json entry with api "openai-completions" and the local baseUrl.
- Anthropic-compatible APIany runtime exposing itOfficial
Documentation(opens in a new tab)last verified 2026-09-30pi coding agent — models.json (repo moved from badlogic/pi-mono)(opens in a new tab)verified 2026-09-30high confidenceVS Code (Copilot Chat, bring-your-own model)
Microsoft / GitHub
IDE agentAgentic loopBuilt-in local supportVS Code's built-in chat and agent mode with a bring-your-own local model (Ollama or a custom endpoint). Works without a Copilot plan; inline completions still need a GitHub account.
- Base prompt
- ≈8K tokens
- Calls per task
- ≈12
- Min. context
- 16K tokens
- Tool calling
- Heavy
Connections
- Ollama APIany runtime exposing itOfficial
- OpenAI-compatible APIany runtime exposing itOfficial
Custom endpoint speaking Chat Completions or Responses.
- Anthropic-compatible APIany runtime exposing itOfficial
Custom endpoint speaking the Messages API.
Documentation(opens in a new tab)last verified 2026-09-30VS Code — bring your own language model(opens in a new tab)verified 2026-09-30high confidenceZed
Zed Industries
IDE agentAgentic loopBuilt-in local supportFast native editor with an agent panel; official providers for Ollama, LM Studio, llama.cpp and OpenAI-/Anthropic-compatible servers.
- Base prompt
- ≈7K tokens
- Calls per task
- ≈12
- Min. context
- 16K tokens
- Tool calling
- Heavy
Connections
- Ollama APIany runtime exposing itOfficial
- OpenAI-compatible APIany runtime exposing itOfficial
- Anthropic-compatible APIany runtime exposing itOfficial
Documentation(opens in a new tab)last verified 2026-09-30Zed — use a local model(opens in a new tab)verified 2026-09-30high confidenceOpen WebUI
Open WebUI
Chat UIConversationalBuilt-in local supportSelf-hosted ChatGPT-style web interface with RAG, connecting to Ollama or any OpenAI-compatible API.
- Base prompt
- ≈400 tokens
- Calls per task
- ≈1
- Min. context
- 4K tokens
- Tool calling
- Light
Connections
- Ollama APIany runtime exposing itOfficial
- OpenAI-compatible APIany runtime exposing itOfficial
Documentation(opens in a new tab)last verified 2026-09-30Open WebUI — connecting Ollama / OpenAI-compatible providers(opens in a new tab)verified 2026-09-30high confidenceLM Studio (built-in chat)
LM Studio
Runtime appConversationalBuilt-in local supportLM Studio's own chat window. Only works with LM Studio as the runtime.
- Base prompt
- ≈100 tokens
- Calls per task
- ≈1
- Min. context
- 4K tokens
- Tool calling
- None
Connections
- OpenAI-compatible APILM StudioOfficial
Documentation(opens in a new tab)last verified 2026-09-30LM Studio docs(opens in a new tab)verified 2026-09-30high confidenceAPI only
—
Direct APIServer / APIBuilt-in local supportCall the runtime's API directly (curl, SDKs, scripts).
- Base prompt
- None
- Calls per task
- ≈1
- Min. context
- 2K tokens
- Tool calling
- None
Connections
- OpenAI-compatible APIany runtime exposing itOfficial
- Anthropic-compatible APIany runtime exposing itOfficial
- Ollama APIany runtime exposing itOfficial
Documentation(opens in a new tab)last verified 2026-09-30OpenAI Chat Completions reference(opens in a new tab)verified 2026-09-30high confidenceCustom app
—
AutomationBatchBuilt-in local supportYour own application or automation (LangChain, LlamaIndex, n8n, scripts) using a local endpoint.
- Base prompt
- ≈800 tokens
- Calls per task
- ≈3
- Min. context
- 4K tokens
- Tool calling
- Light
Connections
- OpenAI-compatible APIany runtime exposing itOfficial
- Anthropic-compatible APIany runtime exposing itOfficial
- Ollama APIany runtime exposing itOfficial
Documentation(opens in a new tab)last verified 2026-09-30OpenAI-compatible API(opens in a new tab)verified 2026-09-30high confidenceOther / not sure
—
Chat UIConversationalBuilt-in local supportAny other client. We assume it can use an OpenAI-compatible endpoint.
- Base prompt
- ≈1K tokens
- Calls per task
- ≈2
- Min. context
- 4K tokens
- Tool calling
- Light
Connections
- OpenAI-compatible APIany runtime exposing itCommunity-supported
- Ollama APIany runtime exposing itCommunity-supported
Documentation(opens in a new tab)last verified 2026-09-30OpenAI-compatible API(opens in a new tab)verified 2026-09-30low confidence