VS Code Setup Guide

Connect VS Code + Cline to the AI API Proxy with OpenAI Compatible settings. After setup, AI can read and edit code, write commands, and explain errors directly in VS Code.

SettingValueNotes
API ProviderOpenAI CompatibleCline officially supports OpenAI-compatible providers.
Base URLhttps://jzstoken.com/api/v1Do not enter the full /chat/completions path.
API Keysk-xxxxxxxxPaste your complete Key.
Model IDCopy the complete model name from the model listAn incorrect value here causes most Model Not Found errors.

1. Prerequisites

2. Install the Cline Extension

  • Open VS Code and select Extensions in the left sidebar.
  • Search for Cline and click Install.
  • After installation, the Cline icon appears in the left sidebar.
  • If the icon does not appear, restart VS Code.

3. Open Cline Settings

Select the Cline icon in the left sidebar, then open Settings in the Cline panel.

4. Enter the API Details

  • API Provider: Select OpenAI Compatible.
  • Base URL: Enter https://jzstoken.com/api/v1.
  • API Key: Paste your Key beginning with sk-.
  • Model ID: Enter the complete model ID, for example claude-sonnet-4-6.
  • Save the configuration and start a new task to test it.

If saving reports an error: Confirm that the Base URL is not https://jzstoken.com/api/v1/chat/completions. Cline expects the API root path, which is /api/v1.

5. Testing and Troubleshooting

SymptomResolution
Cannot enter a URLConfirm that OpenAI Compatible is selected instead of the standard official OpenAI provider.
Model Not FoundThe model ID must exactly match the model list.
Connection failedCheck the Key, Base URL, and network proxy. On a corporate or campus network, test with a phone hotspot.
Cline icon is missingRestart VS Code. If it is still missing, reinstall the extension.