VSCode AI coding extension
Cline is a VS Code extension for AI-assisted coding. You can connect it to QwenCloud using Token Plan (Individual), Token Plan (Team Edition), or Pay-as-you-go.
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.
QwenCloud supports the following billing plans:
The following uses the Singapore (ap-southeast-1) endpoint. For another region, replace ap-southeast-1 and use an API key from that region. See Regions and endpoints.
If you use Qwen3 (thinking mode) or the QwQ model, click
Send a message in the Cline chat panel. A normal response confirms the configuration.
If you encounter errors during configuration, refer to the FAQ documentation for the corresponding billing plan:
Possible causes:
Click
Install Cline
- Download and install VSCode.
- Open VSCode, search for
Clinein 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.
QwenCloud supports the following billing plans:
- Token Plan (Individual): Deducts personal Credits based on token consumption.
- Token Plan (Team Edition): Deducts workspace Credits based on token consumption.
- Pay-as-you-go: Billed per token usage with no upfront commitment.
Token Plan (Individual)
| Parameter | Description |
|---|---|
| API Provider | Select OpenAI Compatible. |
| Base URL | https://token-plan.maas.qwencloudapi.com/compatible-mode/v1 |
| API Key | Enter the Token Plan (Individual) dedicated API Key. |
| Model ID | Enter a Token Plan (Individual) supported model, such as qwen3.8-max. |
Token Plan (Team Edition)
| Parameter | Description |
|---|---|
| API Provider | Select OpenAI Compatible. |
| Base URL | https://token-plan.maas.qwencloudapi.com/compatible-mode/v1 |
| API Key | Enter the Token Plan (Team Edition) dedicated API key. |
| Model ID | Enter a supported model, such as qwen3.8-max. |
Pay-as-you-go
The following uses the Singapore (ap-southeast-1) endpoint. For another region, replace ap-southeast-1 and use an API key from that region. See Regions and endpoints.
| Parameter | Description |
|---|---|
| API Provider | Select OpenAI Compatible. |
| Base URL | https://ap-southeast-1.maas.qwencloudapi.com/compatible-mode/v1 |
| API Key | Enter your QwenCloud API Key. |
| Model ID | Enter a supported model, such as qwen3.8-max or qwen3.8-flash. |
MODEL CONFIGURATION in the settings interface and check Enable R1 messages format.
Verify configuration
Send a message in the Cline chat panel. A normal response confirms the configuration.
FAQ
Error codes
If you encounter errors during configuration, refer to the FAQ documentation for the corresponding billing plan:
- Pay-as-you-go: Error codes and troubleshooting
- Token Plan: Token Plan 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.