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

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

  1. Step 1.

    Create an API key at https://platform.deepseek.com/api_keys.

  2. 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.

    YAML
    agent: open settings
  3. 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.

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.

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.