All Products
Search
Document Center

Alibaba Cloud Model Studio:DeepSeek Harness

Last Updated:Nov 05, 2026

Use Alibaba Cloud Model Studio models in DeepSeek Harness.

Quick Start

  1. 1

    Start the Web UI

    Run the following command to start the DeepSeek Harness Web UI:

    dsh web
    

    The default address is http://127.0.0.1:3080; the browser opens automatically on local startup.

  2. 2

    Get an API Key

    Get the API Key for your billing plan:

  3. 3

    Configure the model

    In the Web UI, go to Settings → Models, click Add model provider, and switch to Custom model API. DeepSeek Harness does not include a built-in Model Studio provider. The Provider ID is user-defined (lowercase); the tables use bailian-tpp, bailian, and bailian-coding as examples:

    Token Plan

    ParameterValue
    Provider IDbailian-tpp
    Display nameAlibaba Cloud Model Studio
    Base URLhttps://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1
    API protocolOpenAI Chat Completions
    API keyThe Token Plan API Key from the previous step
    ModelsEnter a text generation model supported by Personal Edition or Team Edition

    Pay-as-you-go

    ParameterValue
    Provider IDbailian
    Display nameAlibaba Cloud Model Studio
    Base URLhttps://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1, replacing {WorkspaceId} with your Workspace ID
    API protocolOpenAI Chat Completions
    API keyThe Model Studio API Key from the previous step
    ModelsFor example, qwen3.8-max or qwen3.8-flash

    Coding Plan

    ParameterValue
    Provider IDbailian-coding
    Display nameAlibaba Cloud Model Studio
    Base URLhttps://coding-intl.dashscope.aliyuncs.com/v1
    API protocolOpenAI Chat Completions
    API keyThe Coding Plan API Key from the previous step
    ModelsEnter a supported text generation model

    After saving, select the added model in the Web UI model picker.

  4. 4

    Verify

    Send a message in the Web UI. A normal response confirms the configuration.

Configure with a configuration file

In addition to the options above, you can also connect using a configuration file.

  1. 1

    Open or create the configuration file

    ~/.dsh/profiles/web/cordis.patch.yml

  2. 2

    Write the configuration

    Add only the corresponding entry; do not overwrite existing configuration. Set the BAILIAN_API_KEY environment variable before starting DeepSeek Harness:

    export BAILIAN_API_KEY="YOUR_API_KEY"
    

    Token Plan Personal Edition

    - id: llm-pi-ai
      config:
        providers:
          bailian-tpp:
            apiKeyEnv: BAILIAN_API_KEY
            api: openai-completions
            baseURL: https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1
            models:
              - id: auto
              - id: qwen3.8-max
              - id: qwen3.8-flash
              - id: qwen3.7-max
              - id: qwen3.7-plus
              - id: qwen3.6-flash
              - id: deepseek-v4.1-flash
              - id: deepseek-v4.1-flash-1017
              - id: deepseek-v4-pro
              - id: deepseek-v4-pro-0813
              - id: deepseek-v4-flash-0731
              - id: glm-5.3
              - id: glm-5.2
    

    Token Plan Team Edition

    - id: llm-pi-ai
      config:
        providers:
          bailian-tpp:
            apiKeyEnv: BAILIAN_API_KEY
            api: openai-completions
            baseURL: https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1
            models:
              - id: auto
              - id: qwen3.8-max
              - id: qwen3.8-flash
              - id: qwen3.7-max
              - id: qwen3.7-plus
              - id: qwen3.6-plus
              - id: qwen3.6-flash
              - id: deepseek-v4.1-flash
              - id: deepseek-v4.1-flash-1017
              - id: deepseek-v4-pro
              - id: deepseek-v4-pro-0813
              - id: deepseek-v4-flash-0731
              - id: kimi-k2.7-code
              - id: kimi-k2.6
              - id: kimi-k2.5
              - id: glm-5.3
              - id: glm-5.2
              - id: glm-5.1
              - id: glm-5
              - id: MiniMax-M2.5
    

    Pay-as-you-go

    Replace {WorkspaceId} with your actual Workspace ID:

    - id: llm-pi-ai
      config:
        providers:
          bailian:
            apiKeyEnv: BAILIAN_API_KEY
            api: openai-completions
            baseURL: https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1
            models:
              - id: qwen3.8-max
              - id: qwen3.7-plus
              - id: qwen3.8-flash
              - id: deepseek-v4-pro-0813
              - id: deepseek-v4.1-flash
    

    Coding Plan

    - id: llm-pi-ai
      config:
        providers:
          bailian-coding:
            apiKeyEnv: BAILIAN_API_KEY
            api: openai-completions
            baseURL: https://coding-intl.dashscope.aliyuncs.com/v1
            models:
              - id: qwen3.7-plus
              - id: qwen3.6-plus
              - id: kimi-k2.5
              - id: glm-5
              - id: MiniMax-M2.5
              - id: qwen3.5-plus
    

After saving, restart DeepSeek Harness and select the added model in the model picker.

Error Codes

If you encounter errors during configuration, refer to the FAQ documentation for your billing plan:

FAQ

How do I use a savings plan with pay-as-you-go?

The pay-as-you-go setup remains the same: use your general Model Studio API key and Base URL. After you purchase a savings plan, it takes effect automatically and eligible usage is deducted automatically. See Savings plans.

Fetch available models returns 401

The Model Studio OpenAI-compatible endpoint does not provide a GET /models endpoint, so clicking Fetch available models returns 401 or 404. Ignore this button and enter the model ID manually in the Model catalog.

MISSING_CREDENTIAL error

Re-enter the API Key in the Web UI under Settings → Models and save it, or confirm that BAILIAN_API_KEY is set and restart DeepSeek Harness.

The added model does not appear after configuration

Restart DeepSeek Harness, then select the model in the Web UI model selector. To add a model, edit the provider under Settings → Models, add the model ID in the model catalog, and save; you can also edit models in cordis.patch.yml.