Skip to main content
Content updated: 2026-06-09
Cline is a powerful proxy-based coding extension in VS Code, suitable for file reading/writing, terminal execution, step-by-step planning, and multi-turn code modification. When integrating with Crazyrouter, it is recommended to use the OpenAI Compatible provider officially provided by Cline.

Overview

With Cline’s OpenAI Compatible provider, you can send proxy requests to Crazyrouter:
  • Recommended protocol: OpenAI-compatible API
  • Base URL: https://api.crazyrouter.com/v1
  • Authentication method: sk-... token
  • Recommended default models: claude-opus-4-8 or gpt-5.5
Cline has the capability to read and write files and execute terminal commands. After successful integration, the real risk is not “whether you can connect or not,” but “whether you have granted it excessive execution permissions.” It is recommended to start with a small repository that you are familiar with.

Who Should Use This

  • Those who want a proxy-based programming experience in VS Code
  • Those who want to use Crazyrouter’s multi-model abilities for code modification
  • Those who want to separate IDE proxy traffic and CLI traffic for statistics
  • Those who want to route models like Claude, GPT, etc., through a unified gateway

Usage Protocol

Recommended protocol: OpenAI-compatible API In the Cline settings, choose:
  • API Provider: OpenAI Compatible
  • Base URL: https://api.crazyrouter.com/v1
  • API Key: your sk-...
  • Model ID: the model name you want to use
Do not write your Base URL as:
  • https://api.crazyrouter.com
  • https://api.crazyrouter.com/v1/chat/completions
Unlike Claude Code, Codex, or Aider, Cline’s standard VS Code integration usually does not require you to set environment variables manually. In most cases, simply fill in Base URL, API Key, and Model ID in the Cline settings interface.

System Requirements and Prerequisites

Recommended initial whitelist:
  • claude-opus-4-8
  • gpt-5.5
  • gemini-3.1-pro

Complete Installation Steps by Operating System

The most reliable installation path for Cline on Windows is: Git + VS Code + Install Cline from the extension marketplace + Directly enter Crazyrouter parameters in the Cline settings. Recommended order:
  1. Install Git
  2. Install VS Code
  3. Install Cline from the VS Code extension marketplace
  4. Create a Cline-dedicated token in Crazyrouter
  5. Open your repository and make a Git snapshot first
  6. Fill in OpenAI Compatible, Base URL, API Key, Model ID in Cline’s settings
Recommended verification command:
If code --version cannot find the command but the VS Code app can open normally, it won’t affect Cline’s use; you just won’t be able to open the folder directly from the terminal with code for now. The most convenient path for Cline on macOS is usually: Xcode Command Line Tools + Homebrew + Git + VS Code + Install Cline from the extension marketplace. Recommended order:
  1. Install Xcode Command Line Tools
  2. Install Homebrew (if you don’t already have it)
  3. Install Git
  4. Install VS Code
  5. Install Cline in VS Code
  6. Fill in Crazyrouter parameters directly in Cline settings
Recommended verification command:
If you want to use the code command directly from the terminal, execute Shell Command: Install 'code' command in PATH in the VS Code command palette, then check:

Note for Linux

Linux users can generally follow the approach used for Windows/macOS: install Git and VS Code first, then install Cline from the extension marketplace. Common commands for Ubuntu/Debian are as follows:

Complete Installation from Scratch

1

Step 1: Install Git

If your machine does not have Git yet, install Git first.
After installation, it is recommended to run:
2

Step 2: Install VS Code

The most common way to use Cline is currently as a VS Code extension.
After installation, open VS Code normally at least once.
3

Step 3: Install the Cline extension

After opening VS Code:
  1. Press Ctrl/Cmd + Shift + X to open the extension marketplace
  2. Search for Cline
  3. Click Install
  4. After installation, click the Cline icon in the sidebar, or press Ctrl/Cmd + Shift + P and then run Cline: Open In New Tab
