Setup guide - Documented by Zed
Use DeepSeek in Zed
Zed has DeepSeek as a first-class API provider for the Zed Agent and other Zed AI features. Enter your key in Agent Settings or set DEEPSEEK_API_KEY. Zed's docs give a custom-models example that already uses the current deepseek-flash and deepseek-v4-pro ids.
Last verified 3 steps3 official sources
Steps
- Step 1.
Create an API key at https://platform.deepseek.com/api_keys.
- Step 2.
Open Agent Settings with the agent: open settings command, go to the DeepSeek section and enter your key. Zed also reads DEEPSEEK_API_KEY from the local Zed process environment.
YAMLagent: open settings - Step 3.
Optional: add custom DeepSeek models (alternate ids, token limits or endpoint) in settings.json, verbatim from Zed docs.
JSON{ "language_models": { "deepseek": { "api_url": "https://api.deepseek.com/v1", "available_models": [ { "name": "deepseek-flash", "display_name": "DeepSeek V4.1 Flash", "max_tokens": 1000000, "max_output_tokens": 384000 }, { "name": "deepseek-v4-pro", "display_name": "DeepSeek V4 Pro", "max_tokens": 1000000, "max_output_tokens": 384000 } ] } } }
Caveats
- Zed's example api_url is https://api.deepseek.com/v1. DeepSeek's own docs give https://api.deepseek.com as the OpenAI-format base URL.
- This covers Zed-owned AI features (Zed Agent, Inline Assistant, commit messages, thread summaries). External Agents and Terminal Threads set up model access themselves.
- Keys saved through Zed are stored in the system keychain. A non-empty DEEPSEEK_API_KEY takes precedence over the keychain value.
More setup guides
Same tool, other providers
Related reading
- DeepSeek Super-Agent: The Always-On Router and Worker DesignDeepSeek open-sourced dsh-superagent, an always-on coding agent built on a router and worker split. What the design says, what the code ships, and the safety debate.
- DeepInfer: What DeepSeek Open-Sourced and What You Can RunDeepSeek open-sourced DeepInfer, the inference engine behind its API. It is offline-only, V4.1-Flash-only and Blackwell-or-Ascend-only. What it is, what is missing, and who benefits.
- DeepSeek Banned From US Federal Civilian Agencies: What the DHS Order CoversDHS ordered DeepSeek products removed from US civilian agency IT. The scope reaches third-party products built on DeepSeek implementations - here is what that means for builders.
- DeepSeek V4.1-Flash-1017: Benchmarks vs Opus 5, Pricing, Switch?DeepSeek V4.1-Flash-1017 jumps 11 points on Terminal-Bench 4.0 at the same deepseek-flash price. Benchmarks vs Opus 5, K3, GLM-5.3 and when to switch.
- DeepSeek 4.1 Flash as a Daily Coding Model: Cache, Peak Hours and LimitsDeepSeek 4.1 Flash as a daily coding model: what a session costs, how peak hours double the bill, why caching matters, and where the subsidy argument holds.
- Where to Run DeepSeek V4.1 Flash Free and CheapDeepSeek V4.1 Flash replaced V4 Flash. Official API: $0.15 input, $0.60 output off-peak. OpenRouter hosts start near $0.05. MIT weights are on Hugging Face.
FAQ
How do I use DeepSeek in Zed?
Zed has DeepSeek as a first-class API provider for the Zed Agent and other Zed AI features. Enter your key in Agent Settings or set DEEPSEEK_API_KEY. Zed's docs give a custom-models example that already uses the current deepseek-flash and deepseek-v4-pro ids.
Which DeepSeek model ids work in Zed?
The official docs read for this guide list deepseek-flash and deepseek-v4-pro. Requests go to https://api.deepseek.com/v1.
Is this an official DeepSeek and Zed setup?
Zed documents this setup in its own docs. It was last checked against 3 official pages on October 17, 2026.
Sources
Last verified against 3 official pages.
- zed.devhttps://zed.dev/docs/ai/use-api-access.md
- zed.devhttps://zed.dev/docs/ai/llm-providers
- api-docs.deepseek.comhttps://api-docs.deepseek.com/quick_start/pricing
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.