Open WebUI with QCode: Windows 11 & macOS walkthrough, one screenshot per step
Follow 11 steps and 11 screenshots to run Open WebUI 0.13.4 with Docker on Windows 11 or macOS, fill in QCode's OpenAI-compatible address and key on the admin connection page, chat normally with gpt-6.2-sol, and verify the requests.
Need an API key? Sign up →Endpoints & base URLs →
On This Page
- Download and install
- Follow the screenshots: Windows, one step at a time
- Download Docker Desktop
- Start Open WebUI in PowerShell
- Open the local address and sign in
- Open the user menu
- Open the connections page
- Fill in the address and key, then verify the connection
- Add the model IDs and save
- Confirm the connection is saved and enabled
- Go back to a new chat and open the model selector
- Send your first sentence
- Check the request page to confirm requests go through QCode
- Verify it works
- Common errors
- FAQ
- Connection overview
- Which protocol: fill in only the OpenAI-compatible address
- Admin connection fields
- Self-hosted environment variables
- Debug directly with curl
- Other ingress points
- Known limitations
- Related docs
Follow the 11 steps below, and you will run your own Open WebUI chat interface with Docker on Windows 11 or macOS, connect it to QCode, and then chat normally with gpt-6.2-sol.
Short answer: In Open WebUI, add a connection under 管理员面板 → 设置 → 管理员 → AI → 外部连接 (Admin Panel → Settings → Admin → AI → Connections): set the URL to https://api.qcode.cc/openai/v1, keep the authentication method as Bearer, paste your QCode key starting with cr_ as the API key, then add gpt-6.2-sol under 高级 → 模型 ID (Advanced → Model IDs).
| Item | Fill in |
|---|---|
| Endpoint address | https://api.qcode.cc/openai/v1 |
| Where to configure | 管理员面板 → 设置 → 管理员 → AI → 外部连接 (Admin Panel → Settings → Admin → AI → Connections) |
| Auth method and key | Bearer + cr_xxxxxxxx |
| Default recommended model | gpt-6.2-sol |
Checked on 2026-11-22 · Open WebUI 0.13.4 · Windows 11
On a Mac? Follow the same steps. The screenshots were taken on Windows 11; on macOS, run the same commands in Terminal (this page uses Docker, so install Docker Desktop for Mac; WSL 2 is not needed). The settings in the browser are the same.
- The PC runs Windows 10 / 11 (64-bit) or macOS, can install Docker Desktop, and can open Windows PowerShell or Terminal
- You have already signed up at QCode.cc and copied your API key starting with
cr_from the Dashboard. No account yet? Sign up for QCode first, pick a plan on the pricing page, then create the key in the Dashboard. - The PC can open
qcode.cc,api.qcode.ccandprobe.qcode.ccnormally, and can pull images fromghcr.io - Set aside about 20 uninterrupted minutes, and do not close the terminal window in between
Download and install¶
Open WebUI is a self-hosted chat web interface and has no Windows desktop installer. The most common way is to install Docker Desktop first and then start Open WebUI with a single command; the official project also offers pip and uv methods, which suit people who already have Python 3.11 / 3.12 on the machine.
Official entry points:
- Docker Desktop (Windows): the official download page at docker.com
- Open WebUI image:
ghcr.io/open-webui/open-webui:main - Local interface address:
http://localhost:3000for the Docker version,http://localhost:8080for thepip/uvversion
First, check what to note for your region:
Europe / Japan
- The official download page and
ghcr.ioare usually reachable directly; install Docker Desktop from the entry points above. - Once the image is pulled, go straight to step 2, copy both commands as they are, and keep the port mapping as
127.0.0.1:3000:8080.
Mainland China
- Get the Docker Desktop installer from the official download page, open it after installation, and continue once its status shows it is running.
- The Open WebUI image is pulled from
ghcr.io; if the network is slow, just retry — do not switch to an image address of unknown origin. - The two commands that generate the local key and start the container are in step 2, and both must be run in
Windows PowerShell.
Russia / Iran
- The official entry points occasionally fail to open; download the Docker Desktop installer in advance while the network is working.
- If the image pull fails, retry first; if it still fails, check whether the PC can reach
ghcr.ioand do not replace the image address yourself.
Arab countries
- The channels are the same as Europe / Japan: get Docker Desktop from the official download page and pull the image from
ghcr.io. - After installing Docker Desktop, copy the commands in step 2, and paste the whole
docker runline at once before pressing Enter.
Three official ways to start it — use whichever one you picked:
# Docker (this is the method the screenshots use; the interface is at http://localhost:3000)
$b = New-Object byte[] 32; [Security.Cryptography.RandomNumberGenerator]::Create().GetBytes($b); $KEY = ($b | ForEach-Object { $_.ToString("x2") }) -join ""
docker run -d -p 127.0.0.1:3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data -e WEBUI_SECRET_KEY="$KEY" --name open-webui --restart always ghcr.io/open-webui/open-webui:main
# pip (the interface is at http://localhost:8080; needs Python 3.11 or 3.12)
pip install open-webui
open-webui serve
# uv (no global install; macOS / Linux example)
DATA_DIR=~/.open-webui uvx --python 3.11 open-webui@latest serve
Reading the port mapping: in -p 127.0.0.1:3000:8080, 127.0.0.1 binds the port to the local loopback only, 3000 is the port on your computer — change that number if it is taken — and 8080 is the port inside the container, so leave it alone. Security notice: the first local account registered in Open WebUI automatically becomes the administrator, so do not use -p 3000:8080 to expose the service directly to an untrusted LAN or the internet. If you need remote access, register the administrator locally and set a strong credential first, then expose it through an authenticating HTTPS reverse proxy. WEBUI_SECRET_KEY is the key used for local sign-in; generate a random string with the first command above. Windows has no openssl by default, so there is no need to install it.
Follow the screenshots: Windows, one step at a time¶
The 11 steps below each do one thing, and the orange numbers on the screenshots match ①②③ in the text one to one. Step 2 is done in the terminal; every other step is clicked in the browser.
Download Docker Desktop¶
Open the official Docker Desktop download page. First click ① Download Docker Desktop to expand the platform list, then use ② to choose Download for Windows – AMD64; if the PC is ARM64, choose Download for Windows – ARM64 from the list instead.

