Skip to content

Ollama Docs, Revised

Run Droid with Ollama1

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

Revised

This page shows how to start Droid with Ollama, set it up by hand with a local or cloud model, and connect it to ollama.com.2

Install

Install the Droid CLI:

curl -fsSL https://app.factory.ai/cli | sh

Note: Droid requires a larger context window. We recommend a context window of at least 64k tokens.3X11 See Context length for more information.

Usage with Ollama

Quick setup

ollama launch droid

To configure without launching:

ollama launch droid --config

Manual setup

Add a local configuration block to ~/.factory/config.json:X30

{
  "custom_models": [
    {
      "model_display_name": "qwen3-coder [Ollama]",
      "model": "qwen3-coder",
      "base_url": "http://localhost:11434/v1/",
      "api_key": "not-needed",
      "provider": "generic-chat-completion-api",
      "max_tokens": 32000 
    }
  ]
}

Cloud models4

The following example configures qwen3-coder for use with Droid.X2

Add the cloud configuration block to ~/.factory/config.json:X3

{
  "custom_models": [
    {
      "model_display_name": "qwen3-coder [Ollama's cloud]",
      "model": "qwen3-coder:480b-cloud",
      "base_url": "http://localhost:11434/v1/",
      "api_key": "not-needed",
      "provider": "generic-chat-completion-api",
      "max_tokens": 128000
    }
  ]
}

Connect to ollama.com5

  1. 6Create an API key from ollama.com.

  2. Export it as OLLAMA_API_KEY.

  3. Add the cloud configuration block to ~/.factory/config.json:?1

    {
      "custom_models": [
        {
          "model_display_name": "qwen3-coder [Ollama's cloud]",
          "model": "qwen3-coder:480b",
          "base_url": "https://ollama.com/v1/",
          "api_key": "OLLAMA_API_KEY",
          "provider": "generic-chat-completion-api",
          "max_tokens": 128000
        }
      ]
    }
    
  4. 7Run droid in a new terminal to load the new settings.?2

Notes on this page

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

    Was: Droid

    type-task-one-goal proc-state-goal

    Auditor: The verb-led title tells readers what they can do on the page.

  2. 2 Added Audit: improved A goal sentence tells the reader what the page covers.

    proc-state-goal

    Auditor: The opening sentence previews the page’s setup options.

  3. 3 Wording Audit: regression The sentence names who recommends it and drops the impersonal form.

    Was: It is recommended to use a context window of at least 64k tokens.

    PronounContractions voice-second-person

    Auditor: Changing an impersonal recommendation to “We recommend” invents an organizational endorsement that the original does not identify.

  4. 4 Wording Audit: improved Headings use sentence case.

    Was: Cloud Models

    cap-sentence-case-headings

    Auditor: Sentence case makes the heading consistent with the standard.

  5. 5 Wording Audit: improved The heading now names the action.

    Was: Connecting to ollama.com

    proc-imperative

    Auditor: The imperative heading makes the section’s action clearer.

  6. 6 Structure Audit: improved The step held two actions, so it is now two steps.

    Was: Create an API key from ollama.com and export it as OLLAMA_API_KEY.

    proc-one-action-per-step

    Auditor: Splitting key creation and exporting it into separate steps gives each step one action.

  7. 7 Structure Audit: improved The closing instruction is now the last numbered step of this procedure instead of a loose line.

    Was: Run droid in a new terminal to load the new settings.

    proc-verify-end

    Auditor: Making the final instruction a numbered step connects it to the setup procedure.

