OpenClaw with QCode: Windows & macOS walkthrough, one screenshot per step
Follow 11 steps and 11 screenshots to install OpenClaw 2026.11.6 on Windows 11 or macOS, connect QCode's Anthropic and OpenAI compatible endpoints with the official wizard and openclaw.json, then send one message each with claude-opus-5-5 and gpt-6.2-sol in the built-in WebChat.
API 키가 필요하신가요? 회원가입 →엔드포인트 & Base URL →
이 페이지 목차
- Download and install
- Follow the screenshots: Windows, one step at a time
- Open the install entry on the OpenClaw website
- Check the Node.js version and install OpenClaw
- Choose Custom Provider in the wizard
- Fill in the endpoint address and key, choose Anthropic compatible
- Enter the model ID and let the wizard verify once
- Open the config file and add the two providers
- Set the key environment variable, then validate the config and the model list
- Start the local gateway and watch it hot-reload
- Say your first sentence to Claude in WebChat
- Switch to GPT and say one more sentence
- Check this request on probe
- Verify it works
- Common errors
- FAQ
- Connection overview
- Three details of the hand-written config
- Install in one command (non-interactive)
- Other ingress points
- Known limitations
- Related docs
Follow the 11 steps below and you will have the open-source assistant OpenClaw installed on Windows 11 or macOS, using both Claude and GPT through QCode.
Short answer: In Windows PowerShell, install OpenClaw 2026.11.6, pick Custom Provider in openclaw onboard and fill in https://api.qcode.cc/api, a cr_ key and the model claude-opus-5-5, then say one sentence in the built-in WebChat.
| Item | Fill in |
|---|---|
| Endpoint address (Claude / Anthropic) | https://api.qcode.cc/api |
| Endpoint address (GPT, Chinese models / OpenAI compatible) | https://api.qcode.cc/openai/v1 |
| Default recommended model (Claude) | claude-opus-5-5 |
| Default recommended model (GPT) | gpt-6.2-sol |
| Key format | cr_xxxxxxxx |
Checked on 2026-11-22 · OpenClaw 2026.11.6 · Windows 11
On a Mac? Run the same steps in Terminal. The screenshots show Windows PowerShell; on macOS, set a variable with
export NAME="value"instead of$env:NAME = "value", and read%USERPROFILE%\as~/in file paths.
- A Windows 10 / 11 PC (64-bit) or a Mac with internet access, able to run Windows PowerShell in Windows Terminal (Terminal on macOS)
- Node.js 24.16 or newer already installed (26+ recommended); if not, install it as described under Download and install below
- A QCode API key starting with
cr_already at hand. No account yet? Sign up first, pick a plan on the pricing page, then create the key in the Dashboard. - The PC can reach
openclaw.ai,registry.npmjs.org,api.qcode.ccandprobe.qcode.cc - Set aside about 20 uninterrupted minutes, and do not close the PowerShell window during the install
Download and install¶
OpenClaw is an open-source AI assistant that runs on your own computer: a self-hosted Gateway process connects to Discord, Telegram, Slack, iMessage and other chat platforms, and there are macOS / Windows / Linux clients as well. It is not a code editor; its value lies in being a "multi-model gateway + personal assistant" — as long as you write an OpenAI or Anthropic compatible address in the config, it can switch to QCode's models. Once connected, this one cr_ key is all you need, with no additional account with any model vendor.
The official entry points are just two:
- OpenClaw: https://openclaw.ai/. Scroll down to "QUICK START", which offers three install methods:
Apps,One-linerandnpm. - Node.js: https://nodejs.org/en/download (on the command line you can also run
winget install OpenJS.NodeJS).
There are three ways to install on Windows; pick one:
- Desktop client (the
Appstab): downloadOpenClawCompanion-Setup-x64.exe(ordinary PCs) orOpenClawCompanion-Setup-arm64.exe(ARM machines) and double-click to install. - One-line script (the
One-linertab): in Windows PowerShell runpowershell -c "irm https://openclaw.ai/install.ps1 | iex". - npm (the
npmtab): install Node.js first, then runnpm install -g openclaw@latest.
The screenshots below follow the third one: it keeps every command in PowerShell, so all the later steps fit in the same window, and upgrading later is easy too.
Network conditions differ slightly by region; pick yours first:
Europe / Japan
- Use the official entry points directly: install Node.js from https://nodejs.org/en/download and OpenClaw with
npm install -g openclaw@latest. - Close the PowerShell window and open it again after installing, so the new
PATHtakes effect. - If SmartScreen blocks the installer, click "More info" → "Run anyway".
Mainland China
- Node.js:
https://nodejs.orgoccasionally will not connect; get the same version from the Chinese download page https://nodejs.cn/download or the mirror https://npmmirror.com/mirrors/node/ instead. - Installing packages with npm: when
registry.npmjs.orgkeeps dropping out, switch the registry first:npm config set registry https://registry.npmmirror.com; to switch back after installing, runnpm config delete registry. - OpenClaw itself: if
https://openclaw.ai/will not open, wait a moment or try another network; whether a mirror carries the same package has not been checked, so go back to the official source if the install fails. - Security prompts: if the downloaded installer shows "Windows protected your PC", click "More info" → "Run anyway"; click "Yes" on the User Account Control window.
Russia / Iran
- Use the same official entry points: https://openclaw.ai/ and https://nodejs.org/en/download.
- If a download times out, retry once or switch networks; no extra region setting is needed.
- After installing, close the window and open it again, then check the command with
node --version.
Arab countries
- Same channels as Europe / Japan: the official
openclaw.ai,nodejs.organd npm all work directly. - Install Node.js first, then
npm install -g openclaw@latest, then close the window and open it again. - On a SmartScreen prompt click "More info" → "Run anyway".
Follow the screenshots: Windows, one step at a time¶
The 11 steps below do one thing each, and the orange numbers on the screenshots map one-to-one to ①②③ in the text. Steps 3–5 use the official wizard to connect QCode, which is the fastest route; steps 6–8 open the same config file and add GPT and Chinese models as well.
Open the install entry on the OpenClaw website¶
Type https://openclaw.ai/ in the browser address bar and scroll down to the "QUICK START" section. ① marks the three install-method tabs at the top: Apps, One-liner and npm; ② marks the Windows download buttons and the install command below them.

