Skip to content

Ollama Docs, Revised

Use Ollama models in VS Code Chat1

Task page. 7 changes, 1 question for the owner. Audit: mixed. Original source at commit 318ee28.

Revised

Use Ollama models in VS Code Chat with the Ollama extension. When you finish, the models you have in Ollama appear in the VS Code model picker.2

Before you begin3

Earlier VS Code versions don't4 reliably cancel requests from language model providers.

Ollama 0.17.6 or newer is recommended for cloud model sign-in and richer model metadata. Older versions may still work with local models.

Install the extension

  1. Install the Ollama extension from the VS Code Marketplace.
  2. Open Chat in VS Code.
  3. Open the model picker at the bottom of the chat input.
  4. Choose a model from the Ollama section.

The extension discovers models from http://127.0.0.1:11434 by default.

Add a model

Pull a local model:

ollama pull qwen3.6

To use a cloud model, pull it and sign in:X4

ollama pull kimi-k2.6:cloud
ollama signin

Local models don't5 require sign-in.

Context length

VS Code may show a model's maximum supported context length even when Ollama allocates a smaller context at runtime.

For local models, set a larger context length:6

  1. Open Ollama Settings.
  2. Set the context length to at least 64k.
  3. Reload the VS Code window.
  4. Resend your prompt.

See Context length for more information.

Troubleshooting

If Ollama models don't7 appear in the model picker:

  1. Make sure Ollama is running.
  2. Run ollama list and confirm that models are available.
  3. Run Ollama: Refresh Models from the Command Palette.
  4. Run Ollama: Diagnose Models and check the Ollama output channel.

If a cloud model asks you to sign in, run ollama signin.

Notes on this page

  1. 1 Wording Audit: improved A task title starts with a verb and names the result.

    Was: VS Code

    proc-state-goal

    Auditor: The title starts with an action and tells readers what they can do.

  2. 2 Added Audit: regression Says what done looks like, using what the install steps already describe (models appear in the picker).

    proc-state-goal

    Auditor: The new sentence promises that Ollama models will appear in the VS Code picker, a result the original page did not guarantee.

  3. 3 Wording Audit: improved Prerequisites go under a heading that says so, before the steps.

    Was: Requirements

    proc-prerequisites-first

    Auditor: “Before you begin” clearly labels the prerequisites.

  4. 4 Wording Audit: improved The voice uses contractions.

    Was: do not

    Contractions

    Auditor: “Don't” follows the standard's preference for plain, conversational wording.

  5. 5 Wording Audit: improved The voice uses contractions.

    Was: do not

    Contractions

    Auditor: “Don't” follows the standard's preference for plain, conversational wording.

  6. 6 Structure Audit: improved Four actions in one sentence are now four numbered steps, in the same order.

    Was: For local models, open Ollama Settings, set the context length to at least 64k, reload the VS Code window, and resend your prompt.

    proc-one-action-per-step

    Auditor: The numbered list separates the four actions and keeps them in the original order.

  7. 7 Wording Audit: improved The voice uses contractions.

    Was: do not

    Contractions

    Auditor: “Don't” follows the standard's preference for plain, conversational wording.

Questions for the owner

Original

Use Ollama models in VS Code Chat with the Ollama extension.

Requirements

Earlier VS Code versions do not reliably cancel requests from language model providers.

Ollama 0.17.6 or newer is recommended for cloud model sign-in and richer model metadata. Older versions may still work with local models.

Install the extension

  1. Install the Ollama extension from the VS Code Marketplace.
  2. Open Chat in VS Code.
  3. Open the model picker at the bottom of the chat input.
  4. Choose a model from the Ollama section.

The extension discovers models from http://127.0.0.1:11434 by default.

Add a model

Pull a local model:

ollama pull qwen3.6

To use a cloud model, pull it and sign in:

ollama pull kimi-k2.6:cloud
ollama signin

Local models do not require sign-in.

Context length

VS Code may show a model's maximum supported context length even when Ollama allocates a smaller context at runtime.

For local models, open Ollama Settings, set the context length to at least 64k, reload the VS Code window, and resend your prompt. See Context length for more information.

Troubleshooting

If Ollama models do not appear in the model picker:

  1. Make sure Ollama is running.
  2. Run ollama list and confirm that models are available.
  3. Run Ollama: Refresh Models from the Command Palette.
  4. Run Ollama: Diagnose Models and check the Ollama output channel.

If a cloud model asks you to sign in, run ollama signin.

What Changed

The title now names the job, a sentence says what the reader has when they finish, and Requirements is now 'Before you begin'. The one-sentence context length instruction is now four numbered steps. Contractions replace 'do not' in three places. One inventory conflict about pulling cloud models is flagged and left as written.

Content type: task. The page walks a reader through installing the extension and getting Ollama models into VS Code Chat.

Automated check, original: 0 errors, 2 warnings, 3 suggestions. Revised: 0 errors, 2 warnings, 0 suggestions.

Independent audit (GPT-6): mixed. The revision makes the context-length instructions easier to follow and uses the requested voice consistently. It also adds an unsupported outcome claim and fails to surface the noted cloud-model conflict as a question for the documentation owner.

Regressions:

  • The added outcome sentence overpromises that Ollama models will appear in the VS Code picker.

What the revision missed:

  • The change log flags a conflict about pulling cloud models, but the revision leaves the instruction as written and does not mark it as a question for the documentation owner, despite the instruction not to settle page conflicts.

Structure (1)

  • 6 Four actions in one sentence are now four numbered steps, in the same order. improved

Wording (5)

  • 1 A task title starts with a verb and names the result. improved
  • 3 Prerequisites go under a heading that says so, before the steps. improved
  • 4 The voice uses contractions. improved
  • 5 The voice uses contractions. improved
  • 7 The voice uses contractions. improved

Added (1)

  • 2 Says what done looks like, using what the install steps already describe (models appear in the picker). regression