# Qoder with QCode: Windows & macOS walkthrough

Follow the 12 steps below to install the Qoder desktop app on Windows 11 or macOS, enter your QCode Base URL and `cr_` API key under Settings → Models (BYOK), and start using Claude, GPT, and Chinese models.


**Short answer**: After installing Qoder 0.5.17 and signing in to a personal Qoder account, open **Settings → Models → Add model**. Under **Provider → Custom**, choose **Anthropic Compatible** with `https://api.qcode.cc/api` for Claude, or choose **OpenAI Compatible** (**Chat Completions API** / **Responses API**) with `https://api.qcode.cc/openai/v1` for GPT and Chinese models, enter your `cr_` QCode API key and Model ID, and click **Validate and add model**.

| Item | Fill in |
|---|---|
| Base URL (Claude / Anthropic) | `https://api.qcode.cc/api` |
| Base URL (GPT & Chinese models / OpenAI) | `https://api.qcode.cc/openai/v1` |
| Where to configure | `Settings → Models → Add model → Custom` |
| Key format | `cr_xxxxxxxx` |
| Example models | `claude-sonnet-5-5` or `gpt-6.2-sol` |

Checked on 2026-11-22 · Qoder 0.5.17 · Windows 11


Qoder is a family of coding agent products that includes the new Qoder desktop app, Qoder CLI (`qoder`), Qoder IDE, and a JetBrains plugin. Both the Qoder desktop app (since 0.1.8) and Qoder CLI (since 1.1.50) support bringing your own API key (BYOK) via custom endpoints on personal plans. On first launch, the desktop app requires signing in to a personal Qoder account; once signed in, you can configure QCode under **Settings → Models**.

Note that **Qoder IDE** in the same product family is a separate application that lists preset providers only, and **QoderWork** does not offer a custom model entry. This walkthrough covers the **Qoder desktop app** and **Qoder CLI**, both of which support custom Base URLs.


- **Applies to**: Windows 10 / 11 (64-bit) and macOS; the screenshots were taken on Windows 11
- **Software version**: Qoder 0.5.17 (X64 User installer)
- **Screenshots updated**: 2026-11
- **Time needed**: 15 minutes
- **You will need**: a QCode API key starting with `cr_`; a personal Qoder account; access to `qoder.com/download`


> **On a Mac?** Follow the same steps. The screenshots were taken on Windows 11, and Qoder on macOS has the same screens and settings. Download the macOS version from the same official page, press ⌘ Cmd wherever a step says Ctrl, and find the app's menus in the menu bar at the top of the screen.


- A Windows 10 or Windows 11 (64-bit) PC or a Mac; the installer is about 265 MB and takes about 829 MB once installed — the User installer needs no administrator privileges
- A personal Qoder account ready (or ready to create one), since Qoder 0.5.17 requires signing in on first launch before you can reach **Settings → Models** to configure custom endpoints
- A QCode.cc account with your `cr_` API key already copied from the [Dashboard](https://qcode.cc/en/dashboard). No account yet? [Sign up](https://qcode.cc/en/auth/sign-up?utm_source=docs.qcode.cc&utm_medium=tut_before&utm_campaign=knowledge_base&src=docs-ide-qoder-before) first, pick a plan on the [pricing page](https://qcode.cc/en/pricing?utm_source=docs.qcode.cc&utm_medium=tut_before&utm_campaign=knowledge_base&src=docs-ide-qoder-before), then create a key in the [Dashboard](https://qcode.cc/en/dashboard).
- Network access to `qoder.com/download` (or the China site `qoder.com.cn/download`), `qcode.cc`, and `api.qcode.cc` (in Asia / Mainland China you can swap the API domain to `asia.qcode.cc`)
- About 15 uninterrupted minutes


## Download and install

The Qoder desktop app ships as a standalone Windows `.exe` installer (macOS 12+ and Linux are also supported) and requires no extra runtime. The global download page is <https://qoder.com/download> (Chinese page: <https://qoder.com/zh/download>), and the China site Qoder CN download page is <https://qoder.com.cn/download>.

Expand **Windows (Windows 10+)** on the download page to see two Windows installers:

- **X64 (User)** (marked `推荐` / Recommended, best choice for most users): downloads `Qoder-win-x64-user.exe` (about 265 MB), installs to your user folder `C:\Users\…\AppData\Local\Programs\Qoder`, and needs no administrator privileges.
- **X64 (System)**: installs for all users on the machine and requests administrator privileges during setup.

The global app and Qoder CN are two separate applications with separate documentation and potentially different version numbers — **do not mix their installers**. The global desktop client has built-in Chinese/English UI switching, and both editions offer the exact same custom model options: **Anthropic Compatible** and **OpenAI Compatible**. Check the download notes for your region first:

**Other regions (Europe / Japan / North America)**

- Open [qoder.com/download](https://qoder.com/download) (or the Chinese page [qoder.com/zh/download](https://qoder.com/zh/download)), expand **Windows (Windows 10+)** on the **Qoder** desktop card, and download **X64 (User)** (marked Recommended).
- Use the default `api.qcode.cc` endpoint for QCode, or switch to `us.qcode.cc` (North America / Europe) or `asia.qcode.cc` (Asia) depending on your location.


**Mainland China**

- You can open the global download page [qoder.com/zh/download](https://qoder.com/zh/download) (or [qoder.com/download](https://qoder.com/download)) and download **X64 (User)**. If you prefer the standalone China edition or find the global site slow, download Qoder CN from [qoder.com.cn/download](https://qoder.com.cn/download) instead (do not mix global and Qoder CN installers).
- When configuring QCode, swap the API domain to the Asia ingress point `asia.qcode.cc` (same paths, same API key).


**Russia / Iran / Arab countries**

- Open the official download page [qoder.com/download](https://qoder.com/download) (or [qoder.com/zh/download](https://qoder.com/zh/download)), choose **X64 (User)**, and install it.
- Use the default QCode ingress point `api.qcode.cc`, or switch to `us.qcode.cc` / `asia.qcode.cc` if latency is lower.


## Follow the screenshots: install and configure on Windows 11

The 12 steps below each do one thing. Steps 1–7 follow real Windows 11 screenshots (captured in Chinese UI) for downloading, installing, signing in, and checking the version, where the orange numbers on the screenshots match the circled numbers in the text one to one. Once you sign in to your own personal Qoder account, follow the text instructions in steps 8–12 to enter your QCode Base URL and API key under **Settings → Models** and start chatting.



### Open the official download page and choose "X64 (User)"

Open [qoder.com/download](https://qoder.com/download) in a browser (the screenshot shows the Chinese page [qoder.com/zh/download](https://qoder.com/zh/download), which has the same layout). On the **Qoder** desktop card, click ① `Windows` (Windows 10+) to expand the options, then click ② `X64 (User)` (marked `推荐` / Recommended) to start downloading. For a personal PC, `X64 (User)` needs no administrator privileges; choose `X64 (System)` below it only if you need to install Qoder for every user on the machine.

![Qoder official download page qoder.com/zh/download: on the Qoder desktop card, expand the Windows (Windows 10+) dropdown (1) and select the recommended X64 (User) installer (2)](https://docs.qcode.cc/static/images/tut/qoder/202611/zh/01-download-page.webp)


Done right you will see: after clicking `X64 (User)`, the browser's download icon at the top right animates and begins downloading `Qoder-win-x64-user.exe` (about 265 MB).


**Stuck? The download is slow or the global download page will not open**

Refresh the page and try again. Users in Mainland China who want the China edition can download Qoder CN from [qoder.com.cn/download](https://qoder.com.cn/download). Note that the global client and Qoder CN are separate apps — do not mix their installers — though the custom model steps afterwards are identical.




### Wait for the installer to finish downloading and open it

The installer is about 265 MB, so give it a moment to finish. Press `Ctrl + J` to open the browser downloads panel, confirm the file name at ① is `Qoder-win-x64-user.exe`, and click `打开文件` (Open file) below it to launch the setup wizard.

![Browser downloads panel showing the completed installer Qoder-win-x64-user.exe and the Open file link underneath (1)](https://docs.qcode.cc/static/images/tut/qoder/202611/zh/02-download-done.webp)


Done right you will see: the progress bar disappears, the panel shows `Qoder-win-x64-user.exe` with the blue `打开文件` (Open file) link, and clicking it opens the Qoder Setup window.


**Stuck? "Windows protected your PC" pops up when opening the installer**

This is a standard Windows SmartScreen notice for newly downloaded installers. Confirm the file came from the official Qoder download page and that the digital signature publisher is `BRIGHT ZENITH PRIVATE LIMITED`, then click **More info** (`更多信息`) → **Run anyway** (`仍要运行`) to enter the setup wizard.




### Check the install location and click "Install"

Running the installer goes straight to the "Select Destination Location" screen (`选定安装位置`) — there is no separate license screen and no administrator elevation prompt. Check that the default path at ① points to your user directory (`C:\Users\…\AppData\Local\Programs\Qoder`) and the bottom left shows `Qoder 0.5.17`; keep the default path and click ② `安装(I)` (Install) at the bottom right.

![Qoder setup wizard destination location screen: default path under the current user folder AppData\Local\Programs\Qoder (1), version Qoder 0.5.17 at the bottom left, and the Install button at the bottom right (2)](https://docs.qcode.cc/static/images/tut/qoder/202611/zh/03-installer-ready.webp)


Done right you will see: installation begins immediately after clicking `安装(I)` (Install) and finishes in about a minute.




### Finish installation and launch Qoder

When installation finishes, the top of the window says `Qoder 安装完成` (Completing the Qoder Setup Wizard) and a desktop shortcut is created automatically. Confirm ① `运行 Qoder(R)` (Launch Qoder) is checked, then click ② `完成(F)` (Finish) at the bottom right to close the wizard and launch Qoder for the first time.

![Qoder installation complete screen: Launch Qoder checked by default (1) and the Finish button highlighted at the bottom right (2)](https://docs.qcode.cc/static/images/tut/qoder/202611/zh/04-install-finish.webp)


Done right you will see: the setup wizard closes and Qoder's first-launch sign-in card appears in the center of the desktop a few seconds later.




### First launch: confirm the UI language and click "Sign in now"

On first launch, Qoder 0.5.17 shows a welcome sign-in card matching your system language; to switch between Chinese and English, use the ② `中文` language dropdown. The card only has ① `立即登录` (Sign in now) and no "Skip" or "Sign in later" option (closing the card exits Qoder). Click ① `立即登录` (Sign in now) to continue.

![Qoder 0.5.17 first-launch sign-in card: only the green Sign in now button (1) and the language dropdown on the right (2) appear at the bottom, with no skip button](https://docs.qcode.cc/static/images/tut/qoder/202611/zh/05-first-launch-login.webp)


Done right you will see: clicking `立即登录` (Sign in now) automatically opens Qoder's official sign-in page in your browser.


**Stuck? Clicking "Sign in now" fails to open the webpage or shows a network error**

Click the login network diagnostics link (`登录网络诊断`) at the bottom of the sign-in card to check local connectivity, then click `立即登录` (Sign in now) again.




### Sign in to your personal Qoder account in the browser

Finish signing in to your personal Qoder account on the browser sign-in page: choose Google or GitHub sign-in at ①, or enter your email at ② and click `继续登录 Qoder 桌面端` (Continue to Qoder Desktop). If you do not have an account yet, click `立即注册` (Sign up) below to create one. Once authorization succeeds, the browser prompts you to return to the Qoder desktop app.

![Official Qoder sign-in page opened in the browser: Google and GitHub third-party sign-in buttons above (1), and email input with the Continue to Qoder Desktop button below (2)](https://docs.qcode.cc/static/images/tut/qoder/202611/zh/06-login-boundary.webp)


Done right you will see: after the browser authorizes and jumps back to the desktop app, the sign-in card disappears and the main Qoder window opens with access to **Settings**.


**Stuck? The browser did not redirect back to Qoder after signing in**

Check below the browser address bar for an "Open Qoder?" confirmation prompt and allow it to return to the desktop app. If no prompt appeared, go back to Qoder's sign-in card and click `立即登录` (Sign in now) once more. Also verify that you signed in with a personal Qoder account that supports custom models (BYOK).




### Verify the installed Qoder version

The Qoder desktop app has supported custom Base URLs since version 0.1.8. If you need to verify your local version (you cannot open "About" inside the app before signing in), open Windows **Settings → Apps → Installed apps**, search for `Qoder`, and check ① to see `Qoder 0.5.17` (using about 829 MB). Once confirmed to be `0.1.8` or newer, return to the signed-in Qoder main window to continue setup.

![Windows Settings Apps and Installed apps list: searching Qoder shows the installed entry Qoder 0.5.17 taking 829 MB (1)](https://docs.qcode.cc/static/images/tut/qoder/202611/zh/07-about-version.webp)


Done right you will see: the list clearly shows `Qoder 0.5.17` (or newer), confirming your desktop client supports custom model configuration.




### Open "Settings → Models" and choose a custom protocol

After signing in to your personal Qoder account and entering the main window, open **Settings**, click **Models** in the left navigation bar, and click **Add model**. Open the **Provider** dropdown and pick the protocol under **Custom** that matches the models you want to use:

- **For Claude models**: choose **Anthropic Compatible**;
- **For GPT or Chinese models (GLM / Kimi / DeepSeek / Qwen)**: choose **OpenAI Compatible**, then select **Chat Completions API** under **API type** (GPT models can also use **Responses API**).

**Stuck? You cannot see "Custom" under Provider**

Confirm you are signed in to a personal Qoder account and running desktop version 0.1.8 or later (0.5.17 verified above meets the requirement). If the Custom entry still does not appear, confirm BYOK custom models are enabled for your account, or sign out and sign back in before opening **Settings → Models**.



Done right you will see: the custom model form opens on the right with fields for **Base URL**, **API key**, and **Model ID**.




### Enter the Base URL

Based on the protocol you picked in the previous step, enter the exact QCode Base URL (with **no trailing slash `/`**):

- **Anthropic Compatible (Claude, etc.)**: `https://api.qcode.cc/api`
- **OpenAI Compatible (GPT & Chinese models)**: `https://api.qcode.cc/openai/v1`

If you are in Asia / Mainland China or North America, you can replace the domain with `asia.qcode.cc` or `us.qcode.cc` while keeping the path unchanged (for example, `https://asia.qcode.cc/api` or `https://asia.qcode.cc/openai/v1`).


Done right you will see: the **Base URL** field contains the full `https://api.qcode.cc/api` or `https://api.qcode.cc/openai/v1` with no leading or trailing spaces and no extra trailing `/`.




### Paste your QCode API key

The same QCode API key starting with `cr_` works on both Anthropic and OpenAI custom endpoints (placeholder: `cr_xxxxxxxx`). Paste the full key copied from your Dashboard into the **API key** field, making sure there are no extra spaces or line breaks and no manual `Bearer ` prefix.

**Need an API key?**

If you do not have a QCode account yet, [Sign up](https://qcode.cc/en/auth/sign-up?utm_source=docs.qcode.cc&utm_medium=tut_key_step&utm_campaign=knowledge_base&src=docs-ide-qoder-key) first. If you prefer to pay by usage, buy a [Pay-as-you-go Pack](https://qcode.cc/en/pay-as-you-go?utm_source=docs.qcode.cc&utm_medium=tut_key_step&utm_campaign=knowledge_base&src=docs-ide-qoder-key) first, then create the key in the [Dashboard](https://qcode.cc/en/dashboard). Copy the whole string that starts with `cr_` and paste it back here. You can pay by credit/debit card (Visa / Mastercard), Apple Pay / Google Pay, or cryptocurrency — see [Payment methods](/docs/reference/payment-methods).



Done right you will see: the **API key** field shows masked characters and no format error appears.




### Enter the Model ID and click "Validate and add model"

Enter the exact model ID in the **Model ID** field (case-sensitive, no extra spaces). To add multiple models under the same endpoint at once, click **Add Model ID**:

- **Anthropic Compatible examples**: `claude-sonnet-5-5`, `claude-opus-5-5` (you can also use `deepseek-v4.1-flash`, `glm-5.3`);
- **OpenAI Compatible examples**: `gpt-6.2-sol`, `deepseek-v4.1-flash`, `glm-5.3`, `kimi-k3`, `qwen3.8-max`.

Set the capability options below (**Display name**, **Context window**, **Vision**, **Thinking**) as needed — leave them at defaults if unsure, enable **Vision** if the model supports image input, and enable **Thinking** with your preferred effort level for reasoning models. Click **Validate and add model** and wait for Qoder to verify the connection and save. If you want both Claude and GPT, repeat the last four steps to add the other protocol as well.

**Stuck? "Validate and add model" fails**

Check three things in order: first, make sure the protocol is not swapped — `claude-*` models only work under **Anthropic Compatible**, and putting them under OpenAI returns `model_not_available_on_endpoint`; second, if **Anthropic Compatible** fails validation with `https://api.qcode.cc/api`, try `https://api.qcode.cc/api/v1` and validate again (both hit the exact same QCode endpoint); third, verify your key starts with `cr_` with no extra spaces and copy the Model ID character for character from [qcode.cc/models](https://qcode.cc/en/models).



Done right you will see: once validation passes, the model saves automatically and appears in the **Models** list. To change a key later, click **Edit** on that entry; **Delete** removes the model.




### Select the new model in chat and send your first message

Return to the Qoder chat box, pick the custom model you just added in the model selector (for example, `claude-sonnet-5-5` or `gpt-6.2-sol`), send a short message such as `ping` or `hello`, and wait for a reply.

**Stuck? The model you just added does not appear in the model selector**

Go back to **Settings → Models** and confirm the model passed **Validate and add model** and appears in the list. If you just changed settings, close and reopen the Qoder desktop app to refresh the model list.



Done right you will see: the chat returns a normal reply within a few seconds, with no error and no endless spinner. To double-check that requests really went through QCode, open [probe.qcode.cc](https://probe.qcode.cc), paste the same QCode key, and confirm that the request appears with the matching model name.




## Verify it works

When all three of these are true, Qoder is connected to QCode:

- Qoder 0.5.17 is installed on Windows 11 and signed in with your personal account;
- In **Settings → Models**, after entering the QCode Base URL and `cr_` key, **Validate and add model** succeeded and your custom models (such as `claude-sonnet-5-5` or `gpt-6.2-sol`) appear in the list;
- Sending `ping` with that model selected returns a normal reply, and entering the same key on [probe.qcode.cc](https://probe.qcode.cc) shows that request with the matching model name.


### All done

Your Windows 11 PC now has the Qoder desktop app installed and connected to QCode, ready to use Claude, GPT, and Chinese models in chat. From here you can:

- [Endpoints and API formats](/docs/getting-started/endpoints-and-api-paths)
- [Tool compatibility overview](/docs/ide/tool-compatibility)
- [Chinese models guide](/docs/usage/cn-models)
- [Billing reference](/docs/reference/billing)
- Next: compare plans on the [pricing page](https://qcode.cc/en/pricing?utm_source=docs.qcode.cc&utm_medium=tut_done&utm_campaign=knowledge_base&src=docs-ide-qoder-done)
- Go back to your [Dashboard](https://qcode.cc/en/dashboard) to check usage and balance


## Common errors

| Error message | Why | What to do |
|---|---|---|
| `model_not_available_on_endpoint` | A `claude-*` model was added under **OpenAI Compatible** (protocol/endpoint mismatch), or you entered a model QCode does not offer (such as Gemini) | Move Claude models under **Anthropic Compatible** with `https://api.qcode.cc/api` (try `https://api.qcode.cc/api/v1` if validation fails); put GPT and Chinese models under **OpenAI Compatible** (`https://api.qcode.cc/openai/v1`) |
| `Invalid API key` | The pasted QCode API key is incomplete, has leading/trailing spaces or line breaks, or has expired / been disabled | Copy the full `cr_` key again from the [QCode Dashboard](https://qcode.cc/en/dashboard) (no spaces and no `Bearer ` prefix) and validate again; personal plan keys require starting a new plan and switching to a new key on expiration, while pay-as-you-go pack keys resume automatically when you buy another pack |
| `Failed to add model` (`添加模型失败`) | The Base URL has a trailing `/`, the OpenAI path is missing `/v1`, the Anthropic path needs `/api/v1`, the Model ID has a typo, or the network cannot reach the endpoint | Check the URL for your protocol (`https://api.qcode.cc/api` or `https://api.qcode.cc/openai/v1`, no trailing `/`); if Anthropic validation fails, try `https://api.qcode.cc/api/v1`; copy the Model ID verbatim from [qcode.cc/models](https://qcode.cc/en/models); swap the domain to `asia.qcode.cc` or `us.qcode.cc` if the connection is unstable |
| `Windows protected your PC` (`Windows 已保护你的电脑`) | Standard Windows SmartScreen warning for a newly downloaded `.exe` installer | Confirm the installer came from the official Qoder site and the publisher is `BRIGHT ZENITH PRIVATE LIMITED`, then click **More info** → **Run anyway** to continue |
| `Image and video generation are currently unavailable when using models connected with your own API key (BYOK).` | Qoder does not currently support image or video generation through custom BYOK models | This is not a QCode key or Base URL error; normal text and coding chats still go through QCode, and for image generation see QCode's [gpt-image-2 image generation guide](/docs/usage/image-2) |

## FAQ

### Why do I have to sign in on first launch?

Qoder 0.5.17 displays a sign-in card on first launch with only **Sign in now** (`立即登录`) and a UI language selector — there is no "Skip" or "Sign in later" button, and closing the card exits Qoder. Sign in to your personal Qoder account with Google, GitHub, or email first to enter the main window and open **Settings → Models** for QCode setup.

### Should Anthropic Compatible use `/api` or `/api/v1` for the Base URL?

Start with `https://api.qcode.cc/api` (no trailing slash); Qoder adds `/v1/messages` automatically. If clicking **Validate and add model** fails, that client version does not add `/v1` by itself — change the Base URL to `https://api.qcode.cc/api/v1` so it appends only `/messages`. Both forms reach the same QCode Anthropic endpoint, `https://api.qcode.cc/api/v1/messages`.

### Why did adding a Claude model return `model_not_available_on_endpoint`?

This is a protocol mismatch, not a broken QCode key. On QCode, `claude-*` models use the Anthropic protocol only and cannot be added under **OpenAI Compatible**. Go back to **Settings → Models → Add model**, choose **Anthropic Compatible** as the provider, and enter `https://api.qcode.cc/api`.

### What is the difference between the global app and Qoder CN? Is QCode setup the same?

The global site (`qoder.com`) and Qoder CN (`qoder.com.cn`) are two separate applications with separate docs, and their installers cannot be mixed. The global docs list OpenAI, Google, and OpenRouter as additional preset providers compared to Qoder CN, but **the custom endpoint options are identical on both**: both offer **OpenAI Compatible** and **Anthropic Compatible**, and QCode setup steps are exactly the same.

### How are custom models billed? Do they consume Qoder Credits?

Per Qoder's official documentation, custom model usage is billed directly to your model provider's API account (your QCode balance or plan) and **does not use Qoder Credits**. Built-in features that rely on fixed models, such as Repo Wiki, still consume Qoder Credits.

### What happens when my QCode key expires?

Two cases:

- A **personal plan** key cannot be renewed when it expires — start a new plan and switch to a new key;
- For a **pay-as-you-go pack**, buy another pack after the key expires and the same key automatically starts working again.

If you switch to a new key, open **Settings → Models** in the Qoder desktop app, click **Edit** on the entry, replace the `cr_` key, and validate again.

### What if I cannot see "Custom" under Provider or in Qoder CLI?

Custom Base URLs (BYOK) are available on personal plans starting with Qoder desktop 0.1.8 and Qoder CLI 1.1.50. If you do not see the **Custom** group or the CLI's **Custom** tab, confirm you are signed in to a personal account with BYOK enabled and that your client meets the minimum version; also confirm you installed the **Qoder desktop app** rather than Qoder IDE (preset providers only) or QoderWork (no custom model entry).

## Connection overview

| Item | Details |
|---|---|
| What it is | Qoder is a family of coding agent products: the new Qoder desktop app, Qoder CLI (`qoder`), Qoder IDE, and a JetBrains plugin. This page covers the desktop app and CLI. Global site: `qoder.com` (docs: `docs.qoder.com`); China site: Qoder CN (docs: `docs.qoder.cn`) |
| Own API key? | Yes. Per the official custom models page, Qoder supports third-party provider models through API keys, including custom endpoints. Available on personal plans (custom Base URLs supported since desktop 0.1.8 and CLI 1.1.50) |
| Where to configure | Desktop: **Settings** → **Models** → **Add model** → `Provider` → **Custom**. CLI: `/model` → **Custom** tab → **Add custom model...** |
| Protocols | **OpenAI Compatible** (then **Chat Completions API** or **Responses API**) · **Anthropic Compatible** |
| QCode values | Anthropic Compatible: `https://api.qcode.cc/api` · OpenAI Compatible: `https://api.qcode.cc/openai/v1` |
| Available models | Claude ✅ (Anthropic Compatible) · GPT ✅ (OpenAI Compatible) · GLM / Kimi / DeepSeek / Qwen ✅ (either) · Gemini ❌ (QCode does not currently offer Gemini models) |
| Official docs | [Custom models (global)](https://docs.qoder.com/qoder/custom-models) · [Custom models (Qoder CN)](https://docs.qoder.cn/qoder/custom-models) · [CLI custom models](https://docs.qoder.com/cli/custom-models) · [Release notes](https://changelog.qoder.com/app) |

## Which protocol and how to write the Base URL

There are two custom endpoint types, and **OpenAI Compatible** also asks you to pick an API type. Pick the row that matches your model family:

| Qoder choice | Base URL | Model IDs (examples) |
|---|---|---|
| **Anthropic Compatible** | `https://api.qcode.cc/api` | `claude-sonnet-5-5`, `claude-opus-5-5`, `deepseek-v4.1-flash`, `glm-5.3` |
| **OpenAI Compatible** + **Chat Completions API** | `https://api.qcode.cc/openai/v1` | `gpt-6.2-sol`, `deepseek-v4.1-flash`, `glm-5.3`, `kimi-k3`, `qwen3.8-max` |
| **OpenAI Compatible** + **Responses API** | `https://api.qcode.cc/openai/v1` | `gpt-6.2-sol` |

Claude models use the Anthropic protocol only, so put `claude-*` under **Anthropic Compatible**; GPT models use the two OpenAI options only; GLM / Kimi / DeepSeek / Qwen work on both. See [Endpoints and API formats](/docs/getting-started/endpoints-and-api-paths) for the full matrix, and copy Model IDs verbatim from [qcode.cc/models](https://qcode.cc/en/models).

**Writing the Base URL (concatenation rule).** Qoder's **Anthropic Compatible** provider appends `/v1/messages` to the Base URL you enter; some client versions append only `/messages` without adding `/v1`, which is why the same address validates differently across versions. So start with QCode's Anthropic root `https://api.qcode.cc/api` and let Qoder build `https://api.qcode.cc/api/v1/messages`. If **Validate and add model** fails on a given version, switch to `https://api.qcode.cc/api/v1` so it appends only `/messages` — the final URL is the same endpoint. For the two **OpenAI Compatible** options, enter the `/v1`-terminated `https://api.qcode.cc/openai/v1` directly (Qoder appends `/chat/completions` or `/responses`).

Add one entry for each protocol you need, using its corresponding URL. Quick reference for desktop fields:

| Field | Anthropic Compatible | OpenAI Compatible |
|---|---|---|
| Base URL | `https://api.qcode.cc/api` | `https://api.qcode.cc/openai/v1` |
| API type | — | Chat Completions API (Responses API also works for GPT) |
| API key | `cr_xxxxxxxx` | `cr_xxxxxxxx` |
| Model ID | `claude-sonnet-5-5` | `gpt-6.2-sol` |

**Preset provider differences between global and Qoder CN.** The global docs list Alibaba Cloud Model Studio, DeepSeek, Zhipu, Kimi, MiniMax, Xiaomi MIMO, OpenAI, Google, and OpenRouter as preset providers; Qoder CN docs list Alibaba Cloud Model Studio, DeepSeek, Zhipu, Kimi, MiniMax, and Xiaomi MIMO without OpenAI, Google, or OpenRouter. The custom options are identical on both — **OpenAI Compatible** and **Anthropic Compatible** — and the steps are the same.

## Other ingress points

All three domains point to the same service and **share the same `cr_` key**. In Asia or North America, swap only the hostname in the Base URL and keep the path unchanged:

| Ingress point | Anthropic Compatible | OpenAI Compatible |
|---|---|---|
| Global default | `https://api.qcode.cc/api` | `https://api.qcode.cc/openai/v1` |
| Asia (best for Mainland China) | `https://asia.qcode.cc/api` | `https://asia.qcode.cc/openai/v1` |
| North America / Europe | `https://us.qcode.cc/api` | `https://us.qcode.cc/openai/v1` |

## Qoder CLI setup (/model → Custom)

Alongside the desktop app, Qoder also provides a command-line client, **Qoder CLI** (`qoder`). Install it with:

```sh
# macOS / Linux
curl -fsSL https://qoder.com/install | bash

# Windows PowerShell
irm https://qoder.com/install.ps1 | iex
```

Personal plan users (CLI 1.1.50 and later) can configure custom models through the interactive wizard:

1. Start Qoder CLI and run `/model`.
2. Switch to the **Custom** tab.
3. Select **Add custom model...** and press Enter.
4. Follow the wizard to choose Provider → model type → model, then enter the Base URL, Model ID, and API key (same values as the table above).
5. After validation succeeds, the configuration saves automatically and can be selected right away. Highlight a model in the **Custom** tab and press Enter to use it, or press `d` to delete it.

> Official note: configure BYOK through the **Custom** wizard in `/model` — do not hand-edit BYOK settings in `settings.json`.

## Test your key and endpoints directly with curl

If you are unsure whether an issue comes from Qoder's settings or your local network, test your QCode key and both protocol paths directly in a terminal with `curl` (replace `cr_xxxxxxxx` with your own key):

```bash
KEY="cr_xxxxxxxx"

# OpenAI Compatible, Chat Completions API
curl -sS https://api.qcode.cc/openai/v1/chat/completions \
  -H "Authorization: Bearer $KEY" \
  -H "content-type: application/json" \
  -d '{"model":"gpt-6.2-sol","max_tokens":32,
       "messages":[{"role":"user","content":"ping"}]}'

# Anthropic Compatible
curl -sS https://api.qcode.cc/api/v1/messages \
  -H "x-api-key: $KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model":"claude-sonnet-5-5","max_tokens":32,
       "messages":[{"role":"user","content":"ping"}]}'
```

If the OpenAI request returns a response containing `choices` and the Anthropic request returns a normal message body, your QCode key and network path are working — double-check the protocol type, trailing slash on the Base URL, and Model ID inside Qoder.

## Official five-item troubleshooting checklist

Qoder's official "How to fix failed model additions" checklist lists five items. Here is how each maps to QCode:

| Official check | On QCode |
|---|---|
| "Whether the Base URL is complete and the selected compatible protocol and API type match the endpoint" | For Anthropic Compatible enter `https://api.qcode.cc/api` (or `https://api.qcode.cc/api/v1` if validation fails); for OpenAI Compatible enter `https://api.qcode.cc/openai/v1`, with no trailing `/` |
| "Whether the API key is correct with no extra spaces, and has not expired or been disabled" | Paste the `cr_` key again with no leading or trailing spaces |
| "Whether the Model ID is correct and accessible to the provider account" | Copy the Model ID verbatim from [qcode.cc/models](https://qcode.cc/en/models) |
| "Whether the provider account has sufficient balance" | Check your balance in the [QCode Dashboard](https://qcode.cc/en/dashboard) |
| "Whether the network connection is normal" | Keep the same path and try swapping the domain to `asia.qcode.cc` or `us.qcode.cc` |

If the **Custom** tab or add entry does not appear in Qoder CLI, confirm that BYOK is enabled for your account and version; if a specific provider or model is missing, rely on the live catalog shown in the **Custom** wizard.

## Known limitations

- Official wording: "Image and video generation are currently unavailable when using models connected with your own API key (BYOK)."
- Custom model usage is billed directly to your provider API account and does not use Qoder Credits; Repo Wiki uses a fixed model and still consumes Qoder Credits.
- The `https://api.example.com/v1` URL shown by Qoder is a format example only — the docs do not specify which path segments are appended per protocol, so the result of **Validate and add model** is the final check.
- **Qoder IDE** lists preset providers only, and **QoderWork** does not offer a custom model entry; use the new **Qoder desktop app** or **Qoder CLI** to configure a custom QCode Base URL.

## Related docs

- [Endpoints and API formats](/docs/getting-started/endpoints-and-api-paths) — protocol × model-family matrix
- [Tool compatibility overview](/docs/ide/tool-compatibility) — which protocols each tool supports
- [DeepSeek Harness](/docs/ide/deepseek-harness) — another tool with a custom model form
- [LobsterAI](/docs/ide/lobsterai) — desktop agent whose custom providers also support both Anthropic and OpenAI formats
- [Chinese models guide](/docs/usage/cn-models) — IDs and paths for GLM / Kimi / DeepSeek / Qwen
- [Qoder custom model BYOK guide on qcode.cc](https://qcode.cc/en/qoder-custom-model-byok-setup)