If you see a message in VS Code similar to Running extensions might..., just choose Allow.If you don’t see the icon, try restarting VS Code first and check again.
4

Step 4: Create a dedicated Cline token in Crazyrouter

Create a token named cline in the Crazyrouter dashboard; on your first attempt, only allow:
  • claude-opus-4-8
  • gpt-5.5
  • gemini-3.1-pro
With Cline’s standard VS Code approach, the API Key is usually filled in via the UI, rather than mainly relying on environment variables like Claude Code/Codex. So what’s most important here is a dedicated token and a minimal model whitelist.
5

Step 5: Prepare the Git repository and make the first snapshot

Cline will change files and execute commands. Before connecting for the first time, it is recommended to make a repo snapshot first.If your directory is not yet a Git repo:
If it’s already an existing repo, at least check:
6

Step 6: Enter the Crazyrouter configuration in Cline

After entering Cline’s settings, fill in:
  • API Provider: OpenAI Compatible
  • Base URL: https://api.crazyrouter.com/v1
  • API Key: your sk-...
  • Model ID: initially use claude-opus-4-8
If your current version of Cline UI has a Verify button, recommend clicking it once to confirm the connection is usable; if not, you can simply send a read-only test request to verify.For your first test, use just one model — don’t try switching between many models at once.
7

Step 7: Complete the first verification

For your first verification, suggest this order:
  1. Have Cline perform a read-only task: Only read the current workspace README and summarize the main points, without modifying any files
  2. Then let it do a low-risk analysis: Point out the top 3 files in the current repository that are most worth checking first
  3. Finally try a small-scope modification: Modify only one obvious typo in the README and show the diff
When all three steps work normally, and you can see the corresponding request logs in Crazyrouter’s backend, it means the main connection is stable.
8

Step 8: Gradually enable stronger permissions step by step

Once read-only and small-scope changes are stable, then gradually try:
  1. Multi-file small-scope modifications
  2. Allowing it to execute low-risk commands
  3. Finally have it perform more complex proxy-based refactoring
It is not recommended to have Cline perform large-scale automatic operations in a big repository right from the start.
It is suggested to first use claude-opus-4-8 to validate the proxy workflow; if you want to add an OpenAI-compatible baseline, switch to gpt-5.5.

Best Practices for Token Setup

Verification Checklist

  • git --version is working properly
  • VS Code is installed correctly
  • If you need to open projects from the terminal, code --version is also working
  • Cline extension is installed and can be opened
  • Cline has selected the OpenAI Compatible provider
  • Base URL is set to https://api.crazyrouter.com/v1
  • API Key is filled in correctly
  • Model ID has available models filled in
  • The first read-only task executed successfully
  • File reading/writing or command execution tasks work as expected
  • The corresponding requests can be seen in Crazyrouter’s backend logs

Common Errors and Fixes

Performance and Cost Recommendations

  • When integrating for the first time, only perform read-only tasks and small-scope modifications
  • Prioritize claude-opus-4-8 or gpt-5.5 for complex refactoring
  • For high-frequency, lightweight tasks, don’t expand to too many models at first; focus on keeping the whitelist concise
  • It’s recommended to use different tokens for different workspaces or project types
  • After executing each large task, check the Crazyrouter log to confirm actual consumption

FAQ

Which Provider should I choose for Cline?

Choose OpenAI Compatible.

What should be entered for Base URL?

Enter https://api.crazyrouter.com/v1.

Do I have to write environment variables for this Cline integration method?

Usually not. The standard VS Code integration generally only requires entering Base URL, API Key, and Model ID in the Cline settings interface.

Why should I create a Git snapshot the first time?

Because Cline can truly read and write files and execute commands as an agent. Creating a snapshot first makes reviewing and reverting changes much easier. Start with claude-opus-4-8. Because Cline actually operates in your workspace. It’s most reliable to verify with read-only or small-scope tasks at first before going live.
If you value integrated agent experience within VS Code more, Cline is more suitable for being a “true code agent” compared to Cursor’s BYOK approach.