Skip to content

Cline

Cline is a VS Code extension for AI-assisted coding. You can connect it to Alibaba Cloud Model Studio using Token Plan (Team Edition), Coding Plan, or Pay-as-you-go.

Install Cline

  1. Download and install VSCode.

  2. Open VSCode, search for Cline in the extension marketplace, and install it.

Configure credentials

After installation, click the Cline icon in the left sidebar to open the configuration interface. Click Bring my own API key , select OpenAI Compatible as the API Provider, and fill in the parameters for your billing plan. If you have used Cline before, click the settings icon in the upper-right corner to open the configuration interface.

Model Studio offers three billing plans. Select the one that fits your needs:

  • Token Plan (Team Edition): Seat-based subscription. Token consumption is deducted from Credits.

  • Coding Plan: Fixed monthly subscription. Billed by number of model calls.

  • Pay-as-you-go: Post-paid based on actual usage.

Token Plan (Team Edition)

ParameterDescription
API ProviderSelect OpenAI Compatible.
Base URLhttps://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1
API KeyEnter the Token Plan (Team Edition) dedicated API key.
Model IDEnter a Overview, such as qwen3.6-plus.

Coding Plan

ParameterDescription
API ProviderSelect OpenAI Compatible.
Base URLhttps://coding-intl.dashscope.aliyuncs.com/v1
API KeyEnter the Coding Plan dedicated API key.
Model IDEnter a Overview, such as qwen3.6-plus.

Pay-as-you-go

ParameterDescription
API ProviderSelect OpenAI Compatible.
Base URLEnter the URL for your region: - China (Beijing): https://dashscope.aliyuncs.com/compatible-mode/v1 - Singapore: https://dashscope-intl.aliyuncs.com/compatible-mode/v1 - US (Virginia): https://dashscope-us.aliyuncs.com/compatible-mode/v1
API KeyEnter the Create an API key for the corresponding region.
Model IDEnter a Supported models.

If you use Qwen3 (thinking mode) or the QwQ model, click MODEL CONFIGURATION in the settings interface and check Enable R1 messages format.

FAQ

Error codes

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

  • Pay-as-you-go: Error messages

  • Coding Plan: FAQ

  • Token Plan (Team Edition): FAQ

Error: 401 Incorrect API key provided

Possible causes:

  • The API key does not match the Base URL. API keys are not interchangeable across billing plans. Verify that the API key and Base URL belong to the same plan.

  • For Pay-as-you-go, the API key region does not match the Base URL region. Verify that both correspond to the same region.

Error: 400 InternalError.Algo.InvalidParameter

Click MODEL CONFIGURATION in the settings interface and check Enable R1 messages format.

Mirror of Alibaba Cloud Model Studio docs for reference and RAG. Not affiliated with Alibaba Cloud.