Cline Integration
Use QCode.cc API with the Cline extension in VS Code
Cline Integration¶
Cline is a popular VS Code AI coding extension (5M+ installs) that supports any AI model and custom API endpoints. By pairing Cline with the QCode.cc API, you can use Claude models in VS Code at low cost.
Why Cline?¶
-
Zero markup: No markup on model costs β you only pay QCode.cc API fees
-
Flexible model switching: Switch between Claude, GPT, Gemini, and more in the same interface
-
Deep VS Code integration: Sidebar panel, inline code actions, file edit preview
-
Fully open source: Transparent code, active community
-
CLI 2.0: Supports terminal mode and parallel agents
Installation & Configuration¶
Step 1: Install the Cline Extension¶
In VS Code:
-
Open the Extensions panel (
Ctrl+Shift+X/Cmd+Shift+X) -
Search for "Cline"
-
Click Install
Step 2: Configure QCode.cc API¶
-
After installation, click the Cline icon in the VS Code sidebar
-
In the API Provider dropdown, select "OpenAI Compatible"
-
Enter the following information:
| Setting | Value |
|---|---|
| Base URL | https://asia.qcode.cc/claude/v1 |
| API Key | Your QCode.cc API key (starts with cr_) |
| Model ID | claude-sonnet-4-6 (recommended) or claude-opus-4-6 |
Step 3: Verify Connection¶
Type a simple message (e.g., "Hello") in the Cline chat box. If you receive a response, the configuration is successful.
Alternative Endpoints¶
If the primary endpoint is unstable, switch the Base URL:
| Endpoint | Base URL |
|---|---|
| Asia-Pacific (primary) | https://asia.qcode.cc/claude/v1 |
| Hong Kong | http://103.218.243.5/claude/v1 |
| Shenzhen | http://103.236.53.153/claude/v1 |
Usage Tips¶
1. Model Selection Guide¶
| Scenario | Recommended Model | Notes |
|---|---|---|
| Daily coding | claude-sonnet-4-6 |
Fast, great value |
| Complex architecture design | claude-opus-4-6 |
Strongest reasoning |
| Lightweight tasks | claude-haiku-4-5-20251001 |
Lowest cost |
2. Pairing with Claude Code CLI¶
Cline and Claude Code CLI each have their strengths β use them together:
| Scenario | Recommended Tool |
|---|---|
| Quick edits in VS Code | Cline |
| Complex project analysis | Claude Code CLI |
| Multi-file refactoring | Cline |
| Git operations, code review | Claude Code CLI |
| CI/CD automation | Claude Code CLI (headless mode) |
3. Shared Quota¶
Cline and Claude Code CLI use the same QCode.cc API key and share the plan quota.
FAQ¶
Connection failed?¶
-
Make sure the Base URL doesn't have a trailing
/ -
Verify the API key is correct
-
Try switching to an alternative endpoint
-
Confirm your network can reach QCode.cc services
Model list is empty?¶
Manually type the model name in the Model ID field (e.g., claude-sonnet-4-6) β you don't need to select from a list.
Next Steps¶
-
See Aider Integration for another open-source tool compatible with QCode.cc
-
See VS Code Integration to use the official Claude Code extension
-
See Billing for pricing details