更新日: 2026-06-23Cline is a strong agent-style coding extension for VS Code, especially for file edits, terminal execution, step-by-step planning, and multi-turn code changes. For Crazyrouter, the recommended path is Cline’s official
OpenAI Compatible provider.
Overview
With the OpenAI Compatible provider, Cline can send its agent traffic to Crazyrouter:- recommended protocol:
OpenAI-compatible API - base URL:
https://api.crazyrouter.com/v1 - auth format:
sk-...token - recommended default models:
claude-opus-4-8orgpt-5.5
Best For
- users who want an agent-style coding workflow inside VS Code
- code modification flows powered by Crazyrouter’s multi-model access
- teams that want IDE agent traffic separated from CLI traffic
- developers who want Claude, GPT, and other models behind one gateway
Protocol Used
Recommended protocol:OpenAI-compatible API
In Cline settings, use:
API Provider:OpenAI CompatibleBase URL:https://api.crazyrouter.com/v1API Key: yoursk-...Model ID: the model you want to use
https://api.crazyrouter.comhttps://api.crazyrouter.com/v1/chat/completions
Unlike Claude Code, Codex, or Aider, the normal Cline-in-VS-Code path usually does not require shell environment variables. In most cases, you only need to enter
Base URL, API Key, and Model ID in the Cline settings UI.Prerequisites
Suggested starter allowlist:
claude-opus-4-8gpt-5.5gemini-3.1-pro
Full Install Path By Operating System
Recommended Windows Path
The most reliable Windows setup is:Git + VS Code + install Cline from the marketplace + enter Crazyrouter settings directly in Cline.
Recommended order:
- Install Git
- Install VS Code
- Install Cline from the VS Code marketplace
- Create a Cline-specific Crazyrouter token
- Open your repo and take a Git snapshot first
- Fill in
OpenAI Compatible,Base URL,API Key, andModel IDinside Cline
code --version is not available but VS Code itself opens normally, Cline can still work fine. You just will not be able to open folders from the terminal with code yet.
Recommended macOS Path
The smoothest macOS setup is usually:Xcode Command Line Tools + Homebrew + Git + VS Code + install Cline from the marketplace.
Recommended order:
- Install Xcode Command Line Tools
- Install Homebrew if needed
- Install Git
- Install VS Code
- Install Cline in VS Code
- Enter the Crazyrouter settings directly inside Cline
code command, run Shell Command: Install 'code' command in PATH from the VS Code command palette, then verify:
Linux Note
Linux users can generally follow the same pattern: install Git, install VS Code, then install Cline from the extension marketplace. A common Ubuntu / Debian path is:Detailed Install Walkthrough
1
Step 1: Install Git
If Git is not installed yet, install it first.Recommended one-time identity setup:
- Windows PowerShell
- macOS
- Ubuntu / Debian
2
Step 2: Install VS Code
Cline is most commonly used 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
In VS Code:
- Press
Ctrl/Cmd + Shift + X - Search for
Cline - Click Install
- Open Cline from the activity bar or from the command palette with
Cline: Open In New Tab
Running extensions might..., allow it.If you do not see the Cline icon, restart VS Code and check again.4
Step 4: Create a Cline-specific token
In Crazyrouter, create a token named something like
cline. For the first pass, allow only:claude-opus-4-8gpt-5.5gemini-3.1-pro
The standard Cline-in-VS-Code path usually stores the API key in the UI rather than through shell env vars. The most important setup decisions here are a dedicated token and a narrow allowlist.
5
Step 5: Prepare the repo before the first real run
Cline can edit files and run commands, so take a repo snapshot before you trust it with real work.If this directory is not a Git repo yet:If it is already an existing repo, inspect the current state first:
6
Step 6: Enter the Crazyrouter settings in Cline
In the Cline settings panel, enter:
API Provider:OpenAI CompatibleBase URL:https://api.crazyrouter.com/v1API Key: yoursk-...Model ID: start withclaude-opus-4-8
Verify button, click it first to confirm the connection. If not, you can validate with a small read-only prompt instead.For the first pass, validate with only one model rather than switching across many models immediately.7
Step 7: Run the first validation
Recommended validation order:
Read the current workspace README and summarize it without changing any files.Point out the 3 files that are most worth reviewing first.Fix one obvious typo in the README only and show the diff.
8
Step 8: Widen permissions gradually
Only after the read-only and tiny-edit path is stable should you move to:
- small multi-file changes
- low-risk command execution
- larger agent-style refactors
Recommended Model Setup
Recommended rollout: get the workflow stable on
claude-opus-4-8 first. If you also want an OpenAI-compatible baseline, add gpt-5.5 second.
Token Setup Best Practices
Verification Checklist
-
git --versionworks - VS Code is installed correctly
- if you want terminal repo opening,
code --versionalso works - Cline is installed and opens correctly
- Cline is set to the
OpenAI Compatibleprovider -
Base URLishttps://api.crazyrouter.com/v1 -
API Keyis entered correctly -
Model IDis a real allowed model - the first read-only task succeeds
- file edits or command flows work when expected
- Crazyrouter logs show the matching requests
Common Errors And Fixes
Performance And Cost Tips
- start with read-only tasks and small edits on first setup
- use
claude-opus-4-8orgpt-5.5for complex refactors - avoid widening the model list too early; keep the first-pass allowlist narrow
- use different tokens for different workspaces or project types
- after large tasks, inspect Crazyrouter logs to see the real cost pattern
FAQ
Which provider should I choose in Cline?
ChooseOpenAI Compatible.
What base URL should I use?
Usehttps://api.crazyrouter.com/v1.
Do I have to set environment variables for this Cline path?
Usually no. The normal VS Code path generally works by enteringBase URL, API Key, and Model ID directly in Cline’s settings UI.
Which model should I try first?
Start withclaude-opus-4-8.
Why should I take a Git snapshot before the first real task?
Because Cline is a real coding agent that can edit files and run commands. A snapshot makes review and rollback much easier.Why should I avoid broad permissions immediately?
Because the safest rollout pattern is read-only first, then tiny edits, then wider execution scope only after the integration is clearly stable.If you want a true agent workflow inside VS Code, Cline is usually a better fit than Cursor’s BYOK path.