Integrating Cline
One of the most powerful AI coding extensions for VS Code, capable of autonomously completing complex programming tasks. It connects to Calgine Tokens via the OpenAI-compatible API.
Cline is a VS Code AI coding extension that can read and write files, run terminal commands, and drive a browser autonomously — handling complete programming tasks from requirements to implementation.
Prerequisites
- Sign up at the Calgine Tokens Console.
- Go to Workspace → API Tokens, click "Add Token", and copy the API Key after creation (starts with
sk-).
| Setting | Value |
|---|---|
Base URL | https://api.calgine.com.cn/v1 |
API Key | The API token you created in the console |
Installation & Configuration
- Install the Cline extension: search for Cline in the VS Code Marketplace, or visit VS Code Marketplace.
- Open Cline settings: press
Ctrl/Cmd + Shift + P, search for and select Cline: Open in New Tab, then click the Settings (gear icon) in the top-right corner. - Fill in the API configuration:
- API Provider: select
OpenAI Compatible - Base URL:
https://api.calgine.com.cn/v1 - API Key: your Calgine Tokens API Key (
sk-your-token) - Model: the model you want to use, e.g.,
gpt-4oorclaude-opus-4-5-20251101
- API Provider: select
- Click Save to save the configuration.
Verify the Setup
Back in the Cline panel, describe a simple task (e.g., "read the README in the current directory and summarize it"). If Cline analyzes and executes it normally, the setup is complete.
Recommended Models
| Scenario | Recommended Model |
|---|---|
| General coding tasks | gpt-4o |
| Complex agent tasks | claude-opus-4-5-20251101 |
| Fast, lightweight tasks | gpt-4o-mini |
Notes
Note
Cline's agent mode reads/writes files and runs commands automatically. Use it only in trusted project directories and review each step carefully.
- When using
claude-*models, you can also switch the API Provider toAnthropicwith Base URLhttps://api.calgine.com.cn/anthropic - Cline supports custom system prompts — you can configure project-level rules in settings
Next Steps
- Roo Code: An enhanced fork of Cline with multi-mode switching
- Rate Limits: Watch your quota during high-frequency agent calls