LobeChat (LobeHub) with QCode: Windows & macOS walkthrough, one screenshot per step
Follow 9 steps and 9 screenshots to install LobeHub 2.3.4 on Windows & macOS, write QCode's Anthropic and OpenAI-compatible addresses into the config, and verify requests with claude-opus-5-5 and gpt-6.2-sol.
Need an API key? Sign up →Endpoints & base URLs →
On This Page
- Download and install
- Follow the screenshots: Windows, one step at a time
- Open the official download page and download the Windows installer
- Run the installer and keep the default "Install for me only"
- Let the app start automatically and reach the welcome page
- Recognise the two entries on the sign-in gate page
- Enter the self-hosted instance address and connect
- Write the QCode addresses and key into lobehub.env
- Verify the Anthropic endpoint with curl.exe
- Verify the OpenAI-compatible endpoint with curl.exe
- Check the request records on probe.qcode.cc
- Verify it works
- Common errors
- FAQ
- Connection overview
- Which protocol to use
- Deployment options: desktop / web / self-hosted
- Connect the desktop app to a self-hosted instance
- Configure Claude (Anthropic provider)
- Configure GPT and Chinese models (OpenAI provider)
- Environment variables for self-hosting
- Request the endpoints directly from the command line
- Available models
- Other ingress points
- Troubleshooting and known limitations
- Related docs
Follow the 9 steps below and you will have LobeHub (formerly LobeChat) desktop installed on Windows 11 or macOS, both QCode entry addresses filled into LobeHub's configuration, and one successful request each through Claude and GPT.
Short answer: LobeHub desktop 2.3.4 has no local offline mode — on first launch you must either "Sign in to LobeHub Cloud" or "Connect to your own LobeHub service instance". This page gives a Docker self-hosting + lobehub.env setup for connecting to QCode; it does not mean the desktop app can work standalone without an instance. In the self-hosted config, Claude goes through the Anthropic provider with Proxy URL set to https://api.qcode.cc/api; GPT and Chinese models go through the OpenAI provider with Proxy URL set to https://api.qcode.cc/openai/v1; both places take the same QCode key starting with cr_.
| Item | Fill in |
|---|---|
| Entry address (Claude / Anthropic) | https://api.qcode.cc/api |
| Entry address (GPT, Chinese models / OpenAI-compatible) | https://api.qcode.cc/openai/v1 |
| Field in the UI | Proxy URL (together with the API Key of the same provider) |
| Environment variables when self-hosting | ANTHROPIC_PROXY_URL / OPENAI_PROXY_URL |
| Key format | cr_xxxxxxxx |
Checked on 2026-11-22 · LobeHub 2.3.4 · Windows 11
LobeChat is now released under the name LobeHub: the official site, the installer and the window title all say LobeHub, and searching for LobeChat lands on it too — the two are the same software. Its distinguishing feature is that it ships both Anthropic and OpenAI provider types, so with one QCode address in each you can switch between Claude, GPT and Chinese models in the same batch of conversations.
One prerequisite has to be said up front: LobeHub desktop 2.3.4 no longer has a local offline mode, so on first launch you must "Sign in to LobeHub Cloud" or "Connect to your own LobeHub service instance" before you reach the main interface. That is why this tutorial walks on two legs — the first 5 steps get the desktop app installed and show you this gate clearly; from step 6 on, you write QCode's addresses and key into the lobehub.env of a self-hosted instance and verify both endpoints with two commands.
On a Mac? Follow the same steps. The screenshots were taken on Windows 11; on macOS, run the same commands in Terminal (if the page uses Docker, install Docker Desktop for Mac; WSL 2 is not needed). The settings in the browser are the same.
- The PC or Mac runs Windows 10 / 11 (64-bit) or macOS with about 1 GB of free disk space (the installer is about 150 MiB, the installed app about 500 MB)
- You have already signed up for QCode.cc and copied your
cr_API key from the Dashboard. No account yet? Sign up first, pick a plan on the pricing page, then create the key in the Dashboard. - The PC can reach
lobehub.com,api.qcode.ccandprobe.qcode.cc - You know that the desktop app asks you to sign in or connect a self-hosted instance on first launch; if you have neither for now, do steps 1–3 first, then start from the environment variables in step 6
- Set aside 10 uninterrupted minutes and do not close the installer window mid-way
Download and install¶
The desktop app is an Electron application and the Windows installer is LobeHub-2.3.4-setup.exe, about 150 MiB. The wizard is the usual run of "Next" clicks, installs into the current user directory by default, needs no administrator rights and raises no "User Account Control" prompt.
There are only three official entry points, all serving the same installer:
- Chinese download page: https://lobehub.com/zh/downloads (the main button reads 「下载 Windows 版本」, Download the Windows version)
- English download page: https://lobehub.com/downloads
- Command-line install: run
winget install --id LobeHub.LobeHub -ein Windows Terminal; the version in the source is 2.3.4 as well
Mind the wrong addresses: lobehub.com/desktop and lobehub.com/zh-CN/downloads both jump straight to the sign-in page, and lobehub.com/download is a 404. The only real public download entries are the two above, /zh/downloads and /downloads.
Network conditions differ slightly by region, so pick your region first:
Europe / Japan
- Open the English download page lobehub.com/downloads and click "Download Windows Version"; it downloads the same
LobeHub-2.3.4-setup.exe. - You can also use
winget install --id LobeHub.LobeHub -e, or fetch thev2.3.4installer from GitHub Releases. - The installer is unsigned; handle the SmartScreen prompt as above: click 「更多信息」 (More info) → 「仍要运行」 (Run anyway).
Mainland China
- Open the Chinese download page lobehub.com/zh/downloads directly and click 「下载 Windows 版本」 (Download the Windows version) in the middle of the page; the browser starts downloading
LobeHub-2.3.4-setup.exe(about 150 MiB). - If the page spins for a long time or the download breaks off, install the same version from the command line: run
winget install --id LobeHub.LobeHub -ein Windows Terminal; or take the direct link from GitHub Releases,https://github.com/lobehub/lobehub/releases/download/v2.3.4/LobeHub-2.3.4-setup.exe. - The installer carries no digital signature, so double-clicking it may raise 「Windows 已保护你的电脑」 (Windows protected your PC); click 「更多信息」 (More info) → 「仍要运行」 (Run anyway).
Russia / Iran
- Prefer
winget install --id LobeHub.LobeHub -e, which does not depend on the browser download page. - If a download from the official page or GitHub Releases times out, confirm the network can reach
github.comandlobehub.comand retry once; when it finishes, check that the file is about 150 MiB before double-clicking it.
Arab countries
- The download channels are the same as Europe / Japan: "Download Windows Version" on the English download page lobehub.com/downloads, or
winget install --id LobeHub.LobeHub -e. - The installer language follows the system, so the UI text may be English, but the button positions match the Chinese version (「Next」 corresponds to 「下一步(N) >」).
Follow the screenshots: Windows, one step at a time¶
Each of the 9 steps below does one thing. The orange numbers on the screenshots match the ①②③ in the text one to one; all interface text is quoted verbatim from the Chinese UI. If you do not want to sign in to a vendor account for now after installing the desktop app, continue from step 6 and finish the QCode configuration with the self-hosted lobehub.env.
Open the official download page and download the Windows installer¶
Open LobeHub's official Chinese download page lobehub.com/zh/downloads in a browser and click 「下载 Windows 版本」 (Download the Windows version) at ①. The address bar must read exactly /zh/downloads; writing /desktop jumps to the sign-in page.

Done right you will see: a download bar in the bottom right corner of the browser, with the file name LobeHub-2.3.4-setup.exe and a size of about 150 MiB.
Stuck? You opened the download page but landed on the sign-in page
That means the address has an extra segment. Change the browser address bar to https://lobehub.com/zh/downloads (the English UI is https://lobehub.com/downloads) and press Enter; /desktop and /zh-CN/downloads both jump to the sign-in page and /download is a 404.
Run the installer and keep the default "Install for me only"¶
Double-click the downloaded LobeHub-2.3.4-setup.exe; the wizard window is titled 「LobeHub 安装」 (LobeHub Setup). The first page has 「仅为我安装 (user)」 (Install for me only (user)) selected by default at ①, which installs into the current user directory and raises no User Account Control prompt at all; confirm it and then click 「下一步(N) >」 (Next (N) >) at ②.
Done right you will see: the wizard moves on to the 「选定安装位置」 (Choose install location) page and the bottom button changes to 「安装(I)」 (Install).
Stuck? A 「Windows 已保护你的电脑」 (Windows protected your PC) prompt appears
This is SmartScreen's routine warning about an unsigned installer, not a virus. Click 「更多信息」 (More info) in the dialog, then 「仍要运行」 (Run anyway), and the wizard opens normally.
Let the app start automatically and reach the welcome page¶
On the 「选定安装位置」 (Choose install location) page click 「安装(I)」 (Install) and wait for the progress bar to finish; the last page has 「启动 LobeHub」 (Launch LobeHub) checked, so just click 「完成(F)」 (Finish). The app opens by itself and the first screen is the 「嘿,你好,我是 Lobe AI」 welcome page with 「跟随系统 · 简体中文」 (Follow system · Simplified Chinese) in the top right corner; click 「开始」 (Start) at ①.

