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

Setup guide - From Qwen and Zed docs

Use Qwen in Zed

Zed documents OpenAI-compatible (and Anthropic-compatible) providers under language_models in settings.json or through Agent Settings > Add Provider. Model Studio documents both its OpenAI-compatible and Anthropic-compatible base URLs plus Qwen model ids.

Last verified 3 steps4 official sources

Steps

  1. Step 1.

    Open Agent Settings (agent::OpenSettings), find Add Provider under LLM Providers, and fill in the provider name, API URL, model ID and context window. Or add the provider to settings.json (replace {WorkspaceId}):

    JSON
    {
      "language_models": {
        "openai_compatible": {
          "model-studio": {
            "api_url": "https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1",
            "available_models": [
              {
                "name": "qwen3.7-plus",
                "display_name": "Qwen3.7 Plus",
                "max_tokens": 1000000
              }
            ]
          }
        }
      }
    }
  2. Step 2.

    Enter the API key in the provider settings UI, or set the generated environment variable: the provider ID in upper snake case plus _API_KEY (MODEL_STUDIO_API_KEY for provider id model-studio). Do not put API keys in settings.json.

    Terminal
    export MODEL_STUDIO_API_KEY="YOUR_API_KEY"
  3. Step 3.

    Coding Plan alternative: set api_url to the Coding Plan OpenAI endpoint and use the Coding Plan key.

    JSON
    "api_url": "https://coding-intl.dashscope.aliyuncs.com/v1"

Caveats

  • Combined setup: Zed's documented openai_compatible mechanism plus Model Studio's documented base URLs and model ids. There is no Zed-specific Model Studio guide.
  • max_tokens 1000000 for qwen3.7-plus comes from the context_window in Model Studio's Codex model catalog.
  • OpenAI-compatible models default to chat_completions true, tools true and images false in Zed; set capabilities.images to true for vision models.
  • Zed's anthropic_compatible block is a documented alternative using the Model Studio /apps/anthropic endpoint.
  • This setting covers the Zed Agent and Zed-owned AI features only, not External Agents or Terminal Threads.

FAQ

How do I use Qwen in Zed?

Zed documents OpenAI-compatible (and Anthropic-compatible) providers under language_models in settings.json or through Agent Settings > Add Provider. Model Studio documents both its OpenAI-compatible and Anthropic-compatible base URLs plus Qwen model ids.

Which Qwen model ids work in Zed?

The official docs read for this guide list qwen3.7-plus, qwen3.6-plus and qwen3.7-max. Requests go to https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1.

Is this an official Qwen and Zed setup?

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

Sources

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