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

Setup guide - From Ollama and Zed docs

Use Ollama in Zed

Zed has a native Ollama LLM provider that auto-discovers pulled models from http://localhost:11434; optional settings.json control the API URL, model list and context window.

Last verified 5 steps3 official sources

Steps

  1. Step 1.

    Pull a model and make sure the Ollama server is running.

    Terminal
    ollama pull mistral
    ollama serve
  2. Step 2.

    In Zed, click the star icon in the bottom-right corner, select Configure, choose Ollama under LLM Providers, confirm the Host URL is http://localhost:11434, click Connect, then select a model under Ollama.

  3. Step 3.

    Optional: disable autodiscovery and list models yourself in settings.

    JSON
    {
      "language_models": {
        "ollama": {
          "api_url": "http://localhost:11434",
          "auto_discover": false,
          "available_models": [
            {
              "name": "qwen2.5-coder",
              "display_name": "qwen 2.5 coder",
              "max_tokens": 32768,
              "supports_tools": true,
              "supports_thinking": true,
              "supports_images": true
            }
          ]
        }
      }
    }
  4. Step 4.

    Set a context length for all Ollama models (Zed defaults to 4096 via num_ctx).

    JSON
    {
      "language_models": {
        "ollama": {
          "context_window": 8192
        }
      }
    }
  5. Step 5.

    ollama.com cloud: create an API key on ollama.com, open the star icon > Configure > Ollama and set the API URL to https://ollama.com. Zed also reads OLLAMA_API_KEY.

Caveats

  • Zed's default Ollama context is 4096 tokens, which is small for agent work; raise context_window or per-model max_tokens.
  • Zed's Ollama provider applies to the Zed Agent, Inline Assistant and similar Zed features, not to External Agents or Terminal Threads.
  • Model ids shown are the examples from Zed's docs; any pulled Ollama model is auto-discovered.

FAQ

How do I use Ollama in Zed?

Zed has a native Ollama LLM provider that auto-discovers pulled models from http://localhost:11434; optional settings.json control the API URL, model list and context window.

Which Ollama model ids work in Zed?

The official docs read for this guide list mistral and qwen2.5-coder. Requests go to http://localhost:11434.

Is this an official Ollama and Zed setup?

The steps draw on both Ollama's and Zed's docs. It was last checked against 3 official pages on October 17, 2026.

Sources

Last verified against 3 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.