Done right you will see: "QUICK START" at the top of the page, with the three tabs and the Windows download buttons visible at the same time.
Check the Node.js version and install OpenClaw¶
Open Windows PowerShell in Windows Terminal and type node --version, then press Enter; ① prints the version number, and anything from v24.16 up is fine. Next type npm install -g openclaw@latest and press Enter, and wait for it to finish; finally type openclaw --version and ② shows OpenClaw 2026.11.6.

Done right you will see: a version number starting with v at ①, OpenClaw 2026.11.6 plus a build number in brackets at ②, and the window back at the command prompt.
Stuck? It says node or npm is not found, or the install hangs halfway
That means Node.js is not installed yet, or the window was not reopened after installing it. Install Node.js as described under Download and install above, close the current PowerShell window completely, and open a new one. npm install -g openclaw@latest installs several hundred packages and usually takes 3–5 minutes; the screen sitting still for a while is normal, so do not close the window halfway.
Choose Custom Provider in the wizard¶
In the same window type openclaw onboard and press Enter. The wizard first asks How would you like to start?; press Enter to take the default Quick start. It then asks What would you like to create?; press Enter again for the default One agent. When the Model/auth provider list appears, use the arrow keys to move to More... and press Enter; once all providers are expanded, select ① Custom Provider and press Enter.

Done right you will see: the Custom Provider line highlighted, with Any OpenAI or Anthropic compatible endpoint in brackets after it.
Stuck? Custom Provider is missing from the list
It is not in the default list: select More... at the bottom first, and the full list with a search box appears. If the window is too short the list gets cut off, so make the window taller and scroll again.
Fill in the endpoint address and key, choose Anthropic compatible¶
At the API Base URL question, enter https://api.qcode.cc/api at ① — stop at /api, with no trailing slash, and not /v1/messages. For the key question choose Paste API key now and paste your cr_xxxxxxxx; the terminal masks it into a row of dots automatically. In the final Endpoint compatibility menu, choose ② Anthropic-compatible.

