Install VS Code + Cline and Connect It to Moyi API

VSCode does not include AI coding features by itself, so it needs an extension to connect to an LLM. Cline, formerly Claude Dev, is a popular open-source AI coding extension for VSCode. It supports custom OpenAI-compatible endpoints and can run an agent workflow through Moyi API.

New accounts start with a $0 balance — top up before your first request. Top up from $5. If a request returns 402 with "wallet balance is insufficient", your balance is empty — your base URL and key are fine. Top up and retry.

1. Install VSCode + Cline from scratch

Already have VSCode and Cline? Skip to "2. Get your Moyi API API Key".

Install VSCode

Download VSCode from the official website:

  • macOS: download the .dmg, or run brew install --cask visual-studio-code
  • Windows: download and run the .exe installer
  • Linux: download the .deb, .rpm, or .tar.gz package for your system

Install the Cline extension

In VSCode, press Command + Shift + X on macOS, or Ctrl + Shift + X on Windows and Linux, to open Extensions. Search for Cline and install the extension published by saoudrizwan.

Click the Cline icon in the Activity Bar. The first launch opens the configuration page. Choose Bring my own API Key.

2. Get your Moyi API API Key

Open the Moyi API dashboard, create an account, create an API Key, and copy it. You can also view the complete model list in the dashboard.

3. Connect to Moyi API

Connect Cline to Moyi API:

  1. Open VSCode.
  2. Click the Cline icon in the Activity Bar to open the Cline sidebar.
  3. Click the settings button in the top-right corner of the sidebar.

On the API Configuration screen:

  1. Choose OpenAI Compatible in the API Provider dropdown. The default may be OpenRouter, so make sure it is changed.
  2. Fill in:
  • Base URL: https://api.moyi-api.com/v1
  • OpenAI Compatible API Key: paste the key you created in the Moyi API dashboard
  • Model ID: enter the model you want to use
Available model IDs34 models

OpenAIGPT9

  • gpt-6.1-sol
  • gpt-6-astra
  • gpt-6-sol
  • gpt-6-luna
  • gpt-5.6-sol
  • gpt-5.6-terra
  • gpt-5.6-luna
  • gpt-5.5
  • gpt-5.4

ClaudeClaude12

  • claude-opus-5-5
  • claude-sonnet-5-5
  • claude-haiku-5-5
  • claude-fable-5-1
  • claude-opus-5
  • claude-fable-5
  • claude-sonnet-5
  • claude-opus-4-8
  • claude-opus-4-7
  • claude-opus-4-6
  • claude-sonnet-4-6
  • claude-haiku-4-5

GeminiGemini5

  • gemini-3.8-flash
  • gemini-3.7-flash
  • gemini-3.6-flash
  • gemini-3.5-flash-lite
  • gemini-3.1-pro-preview

DeepSeekDeepSeek4

  • deepseek-flash
  • deepseek-v4-flash-vision-exp
  • deepseek-v4-pro
  • deepseek-v4-flash

ZhipuGLM3

  • glm-5.3-flash
  • glm-5.3
  • glm-5.2

GrokGrok1

  • grok-4.6

Note: Because of a Cline limitation, custom providers only support the OpenAI protocol. Calling Claude models this way may lose cache, fail requests, and create unnecessary costs. Use a Claude client, or open Claude Code in the VSCode terminal, when you need Claude models.

  1. Leave Custom Headers empty.
  2. Do not enable Set Azure API version or Use Azure Identity Authentication. They are only for Azure OpenAI.
  3. Keep Model Configuration unchanged.
  4. Click Continue to finish.

4. Start using Cline

Click the plus button at the top of the Cline sidebar to create a new task. Describe what you want in natural language, such as "refactor this function to async". Cline will call the model through Moyi API, read files, edit code, and run commands as needed.

Ready? Three steps to startLog in to the console · top up · create an API key