Cline in VS Code: connect QCode step by step (Windows 11 & macOS, 10 screenshots)

Add QCode to the Cline extension in VS Code on Windows 11 & macOS: 10 screenshots cover the download, provider setup, custom base URL and the first Claude reply.

Updated 2026-11-29

Need an API key? Sign up →Endpoints & base URLs →

On This Page

Short answer: In VS Code, open the Cline panel, set API Provider to Anthropic, paste a cr_ key, tick Use custom base URL and enter https://api.qcode.cc/api, then pick claude-opus-5-5.

Item Fill in
API address https://api.qcode.cc/api
API Provider Anthropic
API key cr_xxxxxxxx
Model claude-opus-5-5
Web Search Off

Checked on 2026-11-22 · Cline 4.1.27 · VS Code 1.147.0 · Windows 11

Latest on GitHub Releases on 2026-11-29: Cline extension 4.1.28 (2026-11-26); Cline CLI v3.0.76 is a separate release line. Screenshots were taken on 4.1.27. The OpenAI Compatible field names in the Cline docs (Base URL, API Key, Model ID) match the OpenAI-compatible section of this page.

Follow the 10 screenshots below on a Windows PC or a Mac and you end up with QCode answering inside VS Code: the Cline panel shows Claude's reply to your first message. You do not need a Microsoft account, a GitHub account or a Cline account — the only credential is a QCode API key.

  • Applies to: Windows 10 / 11 (64-bit) and macOS; the screenshots were taken on Windows 11
  • Software version: VS Code 1.147.0 + Cline extension 4.1.27
  • Screenshots updated: 2026-11
  • Time needed: about 10 minutes, most of it downloading the 276 MB VS Code installer
  • You will need: a QCode API key starting with cr_

On a Mac? Follow the same steps. The screenshots were taken on Windows 11, and VS Code and Cline work the same on macOS. Press ⌘ Cmd wherever a step says Ctrl, and read %USERPROFILE%\ as ~/ in file paths.

Before the first screenshot, check that you have these:

  • A Windows 10 or 11 PC or a Mac, 64-bit, that can open websites
  • About 400 MB of disk space for VS Code; the User Installer puts the editor in your own user folder, so no administrator rights are needed
  • A QCode API key copied from your dashboard (cr_xxxxxxxx); this is the only item you cannot skip. No account yet? Sign up first, pick a plan on the pricing page, then create the key in your Dashboard.
  • No Microsoft, GitHub or Cline account is needed: the Extensions view works without signing in

Download and install

Cline is a VS Code extension, not a separate program, so there is no Cline installer to download. Install VS Code first, then add Cline from the Extensions view inside VS Code. Pick the tab that matches where you are:

Other regions

Open code.visualstudio.com/download. On the Windows card, Download x64 · User Installer is the normal Intel/AMD build; on a Windows-on-ARM laptop take Arm64 under Other builds. The All downloads row holds the System Installer, the zip and the CLI. The User Installer installs for your own user account and does not ask for administrator rights.

Mainland China

Open code.visualstudio.com/download and use the Windows card to get the x64 · User Installer. If the page is slow or a download stalls, wait a minute and start it again — the page and the installer are served from the same host.

If the page will not open at all, install VS Code from a terminal with winget install Microsoft.VisualStudioCode after checking winget --version. Cline itself is installed inside VS Code, so no separate download is needed; if a Marketplace search fails, try it again from the editor.

Install VS Code

Open code.visualstudio.com/download and choose the Windows card: ① Download x64 · User Installer is the normal choice for an Intel or AMD PC, ② Arm64 under Other builds is for a Windows-on-ARM laptop, and ③ All downloads holds the System Installer, zip and CLI if you need one of those. Run the downloaded VSCodeUserSetup-x64-1.147.0.exe with the default options; it installs for your user account and does not ask for administrator rights.

VS Code download page with the Windows card: Download x64 · User Installer, the Arm64 link under Other builds, and the All downloads row

Done right you will see: the installer finishes and a VS Code window opens. If VS Code asks you to sign in to GitHub Copilot, click Continue without Signing In — no account is needed.

