Skip to content

Ollama Docs, Revised

Use Roo Code with Ollama1

Task page. 15 changes, 3 questions for the owner. Audit: mixed. Original source at commit 318ee28.

Revised

This page shows how to set up Roo Code to use Ollama models, either through your own Ollama or through ollama.com.2

Before you begin3

Install Roo Code from the VS Code Marketplace.

Connect Roo Code to Ollama4

  1. Open Roo Code in VS Code.5
  2. Select the gear icon at the top right of the Roo Code window to open Provider Settings.6
  3. Set API Provider to Ollama.7
  4. Optional: If your Ollama instance is running remotely, update Base URL.8 The default is http://localhost:11434.
  5. Enter a valid Model ID, for example qwen3 or qwen3-coder:480b-cloud.9 See all supported models in the Ollama model search.10X2
  6. Set Context Window to at least 32K tokens for coding tasks.11

Note: Coding tools require a larger context window. Use a context window of at least 32K tokens.12 See Context length for more information.X11?1

Connect Roo Code to ollama.com13

  1. Create an API key from ollama.com.
  2. Turn on Use custom base URL.14
  3. Set the base URL to https://ollama.com.15
  4. Enter your Ollama API Key.
  5. Select a model from the list.

Notes on this page

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

    Was: Roo Code

    proc-state-goal

  2. 2 Added Audit: improved Added a goal sentence before the steps, using only what the page already covers.

    proc-state-goal

  3. 3 Wording Audit: improved Prerequisites go under a heading that says so.

    Was: Install

    proc-prerequisites-first

  4. 4 Wording Audit: improved The heading now names the job.

    Was: Usage with Ollama

    type-task-one-goal

  5. 5 Wording Audit: improved The step held two actions, so it is now two steps.

    Was: Open Roo Code in VS Code and click the gear icon on the top right corner of the Roo Code window to open Provider Settings

    proc-one-action-per-step

  6. 6 Wording Audit: improved Second half of the original step 1, with select instead of click.

    Was: click the gear icon on the top right corner of the Roo Code window to open Provider Settings

    SelectVerb proc-one-action-per-step

  7. 7 Wording Audit: improved Labels in bold instead of code font.

    Was: Set API Provider to Ollama

    ui-bold-labels

  8. 8 Wording Audit: improved The optional marker and the condition come first, and the label is bold.

    Was: (Optional) Update Base URL if your Ollama instance is running remotely.

    proc-condition-and-optional ui-bold-labels

  9. 9 Wording Audit: improved The label is bold and the parenthesis is gone. The model names are unchanged.

    Was: Enter a valid Model ID (for example qwen3 or qwen3-coder:480b-cloud.

    proc-one-action-per-step ui-bold-labels

  10. 10 Wording Audit: improved Link text says where the link goes. The link target is unchanged.

    Was: See all supported models here)

    LinkText

  11. 11 Wording Audit: improved Label in bold. The 32K figure is unchanged.

    Was: Adjust the Context Window to at least 32K tokens for coding tasks

    ui-bold-labels

  12. 12 Wording Audit: regression Direct instruction instead of a passive recommendation. The 32K figure is unchanged.

    Was: It is recommended to use a context window of at least 32K tokens.

    PronounContractions

    Auditor: Changing “It is recommended” to “Use” turns a recommendation into a direct requirement.

  13. 13 Wording Audit: improved The heading now names the job.

    Was: Connecting to ollama.com

    type-task-one-goal

  14. 14 Wording Audit: improved The step held two actions, so it is now two steps. 'Enable' became 'Turn on' and the label is bold.

    Was: Enable Use custom base URL and set it to https://ollama.com

    TurnOn ui-bold-labels

  15. 15 Wording Audit: improved Second half of the original step 2, now its own step. The URL is unchanged.

    Was: set it to https://ollama.com

    proc-one-action-per-step

Questions for the owner

Original

Install

Install Roo Code from the VS Code Marketplace.

Usage with Ollama

  1. Open Roo Code in VS Code and click the gear icon on the top right corner of the Roo Code window to open Provider Settings
  2. Set API Provider to Ollama
  3. (Optional) Update Base URL if your Ollama instance is running remotely. The default is http://localhost:11434
  4. Enter a valid Model ID (for example qwen3 or qwen3-coder:480b-cloud. See all supported models here)
  5. Adjust the Context Window to at least 32K tokens for coding tasks

Note: Coding tools require a larger context window. It is recommended to use a context window of at least 32K tokens. See Context length for more information.

Connecting to ollama.com

  1. Create an API key from ollama.com
  2. Enable Use custom base URL and set it to https://ollama.com
  3. Enter your Ollama API Key
  4. Select a model from the list

What Changed

The page now has a verb title, a goal sentence and a prerequisite heading. Steps hold one action each, labels are bold as the steps name them, and the link text no longer says 'here'. The retired-model example, the 32K figure and the missing confirmation are raised as questions, and the page's wording is kept.

Content type: task. The page gives the steps to point Roo Code at Ollama.

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

Independent audit (GPT-6): mixed. The revision is easier to scan, and most setup steps are clearer while keeping their original facts and links. One edit changes a recommendation into a requirement, and the page still leaves the reader without a way to confirm setup worked.

Regressions:

  • The context-window note changes a recommendation to use at least 32K tokens into a direct instruction, making the guidance stricter than the original.

What the revision missed:

  • The standard says to answer the reader’s next question; the revision raises but does not answer how to confirm that Roo Code connected successfully.
  • The standard says a task page should end by telling the reader what to do; the revision ends at model selection without a next action or confirmation step.

Wording (14)

  • 1 A task title starts with a verb and names the result. improved
  • 3 Prerequisites go under a heading that says so. improved
  • 4 The heading now names the job. improved
  • 5 The step held two actions, so it is now two steps. improved
  • 6 Second half of the original step 1, with select instead of click. improved
  • 7 Labels in bold instead of code font. improved
  • 8 The optional marker and the condition come first, and the label is bold. improved
  • 9 The label is bold and the parenthesis is gone. The model names are unchanged. improved
  • 10 Link text says where the link goes. The link target is unchanged. improved
  • 11 Label in bold. The 32K figure is unchanged. improved
  • 12 Direct instruction instead of a passive recommendation. The 32K figure is unchanged. regression
  • 13 The heading now names the job. improved
  • 14 The step held two actions, so it is now two steps. 'Enable' became 'Turn on' and the label is bold. improved
  • 15 Second half of the original step 2, now its own step. The URL is unchanged. improved

Added (1)

  • 2 Added a goal sentence before the steps, using only what the page already covers. improved