Updated on 2026-07-08 GMT+08:00

Cline

Cline is a VS Code plugin that uses large language models (LLMs) to handle complex software development tasks. It offers a convenient and efficient coding experience. Advantages of Cline:

  • Deep integration with MaaS: Cline connects to DeepSeek model services on MaaS.
  • File management and code correction: You can easily create and edit files while monitoring real-time linter and editor errors. Cline detects issues like missing imports or syntax errors, suggests fixes, and improves your coding efficiency and accuracy.
  • Terminal interaction and instant response: Cline includes a terminal for running commands and viewing outputs in real time. It helps you quickly find and fix server issues, keeping development smooth.
  • One-stop web solution: For web tasks, Cline starts websites in a headless browser, simulates user actions, and captures screenshots and logs. This helps identify and correct runtime and visual errors, ensuring high-quality web applications.

This guide describes how to use Cline to call a DeepSeek model deployed on MaaS to build an AI coding assistant.

Constraints

This function is only available in CN-Hong Kong.

Billing

This section describes how to use a built-in service or deploy a built-in service as My Services. The billing of the two methods is as follows:

This section describes how to deploy a built-in service as My Services for calls. Calling My Services uses compute and storage resources, which are billed. For details, see Compute Resource Billing Items.

Prerequisites

Supported Models

The system supports text generation models with a context length of at least 32K.

You can log in to the MaaS console. In the Model Filtering area of Model Square, choose Text Generation for Type and 32K and 64K for Context Length to view the supported models.

Figure 1 Accessing supported models in the Model Square

Step 1: Installing Cline in VS Code

  1. Open VS Code. Click on the navigation pane, enter Cline in the search box, and click Install.

    If you see a small robot icon on the left, Cline is installed.

    Figure 2 Installing Cline

Step 2: Preparing for MaaS Model API Access

Obtain key details about the target MaaS DeepSeek model service for connecting with Cline.

  1. In the navigation pane of the MaaS console, choose Model Inference > Real-time inference.
  2. Click the Built-in Services tab. In the Operation column of the target service, click Subscribe.
  3. In the displayed dialog box, select built-in services as required, select I have read and agree to this statement and MaaS Service Agreement, and click Subscribe.

    Selecting a built-in service will subscribe all its model versions.

  4. Click View Call Description in the Operation column of the subscribed built-in service. Select a version.
  5. In the View Call Description dialog box, click Create API Key, set related parameters, and click OK.

    API keys are used for API authentication. You can create up to 30 keys. After an API key is created, its tag cannot be changed. Each key is displayed only once after creation. Keep it secure. If the key is lost, it cannot be retrieved. In this case, create a new API key. For details about the API key parameters, see Creating an API Key.

  6. In the Your API Key dialog box, copy the key and store it securely. After the key is saved, click Saved. Confirm and Close.

    After you click Saved. Confirm and Close, the key cannot be viewed again.

  7. Check the API URL and model name in the View Call Description dialog box. You will need these for the next steps in subsequent configuration.
  1. In the navigation pane of the MaaS console, choose Model Inference > Real-time inference.
  2. Click the My Services tab and click Deploy Model in the upper right corner to create a model service. For details, see Deploying a Model Service.
  3. Locate a running model service and choose More > View Call Description in the Operation column.
  4. In the View Call Description dialog box, click Create API Key, set related parameters, and click OK.

    API keys are used for API authentication. You can create up to 30 keys. After an API key is created, its tag cannot be changed. Each key is displayed only once after creation. Keep it secure. If the key is lost, it cannot be retrieved. In this case, create a new API key. For details about the API key parameters, see Creating an API Key.

  5. In the Your API Key dialog box, copy the key and store it securely. After the key is saved, click Saved. Confirm and Close.

    After you click Saved. Confirm and Close, the key cannot be viewed again.

  6. Check the API URL and model name in the View Call Description dialog box. You will need these for the next steps in subsequent configuration.

Step 3: Configuring the MaaS API in Cline

  1. Configure the MaaS model service.
    1. Open VS Code, click in the navigation pane to open the Cline plugin, and click in the upper right corner.
      Figure 3 Opening the cline plugin
    2. On the Settings page, configure related information and click Done.
      Table 1 Cline configuration

      Parameter

      Description

      API Provider

      Select OpenAI Compatible.

      Base URL

      Remove /chat/completions from the API URL obtained in Step 2.

      API Key

      Select the API key created in Step 2.

      Model ID

      Model name obtained in Step 2.

  2. Use the Cline plugin in VS Code to call the MaaS API for automatic code generation.
    1. In the navigation pane of VS Code, click .
    2. Select the configured MaaS service shown in the red box in the lower left corner to generate code.

      Cline can generate, correct, and optimize code.

      Figure 4 Code generation example