Done right you will see: a single centred black 「开始」 (Start) button on the whole screen, and 「跟随系统 · 简体中文」 (Follow system · Simplified Chinese) as the language in the top right corner.
Stuck? No window appears after the install finishes
Search for 「LobeHub」 in the Start menu and open it; it is installed under %LOCALAPPDATA%\Programs\LobeHub. Taking a few seconds on first launch is normal.
Recognise the two entries on the sign-in gate page¶
Clicking 「开始」 (Start) does not take you straight to the main interface; you stop at the 「登录以实现跨设备同步」 (Sign in to sync across devices) page. There are only two entries here: 「登录 LobeHub Cloud」 (Sign in to LobeHub Cloud) at ① and 「连接到你自己的 LobeHub 服务实例」 (Connect to your own LobeHub service instance) at ②. Desktop 2.3.4 removed the local offline mode and Ctrl+, no longer opens the settings page either, so if you do not want to sign in to a vendor account, go on to the next step.

Done right you will see: only these two buttons on the page, and no 「跳过」 (Skip), 「稍后再说」 (Later) or local-mode entry to be found.
Stuck? You want the 「AI 服务商」 (AI Providers) settings page but cannot get in
That settings page only opens once you are in the main interface, and getting into the main interface requires one of the two entries here. With no LobeHub Cloud account, connect a self-hosted instance first; if you do not intend to deploy at all, go straight to step 6 and finish the QCode configuration with lobehub.env.
Enter the self-hosted instance address and connect¶
Click 「连接到你自己的 LobeHub 服务实例」 (Connect to your own LobeHub service instance) to expand the form, type the address of the LobeHub instance you deployed yourself into the address box at ① (of the form https://your-server.com; the server must already have the OIDC-related environment variables configured), then click 「连接服务器」 (Connect to server) at ②.

Done right you will see: the address box accepts the input, and clicking 「连接服务器」 (Connect to server) leaves this gate page and enters the sync and sign-in flow.
Stuck? You have no self-hosted instance at hand
You do not have to be blocked here. Skip it and, from step 6 on, write QCode's addresses into the lobehub.env used for self-hosting; the desktop app's standalone offline mode is gone, so a single PC without a deployed server cannot use the chat interface.
Write the QCode addresses and key into lobehub.env¶
When self-hosting with Docker you do not click through the UI, you edit the environment variable file. Open %USERPROFILE%\lobehub\lobehub.env in Notepad: set ANTHROPIC_PROXY_URL at ① to https://api.qcode.cc/api (no trailing slash), set OPENAI_PROXY_URL at ② to https://api.qcode.cc/openai/v1, and OPENAI_MODEL_LIST at ③ decides which models appear in the dropdown; both API Key entries take the same cr_ key.
ANTHROPIC_PROXY_URL=https://api.qcode.cc/api
ANTHROPIC_API_KEY=cr_xxxxxxxx
OPENAI_PROXY_URL=https://api.qcode.cc/openai/v1
OPENAI_MODEL_LIST=-all,+gpt-6.2-sol,+glm-5.3,+deepseek-v4.1-flash
OPENAI_API_KEY=cr_xxxxxxxx

Done right you will see: the value of ANTHROPIC_PROXY_URL ends with /api, the value of OPENAI_PROXY_URL ends with /openai/v1, both keys start with cr_, and there are no stray spaces or quotes at the end of the lines.
Need an API key?
If you do not have a QCode account yet, Sign up first. If you prefer to pay by usage, buy a Pay-as-you-go Pack first, then create the key in the Dashboard. Copy the whole string that starts with cr_ and paste it into both API Key places. You can pay by credit/debit card (Visa / Mastercard), Apple Pay / Google Pay, or cryptocurrency — see Payment methods.
Stuck? You cannot find the lobehub.env file
That file belongs to the self-hosting flow: deploy an instance once with the official Compose script and lobehub.env appears under %USERPROFILE%\lobehub\. You can also create a file with the same name in Notepad yourself, choosing UTF-8 as the encoding when you save it.
Verify the Anthropic endpoint with curl.exe¶
Open Windows Terminal (PowerShell), load the key from the env file first, then request the Anthropic address at ① with curl.exe, writing claude-opus-5-5 as the model. If the JSON returned at ② contains model and content, the address and key on this side work.
$KEY = (Select-String "^ANTHROPIC_API_KEY=(.+)" "$HOME\lobehub\lobehub.env").Matches.Groups[1].Value
curl.exe -sS -X POST 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-opus-5-5\",\"max_tokens\":32,\"messages\":[{\"role\":\"user\",\"content\":\"ping\"}]}'

Done right you will see: the terminal prints a whole block of JSON containing "model":"claude-opus-5-5", "content" and a line of reply text, with no 401 or 404.
Stuck? It says the key is empty or the file cannot be read
First check that %USERPROFILE%\lobehub\lobehub.env has a line starting with ANTHROPIC_API_KEY= whose equals sign is followed directly by the cr_ key, with no spaces in between. If the file cannot be read, replace "$HOME\lobehub\lobehub.env" in the command with the full path and try again.
Verify the OpenAI-compatible endpoint with curl.exe¶
Continue in the same window, switch to the OpenAI-compatible address at ①, write gpt-6.2-sol as the model and change the header to authorization: Bearer $KEY. When model and choices appear in the JSON at ②, both protocols work.
curl.exe -sS -X POST 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\"}]}'

Done right you will see: "model":"gpt-6.2-sol" and "choices":[...] in the returned JSON, and a reply that is not empty.
Stuck? The response content is empty
It is most likely a wrong address suffix: the OpenAI-compatible side must be exactly https://api.qcode.cc/openai/v1, with no trailing slash and without appending another /v1 yourself. Run the command again after fixing it.
Check the request records on probe.qcode.cc¶
Open https://probe.qcode.cc/, paste the same cr_ key, click 「查询」 (Query) and scroll down to the request list. The top two rows framed at ① are the two requests you just made, both with status 200. This page only lists time, status, connection, first token, total time, response size and output rate — there are no model name or token count columns.

Done right you will see: two records with matching timestamps, both 200 in the status column, and the page subtitle 「全平台 · /api/v1/messages」 (All platforms · /api/v1/messages).
Verify it works¶
When all four of these line up, LobeHub is fully connected to QCode:
- The
LobeHub-2.3.4-setup.exeinstaller finished, the window title and the welcome page are in Chinese, and the interface shows 「嘿,你好,我是 Lobe AI」; - In
lobehub.env,ANTHROPIC_PROXY_URLishttps://api.qcode.cc/apiandOPENAI_PROXY_URLishttps://api.qcode.cc/openai/v1, and both keys start withcr_; - A
curl.exerequest to the Anthropic endpoint returns"model":"claude-opus-5-5"andcontent; a request to the OpenAI-compatible endpoint returns"model":"gpt-6.2-sol"andchoices; - On probe.qcode.cc the same key finds the corresponding
200records.
All done¶
You have LobeHub installed on Windows 11 and QCode's two addresses — Anthropic and OpenAI-compatible — written into the configuration. From here you can:
- Endpoints and API paths
- Chinese models
- Model selection guide
- Troubleshooting guide
- Next: compare the plans on the pricing page
- Go back to your Dashboard to check usage and balance
Common errors¶
| Error message | Why | What to do |
|---|---|---|
curl: (3) bad range specification |
Windows PowerShell 5.1 parses the double quotes after -d first, so the JSON is split into pieces and curl.exe receives truncated arguments |
Put the JSON in a single-quoted string with inner double quotes escaped as \" (or use PowerShell 7, or save the body as a UTF-8 file and pass --data-binary "@body.json"), then check that $KEY is not empty and the model name contains only valid characters; if it still fails, run curl.exe --version to confirm you are calling Windows' bundled curl rather than an alias |
model_not_available_on_endpoint |
A Claude model name was sent to the OpenAI-compatible address, and QCode's OpenAI-compatible endpoint does not serve the Claude family | Always use https://api.qcode.cc/api for Claude and https://api.qcode.cc/openai/v1 for GPT and Chinese models; do not mix the two |
may encounter a situation where the AI returns an empty message |
The value of OPENAI_PROXY_URL is wrong, so requests never land on the OpenAI-compatible endpoint and the reply is empty |
Write OPENAI_PROXY_URL verbatim as https://api.qcode.cc/openai/v1, with no trailing slash and without appending /v1/chat/completions |
| 登录以实现跨设备同步 | Desktop 2.3.4 has removed local mode, so on first launch you must sign in to LobeHub Cloud or connect a self-hosted instance | If you have a self-hosted instance, connect it as in step 5; if not, configure ANTHROPIC_PROXY_URL and OPENAI_PROXY_URL in lobehub.env and take the self-hosting path |
FAQ¶
What happens when my key expires?¶
Two cases:
- A personal plan key cannot be renewed when it expires — reopen a plan and use a new key.
- For a pay-as-you-go pack, buy another pack after the key expires and the same key starts working again.
After switching keys, remember to update both the ANTHROPIC_API_KEY and OPENAI_API_KEY lines in lobehub.env to the new string.
Does the desktop app require a LobeHub account?¶
Version 2.3.4 does: after clicking 「开始」 (Start) there are only the two entries 「登录 LobeHub Cloud」 (Sign in to LobeHub Cloud) and 「连接到你自己的 LobeHub 服务实例」 (Connect to your own LobeHub service instance), with no local mode and no way around them. To avoid vendor accounts entirely, deploy an instance yourself and point the addresses at QCode through lobehub.env.
What if the card has no Proxy URL input?¶
The official description of this field is conditional — "If Proxy URL is available" — and which fields a given version or provider shows varies. Upgrade to the latest version first and look again; if there is still no input box, in a self-hosted setup just change ANTHROPIC_PROXY_URL / OPENAI_PROXY_URL in lobehub.env, which has the same effect as filling in Proxy URL in the UI.
Can one key be used for both Claude and GPT?¶
Yes. A QCode key works on both endpoints: https://api.qcode.cc/api on the Anthropic side and https://api.qcode.cc/openai/v1 on the OpenAI-compatible side, with the same key starting with cr_.
Which model is recommended by default?¶
Use claude-opus-5-5 by default on the Claude side, and claude-haiku-5-5 for lighter tasks; use gpt-6.2-sol by default on the GPT side, listing gpt-6.2-astra when you need stronger reasoning. Chinese models such as glm-5.3, deepseek-v4.1-flash, qwen3.8-max and kimi-k3 go through the same OpenAI-compatible address.
Can I switch ingress nodes if the address does not work?¶
Yes. The three ingress domains have the same capabilities and work with the same key; if the main address is unreachable on your network, switch to the corresponding path under asia.qcode.cc or us.qcode.cc, written the same way as the main address.
Connection overview¶
| Item | Details |
|---|---|
| Available models | Claude ✅ (Anthropic provider + Proxy URL) · GPT ✅ · Chinese models ✅ (OpenAI provider + Proxy URL) · Gemini ❌ (QCode does not offer the Gemini series for now; please use Claude, GPT or Chinese models) |
| Protocol and Proxy URL | Anthropic Messages: https://api.qcode.cc/api · OpenAI-compatible: https://api.qcode.cc/openai/v1 |
| Where to configure | App Settings → AI Providers; select the provider, fill in the API Key and Proxy URL, then click Check |
| Self-hosting path | Skip the UI and use the environment variables ANTHROPIC_PROXY_URL and OPENAI_PROXY_URL |
| Official docs | AI Model Providers |
This app is now released under the name LobeHub: the official docs site, the desktop installer and the open-source Community Edition all use that name, and searching for LobeChat lands on LobeHub too — the two are the same software.
Which protocol to use¶
| Model you want | Provider to enable | Proxy URL |
|---|---|---|
Claude (claude-opus-5-5, claude-haiku-5-5) |
Anthropic | https://api.qcode.cc/api |
GPT (gpt-6.2-sol, gpt-6.2-astra) |
OpenAI | https://api.qcode.cc/openai/v1 |
Chinese models (deepseek-v4.1-flash, glm-5.3, qwen3.8-max, kimi-k3) |
OpenAI | https://api.qcode.cc/openai/v1 |
🔴 Never call Claude through the OpenAI provider. QCode serves Claude only on the Anthropic endpoint; claude-* sent to the OpenAI-compatible endpoint is rejected, and conversely gpt-* does not work on the Anthropic endpoint either. One QCode key (starting with cr_) works on both.
Fill in Proxy URL verbatim from the table above: no trailing slash, and do not put a full request path such as /v1/chat/completions into the box — the official definition of this field is "the provider API base URL or a compatible endpoint". Whether the Anthropic side needs an extra path segment is not stated officially, so fill in the address QCode gives you as is. See Endpoints and API paths for details.
Deployment options: desktop / web / self-hosted¶
Decide which form to use first; where the key goes follows from that.
- Desktop / web — the official wording is "Download the macOS, Windows, or Linux app from the official download page", and the desktop app is built on Electron; for the web version, "Open LobeHub in a modern browser" is enough. The key and the Proxy URL go into the provider fields in the UI (you need to sign in or connect a self-hosted instance first).
- Self-hosted, single Docker image (official command, environment variables in an env file). Create the
pgnetwork referenced bydocker runfirst:
docker network create pg
docker run -it -d -p 127.0.0.1:3210:3210 --network pg --env-file lobehub.env --name lobehub lobehub/lobehub
Binding the port as 127.0.0.1:3210:3210 keeps it reachable only from this machine, so the service is not exposed directly to the internet or an untrusted LAN. The first account registered in LobeHub becomes the administrator; if you really need external access, register that administrator locally and set a strong admin credential first, then put an authenticating HTTPS reverse proxy in front instead of leaving it exposed on the LAN.
- Self-hosted, Docker Compose (official script + compose):
mkdir lobehub && cd lobehub
bash <(curl -fsSL https://lobe.li/setup.sh) -l en
docker compose up -d
Once deployed, %USERPROFILE%\lobehub\lobehub.env is the same file as in step 6.
Connect the desktop app to a self-hosted instance¶
To have the desktop app connect to your own instance, the desktop docs require "your self-hosted instance version is 1.83.6 or higher to support desktop" for the connection feature: click the Wi-Fi icon in the top right corner, enter the instance address and connect. The same document also requires that, before connecting, the self-hosted instance be "correctly configured with the OIDC-related environment variables".
Note that these numbers are not the same version scheme: 1.83.6 comes from the desktop connection docs, 2.2.19 is a server release number, and the desktop app shown on this page is 2.3.4 — do not compare the three with each other.
Configure Claude (Anthropic provider)¶
The fields officially vary by provider: "Open App Settings → AI Providers, then select the provider you want to configure. The available fields depend on the provider". The steps given on the Anthropic page are, in order:
- "Open App Settings → AI Providers, select Anthropic, and enable the provider"
- "Enter the API key. If you use a proxy, enter its proxy URL" — fill in QCode's
cr_key, andhttps://api.qcode.cc/apias the Proxy URL - "Select Check to test the connection"
- "Enable the Claude models you need, then select one in the Agent settings"
Pick model IDs from QCode's list of models on sale: claude-opus-5-5 is the default recommendation and claude-haiku-5-5 covers lighter tasks; when you need a longer context you can choose claude-fable-5-2 (1M token context, up to 128K tokens of output per request) or the previous claude-fable-5-1. For IDs that are not in the built-in dropdown, add them by hand through the official 「获取或添加模型」 (fetch or add models) entry.
Configure GPT and Chinese models (OpenAI provider)¶
The same shape, following the steps on the official OpenAI page:
- "Open App Settings → AI Providers, select OpenAI, and enable the provider"
- "Enter the API key. If you use a proxy or compatible endpoint, enter its proxy URL" — the same
cr_key, withhttps://api.qcode.cc/openai/v1as the Proxy URL - "Select Check to test the connection"
- "Enable the OpenAI models you need, then select one in the Agent settings"
The default recommended model is gpt-6.2-sol, with gpt-6.2-astra as the highest-tier alternative. Chinese model IDs use the same provider and the same Proxy URL: deepseek-v4.1-flash, deepseek-v4-pro, glm-5.3, qwen3.8-max, kimi-k3, see Chinese models. You do not need the separate DeepSeek, Qwen or Moonshot guides for this — one OpenAI-compatible address covers the whole list.
Environment variables for self-hosting¶
When deploying with Docker or Compose, write the same two addresses into the env file per provider. The reference page describes ANTHROPIC_PROXY_URL as used to "override the default Anthropic API request base URL" and OPENAI_PROXY_URL as used to "override the default OpenAI API request base URL", which is exactly the self-hosting counterpart of the Proxy URL field in the UI:
| Variable | Official default | What to put |
|---|---|---|
ANTHROPIC_API_KEY |
– | QCode's cr_ key |
ANTHROPIC_PROXY_URL |
https://api.anthropic.com |
https://api.qcode.cc/api |
OPENAI_API_KEY |
– | the same key |
OPENAI_PROXY_URL |
https://api.openai.com/v1 |
https://api.qcode.cc/openai/v1 |
OPENAI_MODEL_LIST |
– | see below |
ANTHROPIC_CLIENT_TIMEOUT |
295000 |
in milliseconds; leave it alone unless long requests get truncated |
The official description of OPENAI_MODEL_LIST is "Used to control the model list": + adds, - hides, and -all hides the whole built-in set first — use this form when the endpoint only serves the models you name:
ANTHROPIC_API_KEY=cr_xxxxxxxx
ANTHROPIC_PROXY_URL=https://api.qcode.cc/api
OPENAI_API_KEY=cr_xxxxxxxx
OPENAI_PROXY_URL=https://api.qcode.cc/openai/v1
OPENAI_MODEL_LIST=-all,+gpt-6.2-sol,+gpt-6.2-astra,+glm-5.3,+deepseek-v4.1-flash
Whether /v1 belongs in the value depends on the endpoint itself; the official wording is to "check the request suffix of your proxy service provider", and on an empty reply to try adding /v1 and retry. For QCode: keep the /openai/v1 on the OpenAI side and stop at /api on the Anthropic side. The reference page also lists separate variables for the Chinese providers (DEEPSEEK_PROXY_URL, QWEN_PROXY_URL, MOONSHOT_PROXY_URL); point them at QCode only if you deliberately want QCode to sit behind that provider.
Request the endpoints directly from the command line¶
To tell a gateway problem from an application problem, requesting the endpoint directly is the least trouble (on macOS / Linux, change KEY= to export KEY=):
KEY="cr_xxxxxxxx"
# Anthropic endpoint — put only Claude IDs here
curl -X POST 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-opus-5-5","max_tokens":32,"messages":[{"role":"user","content":"ping"}]}'
# OpenAI-compatible endpoint — only GPT and Chinese model IDs here, never claude-*
curl -X POST https://api.qcode.cc/openai/v1/chat/completions \
-H "authorization: Bearer $KEY" -H "content-type: application/json" \
-d '{"model":"gpt-6.2-sol","messages":[{"role":"user","content":"ping"}]}'
If the returned JSON contains content (Anthropic) or choices (OpenAI), the endpoint side has responded and what remains is in the app settings. Billing is by token; see qcode.cc/en/models for each model's price.
Available models¶
| Model | Model ID | Notes |
|---|---|---|
| Claude Opus 5.5 | claude-opus-5-5 |
Default recommendation on the Anthropic side, for complex reasoning and everyday workhorse tasks |
| Claude Haiku 5.5 | claude-haiku-5-5 |
Lightweight alternative, quick responses |
| GPT 6.2 Sol | gpt-6.2-sol |
Default recommendation on the OpenAI side |
| GPT 6.2 Astra | gpt-6.2-astra |
Highest-tier alternative |
| GLM 5.3 | glm-5.3 |
Main Chinese model, via the OpenAI-compatible address |
4.x models such as claude-sonnet-4-6 and claude-opus-4-8 are still on sale and can be used when you need compatibility with older projects, but they are not the default recommendation. The live list is at qcode.cc/en/models.
Other ingress points¶
The three ingress domains have the same capabilities and differ only in network routing; the same key works on all of them:
| Node | Anthropic (Claude) | OpenAI-compatible (GPT / Chinese models) |
|---|---|---|
| Global | https://api.qcode.cc/api |
https://api.qcode.cc/openai/v1 |
| Asia | 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 |
Troubleshooting and known limitations¶
| Symptom | Official wording | What to do |
|---|---|---|
Empty reply after setting OPENAI_PROXY_URL |
"may encounter a situation where the AI returns an empty message"; the docs ask you to re-check the variables and confirm the /v1 "suffix is added correctly (if required)" |
Use https://api.qcode.cc/openai/v1 verbatim as the Proxy URL, with no trailing slash |
| Anthropic long requests are truncated | ANTHROPIC_CLIENT_TIMEOUT defaults to 295000 (milliseconds), and that timeout "is also used by Anthropic-compatible providers that rely on the Anthropic SDK" |
On self-hosted setups raise it only for long generations; changing this value does not affect 401 / 404 style errors |
| Deployed on Vercel | there is a "10-second serverless function timeout limit" | Long answers beyond that limit need Docker or another host |
| A provider is unavailable | "This does not guarantee automatic failover" | Configure a second provider yourself and switch manually |
| Connection errors, key judged invalid | "Check your API key for extra spaces. Check that the key type matches the provider" | Re-paste the cr_ key and confirm that the provider matches the key type (Claude → Anthropic, GPT and Chinese models → OpenAI) |
| Your ID is missing from the model list | "Your account tier can exclude a model, or the provider can retire it" | For QCode, add the ID yourself — the built-in dropdown is not QCode's list of models on sale |
| Rate limited | "You reached the provider's request rate limit" | Lower the request rate, or switch providers |
Items QCode does not offer: for gpt-6-luna use another GPT model (gpt-6.2-sol / gpt-6.2-astra); the Gemini series is likewise not offered for now, so please use Claude, GPT or Chinese models. Which version shows the Proxy URL field under which provider is not stated officially, and that is outside the scope of this page.
Related docs¶
- Endpoints and API paths — protocol × model family cross-reference
- Tool compatibility overview — which protocol each tool speaks
- Cherry Studio — the same two endpoints, filled in for a desktop app
- Claude Desktop
- Chinese models
- Model selection guide
- Troubleshooting guide
Get started with QCode
One API key for Claude Code, Codex and more — billed per token, per-model prices on qcode.cc/models