Stuck? The page loads but no download starts

Scroll to the All downloads row and use the Windows x64 build there, or run winget install Microsoft.VisualStudioCode in a terminal. Both give you the same stable VS Code build.

Find Cline in the Extensions view

Open VS Code and press Ctrl+Shift+X, or click the Extensions icon in the Activity Bar. ① Type Cline in the search box. Many extensions share the name: pick the one whose publisher is ② Cline, with the blue verified check and about 6 million installs, then click ③ Install.

The Extensions view with Cline typed in the search box, the verified Cline publisher row and its Install button

Done right you will see: the entry shows Installing… and then a gear icon. The first time, VS Code may ask Do you trust the publisher "Cline"? — click Trust Publisher & Install.

Stuck? The list is full of similar names

Names such as Cline Chinese, Cline Nightly and Cline Pro are separate projects. Check the publisher line under the name; the extension this tutorial uses is published by Cline, and its extension ID is saoudrizwan.claude-dev.

Wait for the extension to finish installing

When the install finishes, ① the Cline icon — a robot head — appears in the Activity Bar below the Extensions icon. In the Marketplace list ② the Cline entry now shows a gear instead of the blue Install button. A Cline tab may open in the editor; close it with Ctrl+W if you do not need it.

The Activity Bar with the new Cline robot-head icon and the installed Cline entry in the Extensions list

Done right you will see: ① the robot-head icon in the Activity Bar, and ② the Cline row with a gear on the right. No account or sign-in is required.

Stuck? The panel stays white with a spinner

The first time Cline loads it can take 5–10 seconds. Wait for the panel to draw before clicking anything.

Choose your own API key

Click the Cline icon in the Activity Bar. The first run shows How will you use Cline?. Select ① Bring my own API key — no sign-in is needed — then click ② Continue.

Cline first-run page How will you use Cline? with Bring my own API key selected and the Continue button

Done right you will see: the dot moves to Bring my own API key and Continue turns blue. After you click it, the page changes to Configure your provider.

Stuck? The page asks you to log in

Login to Cline is optional. Choose Bring my own API key and Continue; the tutorial never needs a Cline account.

Pick Anthropic as the provider

The provider form opens with OpenRouter selected. ① Click the API Provider field and type Anthropic to filter the list. ② Pick Anthropic from the list; Claude models use the Anthropic protocol.

The API Provider field with Anthropic typed in and the Anthropic entry in the filtered dropdown list

Done right you will see: ① the field reads Anthropic, and the fields below change to Anthropic API Key, Use custom base URL, Model and Reasoning Effort.

Stuck? A promotion card covers the top of the form

Close the card with the × in its top-right corner; the form moves up and the fields line up with the screenshots.

Paste the QCode API key

Click ① Anthropic API Key and paste your QCode key (cr_xxxxxxxx). The field only shows dots; the key stays on this PC and is only used to make API requests from the extension.

The Anthropic API Key field after pasting a key, showing only dots that start with cr_

Done right you will see: ① the field below Anthropic API Key shows a row of dots that starts with cr_, and the note underneath says the key is stored locally.

Need an API Key?

If you do not have a QCode account yet, Sign up first. If you do not want a monthly plan, buy a pack from the Pay-as-you-go Packs page to get started, then create the key in the Dashboard. Copy the string that starts with cr_ and paste it in place of cr_xxxxxxxx above. You can pay by credit or debit card (Visa / Mastercard) — see Payment methods.

Point Cline at QCode

Tick ① Use custom base URL. In ② the address field that appears, enter https://api.qcode.cc/api. Stop at /api: Cline adds /v1/messages itself, so do not add /v1, /v1/messages or a trailing slash.

The ticked Use custom base URL checkbox and the address field containing https://api.qcode.cc/api

Done right you will see: ① the checkbox has a tick, and ② the field reads https://api.qcode.cc/api with no slash at the end.

Stuck? Every message returns 404

The address has an extra path: https://api.qcode.cc/api/v1 becomes /api/v1/v1/messages. Keep exactly https://api.qcode.cc/api.

