Skip to main content
Cline is an AI coding agent that lives in your editor and terminal. It can read files, write code, run terminal commands, use a browser, and help you build features through natural conversation, ensuring you’re always in control, as every action requires your explicit approval. It works across all major coding environments, VS Code, Cursor, Windsurf, Void, JetBrains, and the Cline CLI, so you can keep your existing stack without switching. To get started, you’ll need to connect Cline to an external LLM API. In this guide, we’ll show you how to integrate SiliconFlow’s APIs into Cline, giving you access to frontier coding models like GLM-5.1, MiniMax M2.5, and Kimi K2.5 at cost-effective pricing.

Step 1: Prerequisites

Get Your SiliconFlow API Key

Before you begin, ensure you have a valid SiliconFlow account:
  • Register a SiliconFlow account at https://cloud.siliconflow.com/. You can sign up with Google or GitHub.
  • Log in and navigate to API Keys in the dashboard.
  • Click 🔑Create API Key and add a name to your key to help you identify it later, then confirm to create it.
  • Click the API key to copy it automatically.
Please keep your API key in a safe place, as you’ll need it to configure Cline in the next step.
Cline1

Step 2: Install Cline

Next, install the Cline extension in your development environment.
  1. Visit the official Cline website: https://cline.bot
  2. Click Install Cline in the top-right corner.
  3. Choose your preferred IDE (e.g., VS Code) and proceed with installation.
  4. When prompted, allow the link to open in the associated application.
  5. The VS Code extension page will open automatically; Click Installto proceed.
In this guide, we demonstrate the setup process using VS Code. For installation details on other environments like Cursor, Windsurf, JetBrains, etc., please refer to the official Cline documentation: https://docs.cline.bot/getting-started/installing-cline
Cline2
Cline3

Step 3: Configure SiliconFlow APIs

  1. Open Cline in VS Code: After installing the Cline extension, you will find the Cline icon in the Activity Bar on the left side of VS Code and click the icon to open the Cline chat interface.
    Cline4
  2. Click the ⚙️ Settings (gear icon) in the top-right corner to configure your API provider
    • API Provider: OpenAI Compatible
    • Base URL: https://api.siliconflow.com/v1
    • OpenAI Compatible API Key: Paste Your SiliconFlow API Key Here
    • Model ID: Enter the model you want to use, for example, zai-org/GLM-5.1. You can browse the full model list at SiliconFlow’s model library
      Cline5
  3. Customize model configuration (optional)
Cline allows you to customize model behavior further. For example, you can configure:
  • Support Images
  • Enable R1 message format
  • Context window size
  • Max output tokens
  • Temperature
  • Input and output pricing reference
It also supports different models for different modes:
  • Plan Mode model
  • Act Mode model
This allows you to use a cheaper planning model and a stronger coding model for execution.
Cline6

Step 4: Start Building with Cline

Once your SiliconFlow API is configured, you’re ready to start building with Cline.

Before Using: Two Things You Need to Know

Plan Mode vs Act Mode

At the bottom of the Cline panel, you’ll see a toggle button that switches between two modes:
  • Plan mode: In this mode, Cline only “talks”. It analyzes your request and walks you through its approach, but won’t create or modify any files. Use this when you want to discuss requirements or clarify your idea before writing any code.
  • Act mode: Cline starts creating files and writing code. Once you’ve aligned on the approach in Plan mode, click the toggle to switch to Act and Cline will begin proposing actual file changes.

Auto-Approve Settings

By default, Cline asks for your explicit approval before every file creation, file edit, or terminal command. If you’d like Cline to handle certain actions autonomously, you can configure this in the auto-approve settings, for example, allowing Cline to read files or run terminal commands without prompting you each time. Now, you’re good to go! Start building your projects with Cline powered by SiliconFlow APIs.
Cline7

Which Model Should I Start With?

Based on Cline OpenRouter monthly usage, here are the most-used models by Cline users right now:
Cline8
Top open-source models on this list are available directly on SiliconFlow, including MiniMax M2.5, GLM 5, Step 3.5 Flash, Kimi K2.5, and DeepSeek V3.2, so you can start with what the Cline community is already using at cost-effective pricing. Also, each model card provides key information such as: Context window, Pricing, Precision, Supported modalities, Feature capabilities, etc., to help you find the best fit for your project.
Cline9
Cline10

Already Using OpenRouter?

If you’re managing models across multiple platforms, you can now connect your SiliconFlow API key to OpenRouter using BYOK to get a unified workflow without switching between accounts. Once connected:
  • Requests draw from your SiliconFlow balance first
  • Billing and rate limits stay in your SiliconFlow account
  • OpenRouter’s fallback routing still works to improve reliability
Bonus: OpenRouter waives platform fees on your first 1M BYOK requests per month.
Cline11

Resources

Cline

OpenRouter

SiliconFlow