跳转到主要内容
Cline is a VS Code extension that acts as an autonomous AI coding assistant. It natively supports OpenAI-compatible providers, which means you can connect Qhaigc without any workarounds.

Prerequisites

  • VS Code with the Cline extension installed
  • A Qhaigc API key — get one from the API Tokens page

Configuration Steps

1

Open the Cline panel

In VS Code, open the Cline panel from the Activity Bar or via the Command Palette.
2

Open provider settings

Click the settings icon in the Cline panel to open the provider configuration screen.
3

Select OpenAI Compatible as the API provider

In the API Provider dropdown, select OpenAI Compatible.
4

Enter your Qhaigc connection details

Fill in the following fields:
FieldValue
Base URLhttps://api.qhaigc.net/v1
API KeyYour Qhaigc API key (starts with sk-)
Model IDe.g. gpt-4o or claude-opus-4-20250514
5

Validate and save

Use Cline’s built-in validation to test the connection. If the check passes, save your settings.
6

Start a task

Send a message or coding task in the Cline panel to confirm the model responds as expected.

Verifying the Connection

Your setup is working when:
  • The validation check completes without authentication errors
  • You can start a conversation or coding task in the Cline panel
  • Cline returns a response from Qhaigc’s model

Frequently Asked Questions

The connection fails — what should I check first? Check that the Base URL is https://api.qhaigc.net/v1, that your API key is correct, and that your Model ID matches an available model. Then confirm your network can reach api.qhaigc.net. No models appear automatically — how do I pick one? Enter the model ID manually in the Model ID field. Cline’s OpenAI Compatible provider does not auto-populate models from the API; you specify the model name directly.

References