Skip to Content

Cline Configuration

Cline  is a popular VS Code AI coding plugin (formerly Claude Dev). By integrating with HaoAI, you can use a variety of models.

Prerequisites

Configuration Steps

Step 1: Install Cline

Search for Cline in the VS Code Extension Marketplace and install it.

Install Cline

Step 2: Open Settings

Click the Cline icon in the left activity bar to open the Cline panel, then click the Settings icon in the top right corner.

Open Cline Settings

Step 3: Fill in Configuration and Save

Fill in the following information on the API Configuration page, then click Done in the top right corner:

FieldValue
API ProviderOpenAI Compatible
Base URLhttps://api.hao.ai/v1
OpenAI Compatible API KeyYour HaoAI API Key
Model IDopenai/gpt-4.1 (or another model)

Fill in configuration

Cline also supports Anthropic and Gemini protocols. The corresponding Base URLs are https://api.hao.ai/anthropic and https://api.hao.ai/gemini.

For recommended models, see the Model Marketplace .

FAQ

Q: Model not supported error

Make sure the Model ID format is correct. When using OpenAI Compatible, the model name must include the vendor/ prefix, e.g. openai/gpt-4.1.

Q: Unable to use Tool Use feature

Switch the API Provider to Anthropic and change the Base URL to https://api.hao.ai/anthropic for full Tool Use support.