Done right you will see: the expanded list has two entries, AMD64 and ARM64, and the browser starts downloading the installer once you click one.
Start Open WebUI in PowerShell¶
Once Docker Desktop is installed and shows it is running, open Windows PowerShell. First paste the ① line and press Enter so that $KEY holds a random string; then paste the whole ② line and press Enter.
$b = New-Object byte[] 32; [Security.Cryptography.RandomNumberGenerator]::Create().GetBytes($b); $KEY = ($b | ForEach-Object { $_.ToString("x2") }) -join ""
docker run -d -p 127.0.0.1:3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data -e WEBUI_SECRET_KEY="$KEY" --name open-webui --restart always ghcr.io/open-webui/open-webui:main

Done right you will see: the terminal first shows image download progress, then prints a long string of letters and numbers (the container ID), and returns to the command prompt.
Stuck? It says openssl is not recognized as an internal or external command
You do not need to install openssl. On Windows, generate the random key with the first .NET command above; it stores the result in $KEY, and WEBUI_SECRET_KEY="$KEY" in the second command references it directly.
Open the local address and sign in¶
Type ① http://localhost:3000 into the browser address bar. On the first visit you see the 开始使用 (Get Started) onboarding page, and the first local account you create there automatically becomes the administrator; on later visits you get the 登录 Open WebUI (Sign in to Open WebUI) form instead, so fill in your email and password at ② and click 登录 (Sign in).