Questions for the owner

  • ?1 Does Droid read the environment variable named in "api_key": "OLLAMA_API_KEY", or must the key itself go there? The reader can't tell from the page.

    About: “Add the cloud configuration block to ~/.factory/config.json:”

  • ?2 What should the reader see in Droid when the setup worked, and where should they go next? The page gives neither.

    About: “Run droid in a new terminal to load the new settings.”

  • X2 Integration pages use cloud models the lifecycle page lists as retired. Cloud model lifecycle lists kimi-k2.5, glm-5 and qwen3-coder:480b as retired and says dependent tools must switch, but several integration pages still use them in commands and configs. Which replacement models should these integration pages use now that these cloud models are retired?

    Pages: Cloud model lifecycle, OpenClaw, Run Copilot CLI with Ollama, Hermes Agent, Run Droid with Ollama, Use Roo Code with Ollama

  • X3 Cloud model name form for a signed-in local server. Cloud models says local tools use a :cloud name, but other pages use a -cloud suffix, or the bare hosted name after ollama signin. Is the -cloud suffix still valid alongside :cloud, and which form should every page use for cloud models reached through a local server?

    Pages: Run cloud models, Authentication, Run Codex CLI with Ollama, Run Droid with Ollama, Use Ollama in marimo

  • X11 Recommended minimum context for agents, coding and web search. Context length and most coding integrations say 64k, while Web search says about 32000 and Cline and Roo Code say 32K for coding; the 64k note is also repeated on many integration pages. Is the recommended minimum 32k or 64k, and should integration pages link to one statement instead of repeating it?

    Pages: Context length, Web search, Use Cline with Ollama, Use Roo Code with Ollama, OpenCode, Run Codex CLI with Ollama, Run Droid with Ollama

  • X30 Placeholder API key for local servers varies. Pages tell readers to use ollama, not-needed, or an empty value as the placeholder key for the same local server. Should one placeholder value be used across pages where the tool allows it?

    Pages: Anthropic compatibility, Run Droid with Ollama, Run Copilot CLI with Ollama, Hermes Agent

Original

Install

Install the Droid CLI:

curl -fsSL https://app.factory.ai/cli | sh

Note: Droid requires a larger context window. It is recommended to use a context window of at least 64k tokens. See Context length for more information.

Usage with Ollama

Quick setup

ollama launch droid

To configure without launching:

ollama launch droid --config

Manual setup

Add a local configuration block to ~/.factory/config.json:

{
  "custom_models": [
    {
      "model_display_name": "qwen3-coder [Ollama]",
      "model": "qwen3-coder",
      "base_url": "http://localhost:11434/v1/",
      "api_key": "not-needed",
      "provider": "generic-chat-completion-api",
      "max_tokens": 32000 
    }
  ]
}

Cloud Models

The following example configures qwen3-coder for use with Droid.

Add the cloud configuration block to ~/.factory/config.json:

{
  "custom_models": [
    {
      "model_display_name": "qwen3-coder [Ollama's cloud]",
      "model": "qwen3-coder:480b-cloud",
      "base_url": "http://localhost:11434/v1/",
      "api_key": "not-needed",
      "provider": "generic-chat-completion-api",
      "max_tokens": 128000
    }
  ]
}

Connecting to ollama.com

  1. Create an API key from ollama.com and export it as OLLAMA_API_KEY.

  2. Add the cloud configuration block to ~/.factory/config.json:

    {
      "custom_models": [
        {
          "model_display_name": "qwen3-coder [Ollama's cloud]",
          "model": "qwen3-coder:480b",
          "base_url": "https://ollama.com/v1/",
          "api_key": "OLLAMA_API_KEY",
          "provider": "generic-chat-completion-api",
          "max_tokens": 128000
        }
      ]
    }
    

Run droid in a new terminal to load the new settings.

What Changed

The title now starts with a verb and a goal sentence opens the page. Headings use sentence case and a verb, the two-action step is split, and the final instruction is now the last numbered step. The page's retired model, cloud model names, placeholder key, and context size are flagged as questions without changing its wording.

Content type: task. The page gives the steps to run Droid against Ollama, locally or through ollama.com.

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

Independent audit (GPT-6): mixed. The revision is easier to scan, and splitting the setup actions makes the procedure clearer. It also changes who recommends the context size and leaves the reader without a clear way to tell whether setup worked.

Regressions:

  • The new “We recommend” wording adds an endorsement not present in the original. The question about whether the key value should be the literal text or an environment variable is correctly flagged, not answered.

What the revision missed:

  • The standard says to answer the reader’s next question; the page still does not say what successful setup looks like or what to do if it fails, and q2 only flags this gap.
  • The standard says to write for a known reader and what they should be able to do; the page does not identify its intended reader or state a concrete outcome beyond covering setup options.

Structure (2)

  • 6 The step held two actions, so it is now two steps. improved
  • 7 The closing instruction is now the last numbered step of this procedure instead of a loose line. improved

Wording (4)

  • 1 A task title starts with a verb and names the result. improved
  • 3 The sentence names who recommends it and drops the impersonal form. regression
  • 4 Headings use sentence case. improved
  • 5 The heading now names the action. improved

Added (1)

  • 2 A goal sentence tells the reader what the page covers. improved