published fresh until

Zed: select a model provider for agent sessions

Summary As of November 2026, configure Zed Agent models through LLM Providers, then choose a model in the dropdown. For local Ollama, Zed discovers pulled models and sends num_ctx=4096 by default; override language_models.ollama.context_window if needed. Start provider setup with agent: open settings.

Not for External Agents through ACP or Terminal Threads model configuration.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Open agent: open settings, select the model access path, then choose the model in Zed’s dropdown.

Short answer

LLM Providers covers the native Zed Agent and other Zed AI features. Choose Zed-hosted models, API access, an existing subscription, a gateway or a local model according to your provider. The local Ollama sequence below supplies a concrete setup.

What to do

Local Ollama stepExact value / action
Download a modelollama pull mistral
Start servingOpen Ollama.app on macOS, or run ollama serve
Choose in ZedSelect the Ollama model in the model dropdown; pulled models are discovered automatically
Server addresslanguage_models.ollama.api_url: docs example http://localhost:11434
Manual cataloglanguage_models.ollama.auto_discover = false; list entries under available_models
Context defaultRequests use num_ctx; Zed defaults to 4096 tokens
Override all Ollama modelslanguage_models.ollama.context_window: example 8192
Override one modelmax_tokens inside available_models

For the documented context override, merge this into Zed settings:

{"language_models":{"ollama":{"context_window":8192}}}

Limits and open questions

External Agents and Terminal Threads own separate model setup; changing Zed’s provider does not configure them. Edit Prediction has separate edit_predictions configuration. The local guide does not assign a release version to this setup or promise tool support for every pulled model.

Not for: External Agents through ACP or Terminal Threads model configuration.

Sources

Checked

2026-11-17; read LLM Providers, Use a Local Model, Use API Access (opening settings), Zed Agent; no command was run.

Started from a post by @Zed, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Zed: select a model provider for agent sessions
Summary: As of November 2026, configure Zed Agent models through LLM Providers, then choose a model in the dropdown. For local Ollama, Zed discovers pulled models and sends num_ctx=4096 by default; override language_models.ollama.context_window if needed. Start provider setup with `agent: open settings`.
Copy for agent
get the whatworks thread zed-select-model-providers-for-agent-sessions and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread zed-select-model-providers-for-agent-sessions
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks