ZCode with QCode: Windows & macOS walkthrough (one screenshot per step, no sign-in)

Follow 16 steps and 16 Windows 11 screenshots to configure QCode Claude and OpenAI protocols in ZCode Desktop v3.18.2 on Windows and macOS without signing in to a Zhipu or Z.ai account, switch models in chat, and check the app version.

Updated 2026-11-26

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

On This Page

Follow the 16 steps below to install ZCode Desktop on Windows 11 or macOS and use Claude, GPT, and Chinese models through QCode directly — without signing in to a Zhipu or Z.ai account.

Short answer: On the ZCode Desktop v3.18.2 welcome screen, click 使用 API key (Use API key) → 暂时跳过 (Skip for now) to enter the main workspace, open 管理模型 (Manage Models, under Settings -> Model Settings), click + 添加供应商 (+ Add Provider) in the top right → 创建自定义供应商 (Create Custom Provider), and create two providers: QCode Claude (Anthropic Messages) and QCode OpenAI (Chat Completions). Fill in each Base URL, your QCode key, and the model ID, then switch between them in chat.

Item Fill in
QCode Claude Base URL https://api.qcode.cc/api
QCode Claude API format / model Anthropic Messages (/v1/messages) / claude-sonnet-5-5
QCode OpenAI Base URL https://api.qcode.cc/openai/v1
QCode OpenAI API format / model Chat Completions (/chat/completions) / gpt-6.2-sol
Key format cr_xxxxxxxx

Checked on 2026-11-22 · ZCode Desktop App 3.18.2 · Windows 11

ZCode is an open-source AI coding workspace from Zhipu (Z.ai) offering both a desktop app and a terminal CLI. Desktop v3.18.2 lets you add custom providers without signing in to any official account, and natively supports Anthropic Messages, Chat Completions, and Responses — so one QCode key connects you to Claude, GPT, and Chinese models.

  • Applies to: Windows 10 / 11 (64-bit / ARM64; macOS and Linux builds are also available)
  • Software version: ZCode Desktop App 3.18.2
  • Screenshots updated: 2026-11
  • Time needed: 10 minutes
  • You will need: a QCode API key starting with cr_ (no Zhipu / Z.ai account required)

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

  • Your PC runs Windows 10 / 11 (64-bit or ARM64), or your Mac runs macOS, with at least 900 MB of available disk space
  • No Zhipu or Z.ai account registration or sign-in is required — the custom provider path connects directly to QCode
  • You have already registered on QCode.cc and copied a cr_ API key from the Dashboard. No account yet? Sign up for QCode first, choose a plan on the pricing page, then create a key in the Dashboard.
  • Your PC can reach zcode.z.ai, api.qcode.cc, and probe.qcode.cc
  • Set aside about 10 minutes to finish downloading, installing, and verifying both protocols step by step

Download and install

ZCode Desktop comes as an official standalone installer. The Windows x64 installer is about 226.7 MiB and defaults to a per-user install, which does not trigger a User Account Control (UAC) administrator prompt.

Official download pages:

Download and network notes vary slightly by region — pick your region first:

Europe / Japan

  • Open the English install page (or the Chinese install page) and click the download button for your Windows architecture.
  • Double-click the installer and keep the default per-user option (仅为我安装 / Install just for me) — no administrator privileges are needed.

Mainland China

  • Open the Chinese install page. The page detects Windows automatically — click the main button 立即下载 ZCode 适用于 Windows (Download ZCode for Windows now) to get the x64 installer; on an ARM64 PC, select Windows ARM64 in the "Other platforms" card below.
  • If Windows Firewall or antivirus software blocks the installer, allow the install directory through; if Windows shows "Windows protected your PC", click More info → Run anyway.
  • After installing, if latency to the main QCode endpoint is high, switch the endpoint host to the Asia node asia.qcode.cc.

Arab countries

  • Download the matching Windows installer (x64 or ARM64) directly from the official install page.
  • Keep the default installation options, skip account sign-in on first launch, and follow the custom provider steps below.