Done right you will see: the address line reads https://api.qcode.cc/api, the key line shows only dots, and the Endpoint compatibility line shows Anthropic-compatible.
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 the wizard. You can pay by credit/debit card (Visa / Mastercard), Apple Pay / Google Pay, or cryptocurrency — see Payment methods.
Stuck? You cannot select Anthropic-compatible in the menu
The menu has three items, from top to bottom OpenAI-compatible, OpenAI Responses-compatible and Anthropic-compatible; use the down arrow to move two items down and press Enter. Do not type anthropic-messages here — that is how the api field is written in the config file, and the wizard only accepts menu items.
Enter the model ID and let the wizard verify once¶
At the Model ID question enter the default recommendation claude-opus-5-5 at ① and press Enter. Press Enter on Endpoint ID to accept the custom-api-qcode-cc the wizard offers; leave Model alias empty and press Enter. The wizard immediately sends a real conversation with this key, and ② shows Inference verified plus the time this request took.

Done right you will see: Inference ready first in the box, then Inference verified and a timing line like AI check: replied in 6.9s (the number of seconds differs every time).
Stuck? The verification did not pass
Check three things in order: the address is https://api.qcode.cc/api with no trailing slash; the key starts with cr_ and was not pasted with extra spaces; Endpoint compatibility is set to Anthropic-compatible. If all three are right and it still fails, press Ctrl + C to quit and use the hand-written config file from step 6 instead.
Open the config file and add the two providers¶
The wizard has already written the config to %USERPROFILE%\.openclaw\openclaw.json. Run notepad $env:USERPROFILE\.openclaw\openclaw.json in Windows PowerShell to open it. ① is mode: "merge" under models, which keeps the built-in providers and appends QCode; ② is the qcode entry that uses the Anthropic protocol, with baseUrl as https://api.qcode.cc/api, api as anthropic-messages and the key written as a ${QCODE_API_KEY} reference; ③ is the qcode_openai entry that uses the OpenAI compatible protocol, with baseUrl as https://api.qcode.cc/openai/v1, api as openai-completions and the models gpt-6.2-sol and glm-5.3.

