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 step | Exact value / action |
|---|---|
| Download a model | ollama pull mistral |
| Start serving | Open Ollama.app on macOS, or run ollama serve |
| Choose in Zed | Select the Ollama model in the model dropdown; pulled models are discovered automatically |
| Server address | language_models.ollama.api_url: docs example http://localhost:11434 |
| Manual catalog | language_models.ollama.auto_discover = false; list entries under available_models |
| Context default | Requests use num_ctx; Zed defaults to 4096 tokens |
| Override all Ollama models | language_models.ollama.context_window: example 8192 |
| Override one model | max_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
- LLM Providers, Zed.
- Use a Local Model, Zed.
- Use API Access (opening settings), Zed.
- Zed Agent, Zed.
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