Russia / Iran

  • Prefer downloading the Windows installer from the English install page; if the download stalls or times out, make sure your network can reach zcode.z.ai and retry.
  • Once installed, confirm your PC can reach api.qcode.cc (or asia.qcode.cc / us.qcode.cc) before entering your key in the steps below.

Follow the screenshots: Windows 11, one step at a time

The 16 steps below each do one thing. The orange callout numbers on the screenshots match ①②③ in the text one to one. Because the screenshots were captured on the Chinese UI of ZCode Desktop, Chinese button labels are shown alongside their English meanings.

Open the official site and download the Windows installer

Open zcode.z.ai/cn/docs/install (or zcode.z.ai/en/docs/install) in your browser. The page detects Windows automatically: check the current version at ② (for example v3.18.2), then click ① 立即下载 ZCode 适用于 Windows (Download ZCode for Windows now) to download the x64 installer. If your PC uses an ARM64 processor, scroll down to the 其他平台 (Other platforms) card and choose Windows ARM64.

Official Chinese ZCode install page automatically detecting Windows, highlighting the Download ZCode for Windows button (1) and current version v3.18.2 (2)

Done right you will see: your browser starts downloading ZCode-3.18.2-win-x64.exe (about 226.7 MiB), and once finished the file appears in your Downloads folder.

Launch the setup wizard and keep the default option

Double-click the downloaded ZCode-3.18.2-win-x64.exe to start the ZCode 安装 (ZCode Setup) wizard. The default option 仅为我安装 (Install just for me) performs a per-user install with no administrator rights needed — click ① 下一步 (Next) at the bottom right.

First page of the ZCode setup wizard with Install just for me selected by default and the Next button highlighted at the bottom right

Done right you will see: the wizard moves to the 选择安装位置 (Choose Install Location) page without raising a UAC administrator prompt.

Stuck? Blocked by Windows SmartScreen or antivirus software

If Windows shows "Windows protected your PC", click More info → Run anyway. If your firewall or antivirus software blocks the installation, allow the installer and the default install directory through.

Finish installing and launch ZCode

On the 选择安装位置 (Choose Install Location) page, keep the default path and click 安装 / 下一步 (Install / Next), then wait about half a minute for the progress bar to finish. On the completion page, keep 运行 ZCode (Run ZCode) checked and click ① 完成 (Finish) to launch the app.

ZCode installation complete page with Run ZCode checked and the Finish button highlighted at the bottom right

Done right you will see: the setup wizard closes and the ZCode desktop window opens automatically a few seconds later.

Skip account sign-in on the welcome screen and click Use API key

First launch stops on the 欢迎来到 ZCode (Welcome to ZCode) screen. Do not click the white button 浏览器授权登录 (Browser OAuth Sign-In) at the top — click ① 使用 API key (Use API key) below it instead.

First-launch Welcome to ZCode screen avoiding Browser OAuth Sign-In at the top and highlighting the Use API key button below

Done right you will see: the welcome card expands in place, revealing a provider dropdown and an API Key input box.

Click Skip for now and close the initial onboarding

The expanded card only accepts official BigModel and Z.ai keys — do not paste your QCode key here. Click ① 暂时跳过 (Skip for now) at the very bottom of the card. If a preference onboarding flow appears next (such as picking a work focus or UI mode), click × at the top right of the onboarding sidebar to exit, or click through 跳过 (Skip).

Expanded API key card noting not to enter a QCode key here and highlighting the Skip for now button at the bottom

Done right you will see: after skipping the welcome card and onboarding, you land directly in the main ZCode workspace without signing in to any account.

Stuck? Accidentally pasted your QCode key into the welcome screen input

The input on the welcome screen only talks to official BigModel or Z.ai endpoints, so a QCode key fails validation there. Clear the field, click 暂时跳过 (Skip for now) at the bottom, and add a custom provider under Model Settings in the following steps.

Click Manage Models in the main workspace

In the main workspace, click ① 管理模型 (Manage Models) at the bottom right of the chat input box (you can also click 配置 / Configure in the banner above the input, or click the gear icon 设置 / Settings at the bottom left → 模型设置 / Model Settings).

ZCode main workspace highlighting the Manage Models button at the bottom right of the chat input box

Done right you will see: the window switches to the 设置 -> 模型设置 (Settings -> Model Settings) panel, with the default provider list on the left.

Click + Add Provider in the top right

In the 设置 -> 模型设置 (Settings -> Model Settings) panel, click the white button ① + 添加供应商 (+ Add Provider) in the top-right corner.

Model Settings panel inside Settings highlighting the + Add Provider button in the top-right corner

Done right you will see: the right pane switches to a grid of provider template cards.

Choose Create Custom Provider

In the provider template grid, find and click ① 创建自定义供应商 (Create Custom Provider).

Provider template grid highlighting the Create Custom Provider card

Done right you will see: 新供应商 (New Provider) appears immediately under 自定义供应商 (Custom Providers) on the left, a blank configuration form opens on the right, and the enable switch in the top right is turned on by default.

Configure Base URL, protocol, and key for QCode Claude

First click ... (More) at the top right of the details pane → 重命名 (Rename), change 新供应商 (New Provider) to QCode Claude, and press Enter. Then fill in the three fields in order:

  • In ① Base URL, enter https://api.qcode.cc/api (no trailing /; users in Mainland China can also use the Asia node https://asia.qcode.cc/api, and users in North America/Europe can use https://us.qcode.cc/api);
  • Confirm that ② API 格式 (API Format) stays on the default Anthropic Messages (/v1/messages);
  • In ③ API Key, paste your QCode key starting with cr_ (masked as dots by default — click the eye icon on the right to double-check).

Click any blank area outside the fields to auto-save; there is no separate save button.

QCode Claude custom provider form highlighting the Base URL field, API Format dropdown set to Anthropic Messages, and masked API Key field

Done right you will see: the title reads QCode Claude, Base URL is https://api.qcode.cc/api, API Format is Anthropic Messages (/v1/messages), and the API Key box shows a row of dots.

Need an API key?

If you do not have a QCode account yet, Sign up for QCode first. If you prefer to pay by actual usage, buy a Pay-as-you-go Pack first, then create and copy a cr_ key in the Dashboard and paste it back into the API Key field above. You can pay by credit/debit card (Visa / Mastercard), Apple Pay / Google Pay, or cryptocurrency — see Payment methods.

Add a model for QCode Claude

Below the form, click + 添加模型 (+ Add Model) at the top right of the model list to open the dialog. Type claude-sonnet-5-5 into ① 模型 ID (Model ID) — after a moment a green notice 已匹配到智能配置 (Smart preset matched) appears below and fills in the context window and vision settings automatically — then click ② 保存 (Save) at the bottom right.

Add Model dialog with claude-sonnet-5-5 entered in the Model ID field and smart preset matched, highlighting the Model ID input and Save button

Done right you will see: the dialog closes, the model configuration is saved, and you return to the QCode Claude details page.

Confirm QCode Claude is enabled and ready

Check three indicators on the page: QCode Claude under 自定义供应商 (Custom Providers) on the left (①) shows a green dot, the enable switch at the top right (②) is turned on, and claude-sonnet-5-5 appears in the model list below (③). You can also click the plug icon 测试模型 (Test Model) on the right side of the model row to check connectivity right away.

Completed QCode Claude configuration page highlighting the green status dot beside QCode Claude on the left, the enabled toggle at top right, and claude-sonnet-5-5 in the model list

Done right you will see: the status dot beside QCode Claude turns from orange to green, the enable toggle stays on, and claude-sonnet-5-5 is listed under models.

Add the QCode OpenAI provider and a GPT model

To use GPT models as well, click + 添加供应商 (+ Add Provider) in the top right → 创建自定义供应商 (Create Custom Provider), and use ... → 重命名 (Rename) to name it QCode OpenAI (①). Set Base URL to https://api.qcode.cc/openai/v1, change ② API 格式 (API Format) to Chat Completions (/chat/completions), paste the same cr_ key into API Key, then click + 添加模型 (+ Add Model), enter gpt-6.2-sol, and click 保存 (Save) (③).

Completed QCode OpenAI configuration page highlighting QCode OpenAI enabled alongside QCode Claude on the left, API Format set to Chat Completions, and gpt-6.2-sol in the model list

Done right you will see: both QCode Claude and QCode OpenAI show green dots side by side under 自定义供应商 (Custom Providers) on the left, and gpt-6.2-sol appears in the model list on the right.

Stuck? Can I add Claude models under QCode OpenAI?

No. On QCode, Claude models use the Anthropic Messages protocol (https://api.qcode.cc/api) only, while GPT models use the OpenAI-compatible protocol (https://api.qcode.cc/openai/v1). Adding a Claude model under QCode OpenAI causes Test Model or chat requests to report that the model is not available on that endpoint. Chinese models (GLM / Kimi / DeepSeek / Qwen) work under either provider.

Return to the workspace and open the model selector

Click 返回工作区 (Back to Workspace) in the top left, then click the model name at the bottom right of the chat input box to expand the model selector. Use ① at the top to switch providers (QCode Claude / QCode OpenAI), select claude-sonnet-5-5 in the middle at ②, and adjust the 思考强度 (Thinking effort) slider at the bottom if needed (shortcut Ctrl+T).

Model selector expanded in the main workspace, highlighting the provider switcher bar at the top and claude-sonnet-5-5 in the model list

Done right you will see: you can switch between both QCode custom providers inside the model selector, and after selecting claude-sonnet-5-5, that model name appears at the bottom right of the input box.

Send a test message with Claude

Close the selector, send a short test prompt in the bottom input box (①, for example Reply with only the lowercase word ready, with no other characters or punctuation), and click 发送 (Send). A few seconds later, the chat pane displays the ready reply at ②, confirming the Anthropic protocol works.

Chat interface sending a test message with claude-sonnet-5-5 on QCode Claude and receiving the ready reply

Done right you will see: the conversation pane outputs ready normally, with no red connection-failed banner.

Stuck? Sending a message returns a connection error, 401, or 404

Check three things in order: 1) verify that API Key starts with cr_ and has no leading or trailing spaces; 2) verify that QCode Claude uses Base URL https://api.qcode.cc/api (no trailing /) and API Format Anthropic Messages (/v1/messages); 3) return to 设置 -> 模型设置 (Settings -> Model Settings) and click the plug icon 测试模型 (Test Model) beside the model to inspect the exact error message.

Switch to GPT in the same conversation and send another test

Without starting a new chat, click the model name at the bottom right of the input box, click 供应商: QCode Claude (Provider: QCode Claude) at the top to switch to QCode OpenAI, and select gpt-6.2-sol (③). Send another short test prompt (for example Reply with only the lowercase word pong, with no other characters or punctuation). The conversation inserts the 模型已切换 (Model switched) divider at ①, followed by the pong reply at ②.

Switching to gpt-6.2-sol on QCode OpenAI within the same chat, highlighting the model-switched divider, the pong reply, and the active model name at bottom right

Done right you will see: the divider 模型已切换 QCode Claude/claude-sonnet-5-5 → QCode OpenAI/gpt-6.2-sol appears in the conversation, immediately followed by the pong reply.

Check your current ZCode version anytime (optional)

If UI labels change in a later update or you need to check version differences when troubleshooting, click ? (Help) in the top-right corner of the window → 关于 ZCode (About ZCode). The exact installed version is displayed at ① in the popup (for example ZCode Desktop App 版本 3.18.2).

About ZCode popup opened from the top-right help icon, highlighting version info ZCode Desktop App 3.18.2

Done right you will see: the 关于 ZCode (About ZCode) dialog opens in the center of the screen showing the exact desktop app version.

Verify it works

When all of the following match, ZCode Desktop is fully connected to QCode:

  • Under 设置 -> 模型设置 (Settings -> Model Settings) → 自定义供应商 (Custom Providers), both QCode Claude and QCode OpenAI show green dots and are enabled;
  • In the same workspace chat, claude-sonnet-5-5 replies ready and switching to gpt-6.2-sol replies pong;
  • Open probe.qcode.cc, paste the same cr_ key, and run a lookup — the requests you just sent appear with status 200;
  • To verify the key and both endpoint paths outside ZCode, run in a terminal:
KEY="cr_xxxxxxxx"

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

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

All done

You have configured both QCode Claude and QCode OpenAI protocols in ZCode Desktop without signing in, and can switch models mid-conversation anytime. From here you can:

Common errors

Error message Why What to do
QCode OpenAI / claude-haiku-5-5 连接失败:Model 'claude-haiku-5-5' is not available on this endpoint. A Claude model was added under an OpenAI-compatible provider (Chat Completions / Responses), or the CLI api.type was set to an OpenAI type Put all Claude models under QCode Claude with API Format set to Anthropic Messages (/v1/messages) and Base URL set to https://api.qcode.cc/api (anthropic-messages in the CLI)
当前没有可用模型。请开通编程套餐或配置自定义模型。 (No available models. Please activate a coding plan or configure a custom model.) You skipped account sign-in and entered the main workspace for the first time before enabling any custom provider or model Click 配置 (Configure) on the right side of the banner or 管理模型 (Manage Models) at the bottom right of the input box, create QCode Claude / QCode OpenAI, add models, and confirm the top-right enable toggle is on
404 Base URL has an extra trailing /, or the OpenAI-compatible address is missing /v1 Enter https://api.qcode.cc/api (Anthropic) or https://api.qcode.cc/openai/v1 (OpenAI-compatible) verbatim with no trailing /, and compare against the curl commands above if needed
Top thinking level returns a 400 parameter error Some third-party model deployments accept up to xhigh only, whereas ZCode sends max at the top level for DeepSeek V4 Lower the thinking effort slider at the bottom of the model selector to high
Desktop: Connect keeps Loading Your machine cannot reach the QCode ingress node, or proxy settings are blocking the request (in v3.18.2, an invalid model/protocol pairing shows an error popup in about 2 seconds rather than spinning indefinitely) In Mainland China, switch the Base URL host to https://asia.qcode.cc/api or https://asia.qcode.cc/openai/v1, then click the plug icon 测试模型 (Test Model) beside the model in Model Settings to inspect the exact message

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 automatically starts working again.

If you switch to a new key, open QCode Claude and QCode OpenAI under 设置 -> 模型设置 (Settings -> Model Settings), update the API Key field in each, and click outside the box to auto-save.

Do I have to sign in to a Zhipu or Z.ai account to use ZCode?

No. ZCode Desktop supports adding custom providers completely without signing in: on first launch click 使用 API key (Use API key) → 暂时跳过 (Skip for now), exit the initial onboarding, and add QCode Claude and QCode OpenAI following the steps on this page.

How do I switch the desktop app between Chinese and English UI?

Click the gear icon 设置 (Settings) at the bottom left of the sidebar, go to 常规 -> 界面语言 (General -> Interface Language), and select your preferred display language — no command-line flags needed.

Can I switch to another QCode endpoint if the connection is slow or times out?

Yes. The same cr_ key works across all three QCode endpoints — just replace the host in Base URL while keeping /api or /openai/v1:

  • Global: https://api.qcode.cc/api / https://api.qcode.cc/openai/v1
  • Asia (recommended for Mainland China): https://asia.qcode.cc/api / https://asia.qcode.cc/openai/v1
  • North America / Europe: https://us.qcode.cc/api / https://us.qcode.cc/openai/v1

Do the desktop app and ZCode CLI share a config file? Do environment variables affect the desktop app?

Both ZCode Desktop v3.18.2 and ZCode CLI write provider settings to ~/.zcode/v2/provider_config.json (general UI preferences live in ~/.zcode/v2/setting.json). Keep two things in mind: that file stores API keys in plain text, so never commit it to Git; terminal environment variables (such as ZCODE_BASE_URL) are separate from model provider settings, are not synced automatically, and do not expand ${ENV} placeholders inside apiKey.

What if a model has no fine-grained thinking levels, or images are stripped when I send them?

Some models do not yet have fine-grained thinking level presets in ZCode and show only an On / Off toggle — this is normal, not a lost setting. ZCode converts the chosen thinking level per protocol automatically (top-level reasoning_effort for OpenAI-compatible endpoints, thinking / effort for Anthropic-compatible endpoints), so do not manually add extra keys under options in the config file. In addition, certain models (such as GLM-5.3 over OpenAI Chat) default to no image input; enable vision explicitly in the model's configuration or choose a vision-capable model if you need to send images.

At a glance

Item Details
What it is Open-source AI coding workspace from Zhipu (Z.ai) under Apache-2.0, offering a desktop app, browser UI, and terminal agent; repository zai-org/ZCode
Available models Claude ✅ · GPT ✅ · GLM / Kimi / DeepSeek / Qwen ✅ · Gemini ❌ (QCode does not offer Gemini models for now)
Anthropic Messages https://api.qcode.cc/api (ZCode appends /v1/messages automatically) · supported in Desktop v3.18.2 and CLI
OpenAI Chat Completions https://api.qcode.cc/openai/v1 · supported in Desktop v3.18.2 and CLI
OpenAI Responses https://api.qcode.cc/openai/v1 · supported in Desktop v3.18.2 and CLI
Desktop entry 管理模型 (Manage Models) → Settings -> Model Settings → top-right + 添加供应商 (+ Add Provider) → 创建自定义供应商 (Create Custom Provider); config file ~/.zcode/v2/provider_config.json
ZCode CLI Built from source; config file ~/.zcode/v2/provider_config.json (access.apiKey, api.type, api.baseUrl)
Official docs Connect Models · Install · BigModel ZCode Guide · CLI Usage Guide

Which protocol and other endpoints

ZCode provides three ways to access models, each billing usage differently:

Method What you do Where usage is billed
Account sign-in Click 浏览器授权登录 (Browser OAuth Sign-In) on the welcome screen for Z.ai or BigModel Your official account plan and quota
Official API Key mode Pick BigModel / Z.ai in the welcome screen 使用 API key (Use API key) card and enter an official key The Zhipu / Z.ai key you entered
Custom provider Use 创建自定义供应商 (Create Custom Provider) in the desktop app, or configure a custom URL and key in CLI provider_config.json The service you point it at — here, QCode

This guide uses the third method. On QCode, Claude is served only on the Anthropic protocol and GPT only on the OpenAI protocols, while GLM, Kimi, DeepSeek, and Qwen work on both Anthropic and OpenAI Chat (see Endpoints and API formats for the full matrix):

Protocol QCode Base URL Available models Desktop API format CLI api.type
Anthropic Messages https://api.qcode.cc/api Claude, GLM / Kimi / DeepSeek / Qwen Anthropic Messages (/v1/messages) anthropic-messages
OpenAI Chat Completions https://api.qcode.cc/openai/v1 GPT, GLM / Kimi / DeepSeek / Qwen Chat Completions (/chat/completions) openai-chat-completions
OpenAI Responses https://api.qcode.cc/openai/v1 GPT Responses (/responses) openai-responses

ZCode appends the endpoint path automatically: when an Anthropic Base URL does not end in /v1, ZCode appends /v1/messages, so https://api.qcode.cc/api reaches /api/v1/messages; the two OpenAI types append /chat/completions or /responses directly, which is why both end in /openai/v1. Do not add a trailing / to any address. Copy model IDs character for character from qcode.cc/models; Chinese models also work on the Anthropic endpoint, so you can keep them all under QCode Claude if you prefer fewer providers.

All three QCode ingress nodes offer the same capabilities and share the same cr_ key — swap only the host and keep the path:

Node Anthropic (Claude / Chinese models) OpenAI-compatible (GPT / Chinese models)
Global https://api.qcode.cc/api https://api.qcode.cc/openai/v1
Asia (recommended for Mainland China) https://asia.qcode.cc/api https://asia.qcode.cc/openai/v1
North America / Europe https://us.qcode.cc/api https://us.qcode.cc/openai/v1

macOS / Linux installation and desktop config file

Besides Windows (x64 / ARM64), the official install page zcode.z.ai/en/docs/install also provides macOS and Linux installers:

  • macOS (Apple Silicon / Intel): open the downloaded ZCode.dmg and drag ZCode.app into Applications. If macOS reports that the app is damaged, run in Terminal:
xattr -dr com.apple.quarantine /Applications/ZCode.app
  • Linux (x64 / ARM64): download the .AppImage, .deb, or .rpm package; for .AppImage, run chmod +x ZCode-*.AppImage before launching.