Stuck? The address is slow or times out

Swap only the domain: https://asia.qcode.cc/api for Asia or https://us.qcode.cc/api for North America and Europe. The key and the rest of the path stay the same.

Choose the model and reasoning effort

Open ① Model and pick claude-opus-5-5. The list also has claude-sonnet-5-5, which is selected by default; both IDs work on QCode, but this tutorial uses claude-opus-5-5 throughout. Open ② Reasoning Effort and pick None — that turns extended thinking off, which uses fewer tokens and avoids thinking-compatibility problems through a gateway.

The Model field set to claude-opus-5-5 and the Reasoning Effort field set to None

Done right you will see: ① claude-opus-5-5 in the Model field and ② None in Reasoning Effort. The form saves automatically; click Continue to open the chat.

Stuck? Red text mentions web_search_tool_result

Cline 4.1.27 ships with Web Search on by default. Before your first message, click the gear at the top right of the panel, open Feature Settings → AGENT → Web Search, and switch it off. This prevents the Type validation failed error; it has nothing to do with the QCode key.

Send your first message

Click the chat input, type Reply with exactly: Hello from QCode and press Enter. ① Wait for the green COMPLETED line and the reply Hello from QCode. ② The bar above your message shows this request's context usage (4.1k … 1.0m).

The Cline chat after sending a message: the prompt, the context usage bar above it, and the green COMPLETED badge with the reply Hello from QCode below

Done right you will see: ① a green COMPLETED badge with Claude's answer Hello from QCode, and ② the context bar filled to about 4.1k of 1.0m. The base URL and the key both work.

Stuck? The panel shows an authentication error

The key reached QCode and was rejected. Copy the key again from the Dashboard, paste it into Anthropic API Key, and check that no space came with it.

Change the settings later

To change anything after setup, click the gear at the top right of the Cline panel and open Settings. All four fields from this tutorial sit on the API Configuration page: ① API Provider, ② Use custom base URL, ③ the address field and ④ Model. Changes save as you type; click Done to go back.

The Cline Settings page with the API Provider, Use custom base URL checkbox, the QCode address field and the Model field marked

Done right you will see: ① Anthropic, ② a ticked Use custom base URL, ③ https://api.qcode.cc/api and ④ claude-opus-5-5 on one page.

Stuck? You need to turn Web Search off again

On the same Settings page, open Feature Settings → AGENT and switch Web Search off. This is the fix for the web_search_tool_result error; it is not related to the QCode key.

Verify it works

Your setup is complete when all four of these are true:

  • The Cline panel shows a green COMPLETED badge and a real answer to Reply with exactly: Hello from QCode.
  • The Settings page keeps Anthropic, https://api.qcode.cc/api and claude-opus-5-5 after you close and reopen the panel.
  • Web Search is off under Feature Settings → AGENT.
  • VS Code, the Marketplace and Cline never asked you to sign in.

All done

You have QCode wired into Cline in VS Code and Claude answering in the panel. From here you can:

Common errors

Error message Why What to do
Type validation failed: Value: {"type":"content_block_start","index":1,"content_block":{"type":"web_search_tool_result",...}} Cline 4.1.27's Anthropic stream parser only understands text, thinking and tool_use. With Web Search on, QCode streams a web_search_tool_result block and the parser stops. Turn Web Search off under Settings → Feature Settings → AGENT → Web Search, then run Developer: Reload Window. The key and the base URL are not the cause.
model_not_available_on_endpoint A claude-* model ID was sent to the OpenAI-compatible endpoint, or the provider and the base URL belong to different routes. For Claude choose Anthropic with https://api.qcode.cc/api; use https://api.qcode.cc/openai/v1 only with GPT or Chinese model IDs.
{"error":{"message":"Invalid URL (POST /v1/v1/messages)","type":"invalid_request_error","param":"","code":""}} The base URL already ends in /v1 or /v1/messages, so Cline appends /v1/messages a second time. Keep the base address at https://api.qcode.cc/api with no /v1 and no trailing slash.
401 with code invalid_api_key The request reached QCode, but the key was missing, cut short, or carried a space or quote. Paste the full cr_ key again into Anthropic API Key; do not add quotes or spaces.
There's an issue with the selected model (name). It may not exist or you may not have access to it. The model ID is wrong, retired, or not served on the chosen endpoint. Pick claude-opus-5-5 from the Model list instead of typing an ID by hand.

