Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Setup guide - Documented by Ollama

Use Ollama in Cline

Cline has a native Ollama API provider in its settings, and the Cline CLI can be configured with ollama launch cline or cline auth.

Last verified 8 steps4 official sources

Steps

  1. Step 1.

    IDE extension: open Cline settings > API Configuration and set API Provider to Ollama.

  2. Step 2.

    Select a model under Model or type one (e.g. qwen3).

  3. Step 3.

    Update the context window to at least 32K tokens under Context Window.

  4. Step 4.

    ollama.com cloud: create an API key at https://ollama.com/settings/keys, click Use custom base URL and set it to https://ollama.com, enter your Ollama API Key, then select a model from the list.

  5. Step 5.

    Cline CLI: install it.

    Terminal
    npm install -g cline
  6. Step 6.

    Cline CLI quick setup (sets provider to Ollama, points at the local endpoint, selects your model).

    Terminal
    ollama launch cline
  7. Step 7.

    Run directly with a local or cloud model.

    Terminal
    ollama launch cline --model qwen3.5
    ollama launch cline --model kimi-k2.6:cloud
  8. Step 8.

    Cline CLI manual setup: pull a model, run Cline's auth flow, select Ollama, use http://localhost:11434 as the base URL if prompted, then start a session.

    Terminal
    ollama pull qwen3.5
    cline auth
    cline config
    cline

Caveats

  • Steps come from Ollama's Cline and Cline CLI integration pages; Cline's own docs site could not be fetched today.
  • Ollama recommends a context window of at least 32K tokens for coding.
  • For ollama.com, choose a cloud model that supports tool calling.

FAQ

How do I use Ollama in Cline?

Cline has a native Ollama API provider in its settings, and the Cline CLI can be configured with ollama launch cline or cline auth.

Which Ollama model ids work in Cline?

The official docs read for this guide list qwen3, qwen3.5 and kimi-k2.6:cloud. Requests go to http://localhost:11434.

Is this an official Ollama and Cline setup?

Ollama documents this setup in its own docs. It was last checked against 4 official pages on October 17, 2026.

Sources

Last verified against 4 official pages.

Newsletter

New models, set up the day they ship

One email per week. New model releases, the coding tools that support them and how to wire them up.