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.
| Setting | Value | Notes |
|---|---|---|
| API Provider | OpenAI Compatible | Cline officially supports OpenAI-compatible providers. |
| Base URL | https://jzstoken.com/api/v1 | Do not enter the full /chat/completions path. |
| API Key | sk-xxxxxxxx | Paste your complete Key. |
| Model ID | Copy the complete model name from the model list | An incorrect value here causes most Model Not Found errors. |
1. Prerequisites
- Install VS Code: code.visualstudio.com →
- Install Git: git-scm.com/downloads →
- Windows users should restart the computer after installing Git so the environment variables take effect.
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
| Symptom | Resolution |
|---|---|
| Cannot enter a URL | Confirm that OpenAI Compatible is selected instead of the standard official OpenAI provider. |
| Model Not Found | The model ID must exactly match the model list. |
| Connection failed | Check the Key, Base URL, and network proxy. On a corporate or campus network, test with a phone hotspot. |
| Cline icon is missing | Restart VS Code. If it is still missing, reinstall the extension. |