FAQ

Do I need a Microsoft, GitHub or Cline account?

No. VS Code installs and opens without signing in, the Extensions view works without an account, and Cline lets you continue with Bring my own API key. The only credential in this tutorial is the QCode cr_ key.

Why does Cline show a red error about web_search_tool_result?

Cline 4.1.27 has Web Search on by default. When the model searches the web, QCode streams a web_search_tool_result block that this Cline version cannot parse, so the whole task shows a red Type validation failed message. Turn Web Search off under Settings → Feature Settings → AGENT, then run Developer: Reload Window. The key and the base URL are fine.

Should I pick claude-opus-5-5 or claude-sonnet-5-5?

Both IDs work on QCode. The extension preselects claude-sonnet-5-5; this tutorial picks claude-opus-5-5 so the screenshots and the text match. Use one of them consistently, and do not paste a model name from another page that is not in the list.

Do I have to save the settings?

No. There is no Save button. The first-run form saves when you click Continue, and the Settings page saves as you type; click Done to return to the chat.

Why is the model list empty?

In OpenAI-compatible mode the list can be empty; type the model ID by hand in the Model ID field, for example gpt-6.2-sol or glm-5.3. In Anthropic mode, pick a model from the built-in list.

What happens when my key expires?

It depends on what you bought. A key from a personal plan cannot be renewed — reopen the plan, create a new key and paste it into Anthropic API Key. A key from a pay-as-you-go pack comes back when you buy another pack: the same key keeps working, with no new key to paste.

Can I use GPT models in Cline through QCode?

Yes. Use the OpenAI-compatible route in the next section: choose OpenAI Compatible, set the base URL to https://api.qcode.cc/openai/v1, and use a GPT or Chinese model ID. A claude-* ID does not work on that endpoint.

At a glance

Item Details
Models you can use Claude via Anthropic · GPT and Chinese models via OpenAI Compatible · QCode does not offer Gemini models
Protocol and base URL Anthropic: https://api.qcode.cc/api · OpenAI: https://api.qcode.cc/openai/v1
Where to configure Cline panel → gear → Settings → API Configuration
Official docs Cline's official site and GitHub repository

Why Cline

  • No markup on model costs: you only pay QCode API fees
  • Flexible model switching: switch between claude-opus-5-5, gpt-6.2-sol and more in the same interface
  • Deep VS Code integration: sidebar panel, inline code actions, file-edit diff preview, auto-approve
  • Plan / Act dual modes: plan first, then execute — keeps complex changes under control
  • Fully open source: transparent code and an active community
  • MCP support: connect external tools such as databases, browsers and docs through the Model Context Protocol

OpenAI-compatible route (GPT and Chinese models)

A single QCode key works with both protocols. The route above uses the Anthropic protocol for Claude. For GPT or Chinese models, stay in the same Cline panel and switch the provider:

  1. Open API Provider and choose OpenAI Compatible.
  2. Set the base URL to https://api.qcode.cc/openai/v1.
  3. Paste the same cr_ key.
  4. In Model ID, enter gpt-6.2-sol, or a Chinese-family ID such as glm-5.3.
Setting Value
Base URL https://api.qcode.cc/openai/v1
API Key cr_xxxxxxxx
Model ID gpt-6.2-sol, or glm-5.3

OpenAI-compatible mode cannot use Claude. QCode's OpenAI endpoint serves only GPT and the Chinese families; a claude-* ID returns model_not_available_on_endpoint. For Claude, go back to Anthropic with https://api.qcode.cc/api. See Endpoints and API paths.

Alternative endpoints

The same key works across three access domains. If the primary domain is unstable, swap api in the base URL for the corresponding subdomain:

Endpoint Anthropic base URL OpenAI base URL
Default https://api.qcode.cc/api https://api.qcode.cc/openai/v1
Asia-Pacific https://asia.qcode.cc/api https://asia.qcode.cc/openai/v1
North America / Europe https://us.qcode.cc/api https://us.qcode.cc/openai/v1

The Asia host is usually the closer one from mainland China. See Endpoints and API paths for details.

Plan / Act modes

Cline offers a Plan / Act toggle at the right end of the input row — Plan on the left, Act on the right, and the active mode is highlighted.

  • Plan: Cline reads the code, asks questions, and proposes an implementation plan, but does not modify files. Great for aligning on requirements before any change.
  • Act: Cline actually creates and edits files, runs commands, and calls tools. Each change is shown as a diff for you to approve or auto-approve.

A typical workflow: use Plan mode first to have the model outline and confirm an approach, then switch to Act mode to implement it step by step. For complex tasks, plan with claude-opus-5-5, then execute with claude-sonnet-5-5.

Usage tips

1. Model selection guide

Scenario Recommended model Notes
Daily coding claude-sonnet-5-5 Balanced tier, 1M / 128K
Complex architecture / Plan mode claude-opus-5-5 Flagship model; claude-opus-4-8 is still available
Lightweight tasks / copy edits claude-haiku-5-5 Lowest cost
Prefer GPT style gpt-6.2-sol Selectable under the OpenAI protocol
Chinese family / lower unit price glm-5.3 / deepseek-v4-pro See Chinese-family models

See Billing for full pricing.

2. Configure MCP tools

Cline supports the Model Context Protocol (MCP), letting the model call external tools such as database queries, browsers and document search. Add a server in Cline's MCP Servers panel:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/project"]
    }
  }
}

MCP servers are decoupled from the model you use — tool calls work whether you connect to QCode through the Anthropic or the OpenAI protocol. For each server's install steps and parameters, see the tool's official docs.

3. Project-level custom instructions (.clinerules)

Create a .clinerules file in the project root to inject fixed context for that repository — code style, stack conventions, directory layout. Cline includes these rules in every conversation, so you do not have to paste them repeatedly:

# .clinerules

- Use TypeScript everywhere, strict mode
- Prefer reusing helpers under src/lib
- Run `pnpm test` before committing

For the rules file's fields and advanced usage, see Cline's official docs.

4. Image input (vision)

claude-opus-5-5 (and the still-available 4.8 / 4.6) and GPT-5.x all support vision input. Drag a UI screenshot, an error screenshot, or an architecture diagram straight into the Cline chat box and let the model code from it or debug it.

This is about having the model read images. To generate images, use gpt-image-2 image generation with the model name gpt-image-2.

5. Auto-approve and cost control

  • In Settings you can enable Auto-approve separately for reading files, writing files and executing commands to reduce interruptions; keep manual confirmation for high-risk operations.
  • Cline shows the context usage bar and an estimated cost pill at the top right of each task card, making spend easy to track. For complex tasks, narrow the scope with Plan mode first to avoid unnecessary back-and-forth.
  • For large codebases, use @ to mention a file, folder or URL and feed precise context instead of letting the model scan the whole project — it saves tokens and stays focused.

6. 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
Codebase-wide migration / review Claude Code CLI (subagents)
CI/CD automation Claude Code CLI (headless mode)

7. Shared quota

Cline and Claude Code CLI use the same QCode API key and share the plan quota — no need to request separate keys per tool.

Cline Desktop

Cline also has a desktop app. It uses the same idea — pick an API provider and a custom base URL — but this tutorial and its screenshots cover the VS Code extension only. Field names in the desktop app follow what the app shows.

Cline CLI note

Cline also ships a command-line version. The release notes for Cline CLI v3.0.69 (2026-10-07) include one line that touches custom Anthropic base URLs:

Claude through a custom Anthropic base URL (Azure AI Foundry, corporate gateways) no longer fails with a 400 error

The notes give no affected version range and do not mention QCode. Treat this as a troubleshooting hint only: it is unrelated to the setup in this tutorial.

Get started with QCode

One API key for Claude Code, Codex and more — billed per token, per-model prices on qcode.cc/models

Enterprise →