Content updated: 2026-06-09Cline 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-8orgpt-5.5
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 CompatibleBase URL:https://api.crazyrouter.com/v1API Key: yoursk-...Model ID: the model name you want to use
https://api.crazyrouter.comhttps://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-8gpt-5.5gemini-3.1-pro
Complete Installation Steps by Operating System
Recommended Path on Windows
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:
- Install Git
- Install VS Code
- Install Cline from the VS Code extension marketplace
- Create a Cline-dedicated token in Crazyrouter
- Open your repository and make a Git snapshot first
- Fill in
OpenAI Compatible,Base URL,API Key,Model IDin Cline’s settings
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.
Recommended Path on macOS
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:
- Install Xcode Command Line Tools
- Install Homebrew (if you don’t already have it)
- Install Git
- Install VS Code
- Install Cline in VS Code
- Fill in Crazyrouter parameters directly in Cline settings
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:
- Windows PowerShell
- macOS
- Ubuntu / Debian
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.
- Windows PowerShell
- macOS
- Ubuntu / Debian
3
Step 3: Install the Cline extension
After opening VS Code:
- Press
Ctrl/Cmd + Shift + Xto open the extension marketplace - Search for
Cline - Click Install
- After installation, click the Cline icon in the sidebar, or press
Ctrl/Cmd + Shift + Pand then runCline: Open In New Tab
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-8gpt-5.5gemini-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 CompatibleBase URL:https://api.crazyrouter.com/v1API Key: yoursk-...Model ID: initially useclaude-opus-4-8
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:
- Have Cline perform a read-only task:
Only read the current workspace README and summarize the main points, without modifying any files - Then let it do a low-risk analysis:
Point out the top 3 files in the current repository that are most worth checking first - Finally try a small-scope modification:
Modify only one obvious typo in the README and show the diff
8
Step 8: Gradually enable stronger permissions step by step
Once read-only and small-scope changes are stable, then gradually try:
- Multi-file small-scope modifications
- Allowing it to execute low-risk commands
- Finally have it perform more complex proxy-based refactoring
Recommended Model Configuration
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 --versionis working properly - VS Code is installed correctly
- If you need to open projects from the terminal,
code --versionis also working - Cline extension is installed and can be opened
- Cline has selected the
OpenAI Compatibleprovider -
Base URLis set tohttps://api.crazyrouter.com/v1 -
API Keyis filled in correctly -
Model IDhas 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-8orgpt-5.5for 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?
ChooseOpenAI Compatible.
What should be entered for Base URL?
Enterhttps://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 enteringBase 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.What is the first recommended model?
Start withclaude-opus-4-8.
Why is it not recommended to grant large permissions at first?
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.