VSCode AI coding assistant
Cline is an AI-powered VSCode extension that helps you write, debug, and refactor code. Connect it to Qwen Cloud's pay-as-you-go API for powerful coding assistance through the OpenAI-compatible endpoint.
Get running in a few minutes:
You should see: Cline generates the email validation code
Configure Cline to use Qwen Cloud:
Cline operates in two modes:
Plan mode (information only):
Act mode (file modifications):
Control Cline's permissions:
401 Incorrect API key error
Reduce consumption by:
Quick start
Get running in a few minutes:
Configuration
Basic setup
Configure Cline to use Qwen Cloud:
- API endpoint:
https://dashscope-intl.aliyuncs.com/compatible-mode/v1 - Authentication: API key required
- Model selection: Enter any Qwen model ID directly
Free quota and billing:
- First-time users get a free quota (valid for 90 days)
- Enable Free quota only to prevent unexpected charges
For Coding Plan users: Use your exclusive base URL and API key instead. See Coding Plan for Cline.
Recommended configuration
- OpenAI Compatible (Recommended)
- Alibaba Qwen
Supports all Qwen models including the latest releases:
| Setting | Value |
|---|---|
| API Provider | OpenAI Compatible |
| Base URL | https://dashscope-intl.aliyuncs.com/compatible-mode/v1 |
| API Key | Your API key |
| Model ID | qwen3.5-plus (or qwen3-coder-plus for specialized coding) |
For thinking models (QwQ, Qwen3), enable R1 messages format in MODEL CONFIGURATION.
Model recommendations
| Task | Model | Why |
|---|---|---|
| General coding | qwen3.5-plus | Balanced performance |
| Complex algorithms | qwen3-coder-plus | Specialized for code |
| Fast iterations | qwen3-coder-next | Quick responses |
Limitations
- High token usage: Cline scans project files and makes multiple API calls
- Qwen3 (thinking mode) and QwQ models: Require "R1 messages format" enabled
Examples
Plan vs Act modes
Cline operates in two modes:
- Plan mode: Analyzes and designs solutions without modifying files
- Act mode: Creates and modifies files directly
Basic usage
Plan mode (information only):
Auto-approve settings
Control Cline's permissions:
- Read: Let Cline analyze your files
- Write: Allow file creation and modification
- Execute: Permit running commands
Auto-approve increases token consumption significantly. Start with manual approval.
Troubleshooting
401 Incorrect API key error
Solution:High token consumption
- Use "OpenAI Compatible" provider if "Alibaba Qwen" fails
- Check API key validity in Qwen Cloud
Solution:"InvalidParameter" with QwQ models
- Use Plan mode for analysis tasks
- Clear Auto-approve for manual control
- Work in focused project directories
- Use
/compactto summarize long conversations
Solution: Enable R1 messages format in MODEL CONFIGURATIONModel not found
Solution: Check Model selection guide for exact model IDs
Token optimization
Reduce consumption by:
- Focused workspace: Open Cline in specific project folders
- Clear instructions: Avoid vague requests that trigger full scans
- Compact conversations: Use
/compactcommand regularly - Plan first: Use Plan mode before Act mode
- Manual approval: Review actions before execution
Related resources
- Coding Plan: Setup with subscription →
- Models: Text generation models →
- API docs: OpenAI-compatible reference →