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:

  1. Open the Extensions panel (Ctrl+Shift+X / Cmd+Shift+X)

  2. Search for "Cline"

  3. Click Install

Step 2: Configure QCode.cc API

  1. After installation, click the Cline icon in the VS Code sidebar

  2. In the API Provider dropdown, select "OpenAI Compatible"

  3. 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?

  1. Make sure the Base URL doesn't have a trailing /

  2. Verify the API key is correct

  3. Try switching to an alternative endpoint

  4. 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

πŸš€
Get Started with QCode β€” AI Coding Assistant
Official Claude Code relay, fast and reliable, ready to use
View Pricing Plans β†’ Create Account