Done right you will see: after signing in you land on the main interface, with your avatar and name in the bottom-left corner. The first sign-in may show the release notes; click 确认,开始使用! (Okay, let's go!) at the bottom right, or press Esc to close them.
Stuck? The browser says this page cannot be reached
That means the container is not up yet. Go back to Windows PowerShell, paste the docker run command from step 2 again, wait for it to finish, then refresh the page; make sure the command uses -p 127.0.0.1:3000:8080 and the address bar says http://localhost:3000.
Open the user menu¶
Click the ① avatar in the bottom-left corner to open the 用户菜单 (User Menu), then click ② 管理员面板 (Admin Panel).

Done right you will see: the 管理员面板 (Admin Panel) opens, with a row of navigation items across the top; 设置 (Settings) is one of them.
Stuck? The menu has no 管理员面板 (Admin Panel)
That means the account you are signed in with is not an administrator. In Open WebUI only the first local account to register automatically becomes an administrator — sign in with that account, or ask an administrator to grant you permission.
Open the connections page¶
In the 管理员面板 (Admin Panel), click 设置 (Settings) at the top, then scroll the left sidebar to 管理员 → AI (Admin → AI) at the bottom and click ① 外部连接 (Connections). On the right is the 管理 OpenAI 接口连接 (Manage OpenAI API Connections) list; click the ② + button to start adding a connection.

Done right you will see: the 管理 OpenAI 接口连接 (Manage OpenAI API Connections) group appears on the right, already containing a default https://api.openai.com/v1, and that + button is in its top-right corner.
Fill in the address and key, then verify the connection¶
In the dialog, keep Connection Type as 外部 (External) and API Type as Chat Completions. Put https://api.qcode.cc/openai/v1 in the ① URL field, paste your key into API 密钥 (API Key) at ②, and keep the auth method as Bearer. When you are done, click the double-arrow 验证连接 (Verify Connection) button to the right of the URL, and a green message appears at ③.

Done right you will see: a 已验证服务器连接 (Server connection verified) message pops up at the top right, and the URL field contains the full https://api.qcode.cc/openai/v1 with no trailing slash.
Need an API key?
If you do not have a QCode account yet, Sign up for QCode 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 the API 密钥 (API Key) box with no leading or trailing spaces. You can pay by credit/debit card (Visa / Mastercard), Apple Pay / Google Pay, or cryptocurrency — see Payment methods.
Add the model IDs and save¶
Expand 高级 (Advanced), keep 提供商 (Provider) as 默认 (Default), and you can leave 模型 ID 前缀 (Prefix ID) empty. In 模型 ID (Model IDs), type gpt-6.2-sol and click 添加 (Add) on the right, then type glm-5.3 and click Add once more; two tags now appear at ①. When you are happy, click ② 保存 (Save).

Done right you will see: the two model IDs become small tags with a delete button, and after you click 保存 (Save) a message says OpenAI 接口设置已更新 (OpenAI API settings updated).
Stuck? The Model IDs box still says Leave empty to include… all models
That line means the allowlist is still empty; after typing gpt-6.2-sol you must click 添加 (Add) on the right, and it counts as added only once the tag appears. When the field is empty, Open WebUI fetches the model list automatically; once you fill it in, it lists only the IDs you added.
Confirm the connection is saved and enabled¶
Back on the 外部连接 (Connections) page, the ① row is the connection you just saved, with the address https://api.qcode.cc/openai/v1, and the toggle on its right stays on.

Done right you will see: besides the default OpenAI address, the list now has one more QCode address, and its toggle is on.
Go back to a new chat and open the model selector¶
Leave Settings and return to the 新对话 (New Chat) page on the left. Click ① the model selector at the bottom right of the input box to expand it, then choose ② gpt-6.2-sol from the list.

Done right you will see: the dropdown lists both gpt-6.2-sol and glm-5.3, and above them are 搜索模型 (Search models) and 设为默认 (Set as default).
Stuck? The model list is empty
Go back to the 外部连接 (Connections) page, open the QCode connection, and make sure 模型 ID (Model IDs) already has tags and that you clicked 保存 (Save). An empty list means the allowlist was not saved; adding IDs manually is the only reliable path.
Send your first sentence¶
With the model selected, type 你好,用一句话介绍你自己 (Hello, introduce yourself in one sentence) in the input box and press Enter to send. A few seconds later a reply appears at ①, and ② shows that the current model is gpt-6.2-sol.

Done right you will see: the reply bubble holds a fluent Chinese answer, the model name at the bottom right matches gpt-6.2-sol, and there is no error text.
Stuck? A red error appears in the reply bubble
First go back to the connections page and check two things: the URL is https://api.qcode.cc/openai/v1 with no trailing slash, and the key starts with cr_ and has no spaces. If it still fails, send a request in Windows PowerShell as described in Debug directly with curl below, and see what comes back.
Check the request page to confirm requests go through QCode¶
Open probe.qcode.cc, paste the same key, click 查询 (Query), then scroll to the request list. The latest few records boxed at ① are the requests Open WebUI just sent, their status is 200, and the timestamps match when you sent the message.

Done right you will see: the top row of the list has a status of 200 and a total time of about two seconds, which shows the request really went through QCode.
Verify it works¶
When all four of these line up, Open WebUI is fully connected to QCode:
- The
外部连接(Connections) list containshttps://api.qcode.cc/openai/v1, and its toggle is on; - The model selector in
新对话(New Chat) offersgpt-6.2-sol(and the Chinese model IDs you want to use); - Sending a sentence gets a reply within seconds, and the model name at the bottom right matches the one you picked;
- Enter the same key at probe.qcode.cc and you can see the matching request with status
200.
All done¶
You have started Open WebUI with Docker on Windows 11 and connected it to QCode. From now on, whenever you change browsers or computers, as long as the container is still running, open http://localhost:3000 and you can keep chatting. From here you can:
- Endpoints and API paths
- Chinese model integration
- Model selection
- Troubleshooting guide
- Next: compare the plans on the pricing page
- Go back to the Dashboard to check usage and balance
Common errors¶
| Error message | Why | What to do |
|---|---|---|
留空以包含来自 "https://api.qcode.cc/openai/v1/models" 端点的所有模型 |
This is not an error — it is placeholder text shown while the 模型 ID (Model IDs) allowlist is empty; when auto-detection fails to get the list, the model dropdown is empty |
Expand 高级 (Advanced), type gpt-6.2-sol in 模型 ID (Model IDs) and click 添加 (Add), then click 保存 (Save) once the tag appears |
401 Unauthorized / Invalid API key |
The key is wrong, contains spaces or quotes, or was copied with characters missing | Copy the full cr_... key again from the Dashboard, paste it into API 密钥 (API Key), strip leading and trailing spaces, then click the verify button again |
402 / insufficient quota / balance exhausted |
The plan quota is used up or the pay-as-you-go balance is insufficient | Check usage and balance in the Dashboard, renew or buy a pay-as-you-go pack, then retry |
404 / model not found |
The URL has an extra or missing /v1, or 模型 ID (Model IDs) contains a model QCode does not offer |
Keep the URL as https://api.qcode.cc/openai/v1; change the model ID to an available one such as gpt-6.2-sol |
429 / rate limit |
Rate or concurrency limit hit, usually after sending many requests in a short time | Slow down or reduce concurrency and retry after a minute or two; for quota problems see the 402 row |
The following are normal notices, not errors: 已验证服务器连接 (Server connection verified) only means the /models list was fetched — it does not mean the model is in the allowlist; OpenAI 接口设置已更新 (OpenAI API settings updated) means saving succeeded, and if the dialog button keeps spinning you can close it with × at the top right; the 最近更新内容于 Open WebUI (v0.13.4) release notes on first sign-in can be dismissed with 确认,开始使用! (Okay, let's go!) or Esc.
FAQ¶
What should I do when a key expires?¶
Two cases:
- A personal plan key cannot be renewed after it expires — you need to subscribe again and switch to 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 to a new key, go back to the 外部连接 (Connections) page, open the QCode connection, replace the API 密钥 (API Key) with the new one, and click 保存 (Save).
Why can't I use Claude in Open WebUI?¶
Open WebUI only sends OpenAI Chat Completions requests, while QCode's Claude models are offered only on the Anthropic protocol endpoint https://api.qcode.cc/api; the two protocols do not line up, so this page connects only GPT and Chinese models. To use Claude, switch to a tool that supports the Anthropic protocol — the default recommended Claude model is claude-opus-5-5, with claude-haiku-5-5 as the lightweight alternative; see Tool compatibility overview for choosing a tool.
After I fill in Model IDs, why do the new models disappear?¶
This is expected. When 模型 ID (Model IDs) is empty, Open WebUI requests the provider's model list every time and shows every model; once you fill in the allowlist, it lists only the IDs you added and no longer fetches the list. To use another model, go back to the connection and add one more ID.
Is the configuration still there after I close the browser or restart the computer?¶
Yes. The configuration and conversations are stored in the open-webui data volume mounted into the container (the -v open-webui:/app/backend/data in the command); after restarting the computer, start the container with Docker Desktop and open http://localhost:3000 again and everything is as before. Conversely, if the start command does not include this -v parameter, rebuilding the container loses the configuration.
Connection overview¶
| Item | Details |
|---|---|
| Available models | GPT ✅ (gpt-6.2-sol, gpt-6.2-astra) · Chinese ✅ (glm-5.3, kimi-k3, deepseek-v4-pro, qwen3.8-max) · Claude ❌ not available for the tool on this page · Gemini ❌ not offered by QCode |
| Protocol and address | OpenAI Chat Completions only: https://api.qcode.cc/openai/v1 (no trailing slash) |
| Where to configure | 管理员面板 → 设置 → 管理员 → AI → 外部连接 (Admin Panel → Settings → Admin → AI → Connections), in the 管理 OpenAI 接口连接 (Manage OpenAI API Connections) list |
| Official docs | docs.openwebui.com |
Open WebUI is a self-hosted chat web interface that can be started with Docker, pip or uv. It handles the interface, conversations and tools itself, and its backend follows the OpenAI Chat Completions standard, so one OpenAI-compatible connection is enough. The version checked here is 0.13.4.
Which protocol: fill in only the OpenAI-compatible address¶
Open WebUI only sends OpenAI Chat Completions requests, while QCode's Claude models go only through the Anthropic Messages endpoint; the two protocols do not line up. Its built-in Anthropic special case recognizes only the single hostname api.anthropic.com and still uses Chat Completions, so swapping in the QCode address will not work either.
- On this page: set the URL to
https://api.qcode.cc/openai/v1and use only the GPT and Chinese families; - To use Claude: switch to a tool that supports the Anthropic protocol, set the address to
https://api.qcode.cc/api, useclaude-opus-5-5as the default recommended model andclaude-haiku-5-5as the lightweight alternative; see Tool compatibility overview and Cherry Studio integration for picking a tool.
For the full protocol × model-family comparison, see Endpoints and API paths.
Admin connection fields¶
- Connection Type: keep
外部(External), so the browser connects to the provider directly from this machine. - API Type: keep
Chat Completions. - Auth method:
Bearer, with theAPI 密钥(API Key) box right below it. - Model IDs: empty means auto-detection; once filled, it lists only those IDs and no longer requests
https://api.qcode.cc/openai/v1/models. After the connection verifies, typing suggests the provider's IDs. - Prefix ID: optional. With the prefix
qcodeand the model IDglm-5.3, the selector showsqcode.glm-5.3(the prefix and the ID are joined with a dot). Only needed when connecting several providers whose models share names. - Provider: leave it as
默认(Default); this dropdown exists only on OpenAI-type connections. - Every saved connection has a toggle on its right, so you can disable it temporarily without deleting it.
To choose which IDs to add, see Chinese model integration and Model selection.
Self-hosted environment variables¶
Besides clicking in the admin interface, you can also configure the same address with environment variables:
# For Docker add them with -e in the start command; for pip / uv set them before starting
$env:OPENAI_API_BASE_URL="https://api.qcode.cc/openai/v1"
$env:OPENAI_API_KEY="cr_xxxxxxxx"
OPENAI_API_BASE_URLis the OpenAI base address, andOPENAI_API_KEYis the key;- To connect two gateways in one instance, use
OPENAI_API_BASE_URLSwith the addresses separated by semicolons; - After the first start, these variables are taken over by the values stored inside the container; restarting the container later will not pick up changes to the host environment variables again. Either set them before the first start, or change them in the
管理员面板(Admin Panel) afterwards.
Debug directly with curl¶
To tell which side is failing, call the endpoint directly in Windows PowerShell. Replace cr_xxxxxxxx with your key:
curl.exe -X POST https://api.qcode.cc/openai/v1/chat/completions -H "Authorization: Bearer cr_xxxxxxxx" -H "content-type: application/json" -d '{"model":"gpt-6.2-sol","messages":[{"role":"user","content":"ping"}]}'
A JSON response means the QCode side is fine and the problem is in the Open WebUI connection settings; an authentication- or path-related error means you should follow the Troubleshooting guide.
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. Use the global node by default and switch if access is poor:
| Node | OpenAI-compatible address |
|---|---|
| Global | https://api.qcode.cc/openai/v1 |
| Asia (mainland preferred) | https://asia.qcode.cc/openai/v1 |
| North America / Europe | https://us.qcode.cc/openai/v1 |
To switch nodes, go back to the 外部连接 (Connections) page, change the URL to the corresponding row above, and click 保存 (Save).
Known limitations¶
| Symptom | Why | What to do |
|---|---|---|
| The model list is empty or missing entries | Auto-detection did not get the list, or 模型 ID (Model IDs) is empty |
Add the IDs one by one in 模型 ID (Model IDs) and save |
| Fetching the model list is slow, or the interface hangs after saving an unreachable address | Fetching the list has a timeout limit, 10 seconds by default | Set AIOHTTP_CLIENT_TIMEOUT_MODEL_LIST=30, or delete the wrong address |
| A service on the host machine is unreachable from the container | Inside Docker, localhost means the container itself |
Only when the URL points at a local service, replace localhost with host.docker.internal; QCode is a public address, so this usually does not apply |
| An admin-configured connection returns 502 while user-configured ones work | Admin connections resolve the domain on the backend, and inside the container it may resolve to 127.0.0.1 |
This only affects URLs that point at a local service; change it to an address the backend can reach |
pip or uv install fails |
Wrong Python version | Use Python 3.11 or 3.12; 3.13 is not supported yet |
| The Provider dropdown is missing on another connection | That dropdown belongs only to OpenAI-type connections | Configure QCode with an OpenAI connection |
Two more things worth remembering:
- QCode does not offer the Gemini family, nor Claude on the OpenAI-compatible endpoint; when you need models from these two families, switch tools or switch model families.
- The Open WebUI 0.13.4 release notes state that Tether has replaced the old Direct Connections. This page still recommends the connection in the
管理员面板(Admin Panel), which is the supported path; Tether's direct-connection setup is not covered here.
Related docs¶
- Endpoints and API paths — which model family can use which protocol
- Tool compatibility overview — pick a tool that speaks the Anthropic protocol when you need Claude
- Chinese model integration — IDs and differences for GLM / Kimi / DeepSeek / Qwen
- Model selection — choose an ID by task
- Troubleshooting guide — QCode-side error lookup
- SillyTavern integration — another OpenAI-compatible client
Get started with QCode
One API key for Claude Code, Codex and more — billed per token, per-model prices on qcode.cc/models