跳转到主要内容
Kilo Code is a VS Code extension for AI-assisted development. It supports both its own hosted provider and third-party OpenAI-compatible APIs. This tutorial covers the OpenAI Compatible approach for connecting Qhaigc.

Prerequisites

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

Configuration Steps

1

Open the Kilo Code panel

In VS Code, open the Kilo Code panel from the Activity Bar.
2

Open settings

Navigate to the settings or provider configuration section within the Kilo Code panel.
3

Select OpenAI Compatible as the provider

In the API Provider dropdown, select OpenAI Compatible. This bypasses Kilo’s own login flow and lets you point directly to Qhaigc’s endpoint.
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-)
Modele.g. gpt-4o or claude-opus-4-20250514
5

Save and test

Save the configuration, then start a new conversation to verify Qhaigc responds correctly.

Verifying the Connection

Your setup is working when:
  • The configuration saves without errors
  • A coding conversation returns a response from Qhaigc
  • No provider authentication or model unavailability errors appear

Frequently Asked Questions

Should I use Kilo’s built-in provider instead? Kilo Code’s built-in provider uses Kilo’s own hosted service. The OpenAI Compatible approach described in this tutorial connects directly to Qhaigc’s API. Choose whichever fits your workflow — this tutorial only covers the OpenAI Compatible path. The connection failed — what should I check? Check each field in order: API Provider (should be OpenAI Compatible), Base URL (https://api.qhaigc.net/v1), API Key (your sk- prefixed key), and Model (a valid model ID). Then verify that your network can reach api.qhaigc.net.

References