Desktop v3.18.2 writes custom providers (including API keys, Base URLs, and model lists) to ~/.zcode/v2/provider_config.json, and general preferences to ~/.zcode/v2/setting.json. Because the config file contains plain-text keys, never commit it to a repository. Note also that options in the legacy format only recognizes connection parameters (apiKey, baseURL, apiKeyRequired, headers); any extra fields added by hand (such as reasoning_effort or vl_high_resolution_images) are silently ignored and never sent in the request body, so manage providers through the desktop UI instead.

Advanced: ZCode CLI setup

If you want to work purely in the terminal, ZCode CLI also connects to all three QCode protocols via ~/.zcode/v2/provider_config.json without running zcode login.

Build the CLI from source

The CLI is currently distributed as source code and requires Git, Node.js 24.14.0, and pnpm 10.33.2 (the repository root mise.toml is authoritative). From the repository root, run:

git clone https://github.com/zai-org/ZCode.git
cd ZCode
pnpm install --frozen-lockfile
pnpm --filter @zcode/cli... build
node apps/zcode-cli/packages/cli/dist/zcode.cjs --version
node apps/zcode-cli/packages/cli/dist/zcode.cjs doctor --json

In the commands below, zcode stands for node /absolute/path/to/zcode.cjs (keep the sibling files produced by the build).

Write provider_config.json

Save the following as ~/.zcode/v2/provider_config.json, replacing cr_xxxxxxxx with your QCode key (Anthropic protocol example):

{
  "schemaVersion": 1,
  "config": {
    "providerConfigRules": {
      "providerRules": [
        {
          "providerId": "qcode",
          "providerName": "QCode",
          "config": {
            "group": "standard-personal",
            "access": { "type": "api-key", "apiKey": "cr_xxxxxxxx" },
            "api": {
              "type": "anthropic-messages",
              "baseUrl": "https://api.qcode.cc/api"
            },
            "personalModelIds": ["claude-haiku-5-5"]
          }
        }
      ]
    },
    "modelConfigRules": {
      "providerModelRules": [],
      "manualProviderModelRules": []
    },
    "defaultModelSelection": {
      "providerId": "qcode",
      "modelId": "claude-haiku-5-5"
    }
  }
}

To switch protocols, update api.type, api.baseUrl, and the model ID (in both personalModelIds and defaultModelSelection.modelId):

Protocol api.type api.baseUrl Reference model
Anthropic Messages anthropic-messages https://api.qcode.cc/api claude-haiku-5-5
OpenAI Chat Completions openai-chat-completions https://api.qcode.cc/openai/v1 deepseek-v4.1-flash
OpenAI Responses openai-responses https://api.qcode.cc/openai/v1 gpt-6.2-sol

Keep three things in mind when configuring the CLI:

  • The URL field is api.baseUrl (spelled differently from options.baseURL in the legacy format); the ZCODE_BASE_URL environment variable applies only to the product service endpoint and cannot replace api.baseUrl.
  • The config loader does not perform ${ENV} substitution on apiKey, so write the key directly in the file, tighten permissions, and never commit it to Git:
chmod 600 ~/.zcode/v2/provider_config.json
  • On first run, the CLI may print a one-line notice that refreshing "ZCode Built-in" failed; this does not affect custom provider calls and is skipped automatically on subsequent runs.

Non-interactive CLI check

zcode --prompt "Reply with one word: ready. Do not call tools." \
  --cwd /path/to/project --mode plan --json --no-color

--json returns sessionId, response, and run metadata; a response of ready confirms the setup works. Always include --mode: without --mode, --prompt defaults to yolo mode, which can run commands or edit files directly. Running zcode with no arguments opens the interactive terminal UI.

Known limitations

  • Desktop UI labels and button names correspond to v3.18.2; future updates may adjust menu names or layouts.
  • Adding arbitrary custom request-body parameters for third-party custom models is not supported yet.
  • QCode does not offer Gemini models for now — choose Claude, GPT, or the four Chinese model families.
  • In CLI mode, keys are stored in plain text in ~/.zcode/v2/provider_config.json; non-interactive --prompt calls default to yolo mode if --mode is omitted.

Get started with QCode

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

Enterprise →