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.

Updated 2026-11-26

Need an API key? Sign up →Endpoints & base URLs →

On This Page

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

  • Applies to: Windows 10 / 11 (64-bit) and macOS; the screenshots were taken on Windows 11
  • Software version: Open WebUI 0.13.4 (official Docker image, with Docker Desktop for Windows)
  • Screenshots updated: 2026-11
  • Time needed: 20 minutes (the first image pull may take a few minutes)
  • You will need: a QCode API key starting with cr_; Docker Desktop already installed

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.cc and probe.qcode.cc normally, and can pull images from ghcr.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:3000 for the Docker version, http://localhost:8080 for the pip / uv version

First, check what to note for your region:

Europe / Japan

  • The official download page and ghcr.io are 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.io and 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 run line 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.

Official Docker Desktop download page: click Download Docker Desktop (1) to expand the OS list, then choose Download for Windows – AMD64 (2)

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

In Windows PowerShell, first use .NET to generate a 32-byte random key and store it in $KEY (1), then run the official docker run command to start the container (2)

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).

Open http://localhost:3000 in the browser address bar (1); on the first visit, create the first local admin account, and afterwards fill in the email and password in the sign-in form and click Sign in (2)

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).

After signing in, click the bottom-left avatar to open the User Menu (1), then click Admin Panel in the menu (2)

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.

Settings page in the Admin Panel: open Admin → AI → Connections on the left (1), and click the + button in the Manage OpenAI API Connections list on the right (2)

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 ③.

Add Connection dialog: enter https://api.qcode.cc/openai/v1 as the URL (1), paste the QCode API key into the Bearer-auth API Key field (2), and after Verify Connection a Server connection verified message appears at the top right (3)

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).

After expanding Advanced, keep Provider as Default, add the two tags gpt-6.2-sol and glm-5.3 under Model IDs (1), then click Save at the bottom right (2)

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.

The https://api.qcode.cc/openai/v1 row appears in the Manage OpenAI API Connections list, with its toggle switched on (1)

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.

On the New Chat page, click the model selector at the bottom right of the input box (1), then choose gpt-6.2-sol from the list (2)

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.

After sending a Chinese prompt, a Chinese reply from gpt-6.2-sol arrives (1), and the bottom right of the input box shows the current model gpt-6.2-sol (2)

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.

The request list on probe.qcode.cc: the latest records at the top with status 200 correspond to the Open WebUI requests you just made (1)

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 contains https://api.qcode.cc/openai/v1, and its toggle is on;
  • The model selector in 新对话 (New Chat) offers gpt-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:

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/v1 and 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, use claude-opus-5-5 as the default recommended model and claude-haiku-5-5 as 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 the API 密钥 (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 qcode and the model ID glm-5.3, the selector shows qcode.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_URL is the OpenAI base address, and OPENAI_API_KEY is the key;
  • To connect two gateways in one instance, use OPENAI_API_BASE_URLS with 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.

Get started with QCode

One API key for Claude Code, Codex and more — billed per token, per-model prices on qcode.cc/models

Enterprise →