Done right you will see: both a qcode and a qcode_openai entry under models.providers, one address ending in /api and the other in /openai/v1.
If you are not sure where to start, just write the whole file like this (JSON5 allows comments and trailing commas, and the // comments explain each part):
{
gateway: { mode: "local", port: 18789, bind: "loopback" },
agents: {
defaults: {
model: { primary: "qcode/claude-opus-5-5" },
models: {
"qcode/claude-opus-5-5": {},
"qcode_openai/gpt-6.2-sol": {},
"qcode_openai/glm-5.3": {},
},
},
},
models: {
mode: "merge", // keep the built-in providers and append QCode
providers: {
qcode: {
baseUrl: "https://api.qcode.cc/api",
apiKey: "${QCODE_API_KEY}",
api: "anthropic-messages",
models: [
{ id: "claude-opus-5-5", name: "Claude Opus 5.5", input: ["text", "image"] },
],
},
qcode_openai: {
baseUrl: "https://api.qcode.cc/openai/v1",
apiKey: "${QCODE_API_KEY}",
api: "openai-completions",
models: [
{ id: "gpt-6.2-sol", name: "GPT-6.2 Sol" },
{ id: "glm-5.3", name: "GLM-5.3" },
],
},
},
},
}
Stuck? The config does not take effect after saving
First make sure you edited the %USERPROFILE%\.openclaw\openclaw.json that the gateway actually reads (not a copy on the desktop, and not a downloaded sample), and that the file name is exactly openclaw.json. Remember to press Ctrl + S to save; the next step runs openclaw config validate, which shows at once whether the syntax is right.
Set the key environment variable, then validate the config and the model list¶
Open another Windows PowerShell window and enter $env:QCODE_API_KEY = "cr_xxxxxxxx" at ①, replacing cr_xxxxxxxx with your own key; the echo is masked. Then run openclaw config validate, and ② shows the config is valid with no syntax errors; run openclaw models list, and ③ shows three models — qcode/claude-opus-5-5 (default, supports text and images), qcode_openai/gpt-6.2-sol and qcode_openai/glm-5.3 — with yes in the Auth column.

Done right you will see: no red error from config validate, all three QCode models in models list, and yes in every Auth cell.
Stuck? The Auth column says no
That means QCODE_API_KEY is not set in this window: the variable name must match exactly, the value must be in quotes, and no error may appear after Enter. Also, the $env: form only applies to the current window, so do not open a new window after setting it. Use openclaw models list to check, and avoid openclaw models status — it prints the first and last characters of the key, so mask them before taking a screenshot or sharing logs.
Start the local gateway and watch it hot-reload¶
Run openclaw gateway run in the same window; it takes over the window and keeps running, so do not close it. ① shows [gateway] ready, which means the local gateway is listening on 127.0.0.1:18789. After that, every time you save openclaw.json, ② prints a line [reload] config source revision 1 accepted (file) automatically and the config takes effect at once, with no restart.
![After openclaw gateway run the log prints [gateway] ready (1); saving the edited openclaw.json makes the gateway hot-reload and print [reload] config source revision 1 accepted (file) (2)](/static/images/tut/openclaw/202611/zh/08-gateway-hot-reload.webp)
Done right you will see: after [gateway] ready the window no longer returns to the command prompt; edit the config file and save, and within seconds another line [reload] ... accepted (file) appears.
Stuck? It says the local gateway cannot be reached
That means the gateway is not running. Run openclaw gateway run in this window first, wait for [gateway] ready, and then go on to the next step; if it says Gateway did not become reachable at ws://127.0.0.1:18789, it is the same cause.
Say your first sentence to Claude in WebChat¶
Do not close the gateway window; open another Windows PowerShell and run openclaw dashboard, and the browser opens the built-in Chinese-language WebChat console (at http://127.0.0.1:18789/chat/main). Type a sentence in the input box at the bottom and press Enter; ① shows Claude's reply, and the model bar at ② in the bottom right shows the model currently in use.

Done right you will see: your sentence in a bubble on the right, a Chinese reply on the left a few seconds later, and Claude's model name in the bottom right.
Stuck? The page keeps spinning or will not open
First make sure the gateway window is still running and was not closed. openclaw dashboard initialises local data on first launch, so waiting about a minute is normal; if the browser does not pop up, open the 127.0.0.1:18789 address it printed manually.
Switch to GPT and say one more sentence¶
Still in the same WebChat, type /model qcode_openai/gpt-6.2-sol in the input box and press Enter. ① shows two prompt lines in a row, meaning the model has switched to qcode_openai/gpt-6.2-sol. Send another sentence; ② is the reply that came back through the OpenAI compatible endpoint this time, and the model bar at ③ in the bottom right changes to GPT-6.2 Sol as well.

Done right you will see: the prompt at ① mentions qcode_openai/gpt-6.2-sol, a new Chinese reply at ②, and GPT-6.2 Sol at ③ in the bottom right.
Stuck? You clicked the model dropdown but it did not switch
Clicking a dropdown item sometimes does not take effect; the slash command in the input box is the reliable way: type /model qcode_openai/gpt-6.2-sol and press Enter. To switch back, type /model qcode/claude-opus-5-5. If the dropdown has only one item, the agents.defaults.models allow-list from step 6 is incomplete.
Check this request on probe¶
Open probe.qcode.cc, paste the same cr_ key and click 查询 (Query). Scroll down to the request list; the newest rows boxed at ① are the requests OpenClaw just sent, with status 200 and matching times. This table lists only time, status, connection, first byte, total time, response size and output rate — it does not show model names or token counts, so time and status are all you need.

Done right you will see: the top rows of the list all show status 200, and the times match the moment you sent the messages.
Verify it works¶
When these four things line up, OpenClaw is fully connected to QCode:
openclaw --versionprintsOpenClaw 2026.11.6;openclaw config validatereports no syntax errors, and inopenclaw models listtheAuthforqcode/claude-opus-5-5,qcode_openai/gpt-6.2-solandqcode_openai/glm-5.3is allyes;- in the built-in WebChat both the Claude and the GPT model return Chinese replies;
- entering the same key at probe.qcode.cc shows the matching requests with status 200.
All done¶
You have installed OpenClaw on Windows 11 and connected it to QCode so that it uses Claude, GPT and Chinese models at the same time. From now on, open Windows PowerShell, set QCODE_API_KEY, run openclaw gateway run, and you can chat right away. From here you can:
- Endpoints and API formats
- Chinese models
- Tool compatibility overview
- 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 |
|---|---|---|
Windows detected - OpenClaw runs great on WSL2! Native Windows might be trickier. |
Not an error: it is a reminder printed when openclaw onboard starts, suggesting WSL2, though native Windows works too |
Just press Enter to continue; there is no need to install WSL2. Fill in the address, key and model as in the screenshots here |
For the full step-by-step wizard, run 'openclaw onboard --classic' |
The new wizard runs a streamlined flow by default, and this line tells you a full version is available | The streamlined flow is enough, so continue with steps 3–5; for the full version that asks every question, run openclaw onboard --classic instead |
Gateway did not become reachable at ws://127.0.0.1:18789 |
The local gateway is not running, so openclaw dashboard cannot find it |
Open another Windows PowerShell window, run openclaw gateway run, and open the console after [gateway] ready appears |
[FS_SAFE_NATIVE_FALLBACK] |
A native component of OpenClaw on Windows fell back to the portable version; this is a normal notice | Nothing to do: it only makes the first launch 10–25 seconds slower. It does not affect the QCode connection, so do not change the config because of it |
FAQ¶
What happens when my key expires?¶
Two cases:
- A personal plan key cannot be renewed when it expires; you can only reopen a 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 recovers automatically.
After switching keys, set $env:QCODE_API_KEY again (and update it in your user-level environment variable or config file if you put it there), then restart the gateway.
The key variable is gone after I close PowerShell; how do I make it permanent?¶
$env:QCODE_API_KEY = "..." only applies to the current window. To have every PowerShell window carry it, write it into a user-level environment variable:
[System.Environment]::SetEnvironmentVariable("QCODE_API_KEY", "cr_xxxxxxxx", "User")
After that, close all PowerShell windows and open them again for the new variable to take effect; the gateway also needs one restart to read it.
The wizard already connected Claude; how do I add GPT and Chinese models?¶
Open %USERPROFILE%\.openclaw\openclaw.json as in step 6, add the qcode_openai entry under models.providers, list all three models in agents.defaults.models, and save; the gateway hot-reloads automatically. Then switch in WebChat with /model qcode_openai/gpt-6.2-sol or /model qcode_openai/glm-5.3.
Nothing happens after I edit openclaw.json; what now?¶
First check whether the gateway window printed [reload] ... accepted (file): if not, you probably edited a file the gateway is not reading, so use openclaw config file to confirm the real path. If it printed but the model did not change, run openclaw models list once to check for a misspelled model ID and whether Auth is yes.
Do I have to install WSL2?¶
No. OpenClaw installed natively on Windows runs the wizard, the gateway, hot reload and the built-in WebChat normally. Only if you plan to keep bots such as Discord or Telegram running in the background for a long time is WSL2 worth considering.
Connection overview¶
| Item | Details |
|---|---|
| Available models | Claude ✅ (Anthropic protocol) · GPT ✅ · Chinese models ✅ (OpenAI compatible protocol) · Gemini ❌ (QCode does not offer Gemini models yet) |
| Protocol and Base URL | Anthropic: https://api.qcode.cc/api · OpenAI compatible: https://api.qcode.cc/openai/v1 |
| Config location | %USERPROFILE%\.openclaw\openclaw.json (JSON5, hot-reloaded by the gateway), or the openclaw onboard wizard |
| Official docs | Custom Providers |
Three details of the hand-written config¶
The openclaw.json from step 6 has three easy traps, all from the official Custom Providers docs:
apiKeysupports${ENV_VAR}environment variable substitution; always use the reference and never write the key in plain text into the file.apiis the request adapter: writeanthropic-messagesfor the Anthropic protocol andopenai-completionsfor the OpenAI protocol; when onlybaseUrlis set withoutapi, it is treated asopenai-completionsby default.- For a model to accept images (vision) you must write
input: ["text", "image"]explicitly, otherwise images are only passed to the model as a text reference.
There are also two spelling differences; do not mix them up: the wizard menu offers Anthropic-compatible, the command-line flag --custom-compatibility takes anthropic, and the api value in the config file is anthropic-messages.
Install in one command (non-interactive)¶
If you do not want to answer the questions one by one, put the whole openclaw onboard on a single line. With the Claude model as an example:
openclaw onboard --non-interactive --accept-risk `
--auth-choice custom-api-key `
--custom-base-url "https://api.qcode.cc/api" `
--custom-model-id "claude-opus-5-5" `
--custom-api-key "$env:QCODE_API_KEY" `
--custom-compatibility anthropic
The block above uses Windows PowerShell syntax: the line-continuation character is a backtick (`) and the environment variable is $env:QCODE_API_KEY. Do not copy the Linux / macOS \ and $QCODE_API_KEY forms.
--accept-risk means you have read and accepted OpenClaw's risk notice: a local assistant like this executes commands, reads and writes files, and accesses the network. Use it only when you trust where the installer came from and understand what it will do with those permissions, and never paste a command with --accept-risk into a script from an untrusted source.
It does the same as the wizard and likewise sends one real request before saving. When the command finishes the gateway does not stay running, so you still need to run openclaw gateway run; add --skip-health to skip the health check.
Other ingress points¶
The three ingress domains have the same capabilities and differ only in network routing, and the same key works on all of them. Use the global api.qcode.cc by default; if access from mainland China is unstable, switch to asia.qcode.cc, and for North America / Europe you can use us.qcode.cc. Switch only when the network is unstable:
| Ingress point | Anthropic (Claude) | OpenAI compatible (GPT / Chinese models) |
|---|---|---|
| Global (default) | 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 |
Known limitations¶
- The Base URL stops at
/api: OpenClaw appends the rest of the request path itself, so writehttps://api.qcode.cc/apifor the Anthropic entry and nothttps://api.qcode.cc/api/v1/messages. openai-responsesis only for GPT models: the official docs say this adapter is used only when the backend supports/v1/responses; QCode's Responses endpoint serves only GPT models, so Chinese models should useopenai-completions(see Endpoints and API formats for the protocol comparison).- Non-direct endpoints suppress beta headers: on third-party compatible gateways OpenClaw removes Anthropic's beta request headers automatically, which is good for a compatible gateway; if you hit a 400 about
anthropic-betain another tool, that is not OpenClaw's problem. - No Gemini example: the
google-generative-aiadapter is in the official enum, but QCode does not offer Gemini models yet. - The official docs follow the GitHub
mainbranch; the online render atdocs.openclaw.aimay lag slightly behind.
Related docs¶
- Endpoints and API formats — protocol comparison and how to fill in the Base URL
- Tool compatibility overview — protocol support for each tool
- CC Switch configuration — switch Claude Code / Codex providers with a GUI
- Chinese models — on-sale ids for GLM / Kimi / DeepSeek / Qwen
- Troubleshooting guide
- LobsterAI from NetEase Youdao — NetEase Youdao's desktop client based on OpenClaw; custom models accept both the Anthropic compatible and the OpenAI compatible address
- AutoClaw — Zhipu's local OpenClaw app; custom models use the OpenAI Chat protocol
QCode 시작하기
Claude Code, Codex 등에 API 키 하나를 쓰세요. 토큰 단위로 과금하며 모델별 가격은 qcode.cc/models에 있어요