NezhaGateNezhaGate
← 전체 가이드

Cline + NezhaGate: Code with DeepSeek, Kimi, GLM, Qwen

Set up Cline in VS Code with NezhaGate as an OpenAI-compatible provider and code with DeepSeek, Kimi, GLM, Qwen or Claude on one key. Cost tips included.

약 10분 · 기준 버전: Cline 4.1

이 가이드는 아직 한국어로 제공되지 않아 영어판을 보여 드립니다.

What you need

Step 1: Sign up for NezhaGate and create an API key

  1. Open nezhagate.com and click Sign up free in the top-right corner. Email works, and so does one-click sign-in with Google or GitHub.
  2. Go to Console → API Keys. Under Create API Key, name the key (for example cline). Cline calls the model many times in a row, so set a Per-Key Limit (say 5) to keep a runaway task from overspending. Then click Create Key.
  3. A key starting with sk- appears. Copy it right away: it is shown only once.
[Screenshot: Console → API Keys, highlighting the Per-Key Limit field and the Create Key button]
Check and top up your balance on the Billing page. You pay only for what you use, and failed requests are never billed. Per-model rates are on the pricing page.

Step 2: Install Cline in VS Code

  1. Open VS Code and press Ctrl+Shift+X (Cmd+Shift+X on macOS) to open Extensions.
  2. Search for Cline, make sure the publisher is saoudrizwan, and click Install.
  3. When it finishes, click the new Cline icon in the left activity bar to open the Cline panel.

Prefer the command line? This does the same:

Terminal
code --install-extension saoudrizwan.claude-dev
[Screenshot: the VS Code Extensions view with Cline in the results and the Install button marked]

Step 3: Point Cline at NezhaGate

  1. On first launch Cline asks How will you use Cline?. Choose Bring my own API key and click Continue to reach the provider setup. (To change it later: the gear at the top right of the Cline panel → API Configuration.)
  2. API Provider: search for and select OpenAI Compatible.
  3. Base URL: enter the address below.
Base URL
https://nezhagate.com/v1
  1. OpenAI Compatible API Key: paste the key from step 1.
  2. Model ID: the list loads by itself; pick deepseek-v4.1-flash. If the model you want is not listed, choose Use custom model ID… and type its ID.
  3. Expand MODEL CONFIGURATION:
    • Supports Images: untick it for DeepSeek, GLM, Kimi and Qwen (they do not read images); keep it ticked for Claude.
    • Context Window Size: keep the default 128000.
    • Input Price / 1M tokens and Output Price / 1M tokens: optionally copy them from the pricing page (US dollars per million tokens). They only drive the cost Cline displays, not what you are billed; left empty, Cline shows $0.
  4. Click Continue (or close the settings) to save.
[Screenshot: the OpenAI Compatible settings with API Provider, Base URL, API key, Model ID and MODEL CONFIGURATION marked in order]
Stop the address at /v1; do not add /chat/completions.

Step 4: Run your first task

  1. Open a folder in VS Code (an empty one is fine).
  2. Next to Cline's task box (Type your task here...), pick a mode: Plan works out an approach with you first; Act gets straight to changing code. Use Act for this first run.
  3. Type Create hello.py that prints Hello, NezhaGate and press Enter.
  4. Before Cline writes a file or runs a command it asks for your approval. Look over what it proposes and approve it. When it is done, hello.py is in your folder.
[Screenshot: Cline running the first task, with the Plan / Act switch and the approval button marked]

Recommended models

Cline relies on tool calling (function calling) to read and write files and run commands. All of these support it:

Model IDBest forNotes
deepseek-v4.1-flashEveryday coding at the lowest costThinks before acting by default; cheap enough for most tasks.
glm-5.3Coding and agent tasksThe GLM-5 flagship, built for coding and agent workflows; always thinks first.
kimi-k3Big projects, long contextStrong long-context understanding and tool use; supports prompt caching.
qwen3.7-maxHard reasoning and codingDependable in English and Chinese; supports prompt caching.
claude-opus-5The hardest engineering workThe steadiest on complex engineering and agents; priced higher.
A thrifty setup: tick Use different models for Plan and Act modes, plan with kimi-k3 or glm-5.3, and let deepseek-v4.1-flash do the work in Act mode.

About cost

Common problems and errors

What you seeWhat to do
The Model ID list fails to load, and an Enter Model ID... box appears with an errorCheck the Base URL and key. You can also type the model ID straight into the box, for example deepseek-v4.1-flash.
401The key is wrong or was deleted. Create a new one in the console and copy it.
402Your balance ran out, or the key hit the limit you set. Top up on the Billing page or raise the key's limit.
404The Base URL ends in /chat/completions. Change it to https://nezhagate.com/v1.
400 mentioning an imageThe model cannot read images: untick Supports Images under MODEL CONFIGURATION.
Cline keeps failing or tool calls breakSwitch to one of the models above. Image and video models do not work in Cline.
Cost always shows $0Expected when no prices are filled in; your real spend is in the NezhaGate console.

Still stuck? See the API docs or the FAQ.

아직 API 키가 없나요?

가입 후 콘솔에서 키를 만드세요. 사용한 만큼만 과금되며 실패한 요청은 과금되지 않습니다.

API 키 받기 → 요금

다른 가이드: SillyTavern · Cherry Studio