Block Goose + QCode on Windows & macOS: Claude & GPT Setup (17 Screenshots)

Set up Block Goose CLI with QCode on Windows 11 and macOS in 17 screenshots: install natively, configure Claude and GPT or Chinese models, and verify replies.

Updated 2026-11-26

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

On This Page

Short answer: Run goose configure in PowerShell, pick Manual Configuration → Anthropic, paste your cr_ key, switch advanced settings to Yes, and set ANTHROPIC_HOST to https://api.qcode.cc/api for Claude (claude-opus-5-5). For GPT (gpt-6.2-sol) and Chinese models, add an OpenAI Compatible custom provider with Provider API URL set to https://api.qcode.cc/openai/v1/chat/completions (or set OPENAI_HOST and OPENAI_BASE_PATH).

Item Fill in
Anthropic Host (ANTHROPIC_HOST) https://api.qcode.cc/api
OpenAI Host (OPENAI_HOST) https://api.qcode.cc
OpenAI Base Path (OPENAI_BASE_PATH) openai/v1/chat/completions
Custom Provider API URL https://api.qcode.cc/openai/v1/chat/completions
API Key cr_xxxxxxxx

Checked on 2026-11-22 · goose CLI 1.60.2 · Windows 11

Follow the 17 screenshots below to install Block Goose natively on Windows 11 or macOS and connect it to QCode so you can run Claude (claude-opus-5-5), GPT (gpt-6.2-sol), and Chinese models from PowerShell without WSL.

  • Applies to: Windows 10 / 11 (64-bit) and macOS (screenshots taken on Windows 11, English UI)
  • Software version: goose CLI 1.60.2 (native Windows x64 binary)
  • Screenshots updated: 2026-11
  • Time needed: about 10 minutes
  • You will need: a QCode API key starting with cr_

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.

Before the first screenshot, check that you have these ready:

  • A 64-bit Windows 10 or Windows 11 PC or a Mac that can open goose-docs.ai and github.com
  • Windows Terminal (or Windows PowerShell) — no WSL or administrator rights required
  • About 250 MB of disk space for the 54 MB ZIP archive and extracted goose.exe binary in your user folder
  • A QCode API key starting with cr_ (cr_xxxxxxxx). No account yet? Sign up first, pick a plan on the pricing page, then create the key in your Dashboard.

Download and install goose

Block Goose ships native Windows x64 packages for both goose CLI and goose Desktop, so you do not need WSL. Pick the tab that matches where you are:

Other regions

Open goose-docs.ai/docs/getting-started/installation and choose the Windows tab:

  • goose CLI (PowerShell script): download and run the official script https://raw.githubusercontent.com/aaif-goose/goose/main/download_cli.ps1, or download goose-x86_64-pc-windows-msvc.zip (~54.4 MB) directly and extract goose.exe to %USERPROFILE%\.local\bin (no administrator rights needed).
  • goose Desktop: download the per-user installer Goose-win32-x64-setup.exe (~163 MB) or the portable archive Goose-win32-x64.zip (~238 MB).

macOS and Linux install commands are listed in the macOS, Linux, and Windows Desktop installation section below.

Mainland China

Open goose-docs.ai/docs/getting-started/installation and select the Windows tab. Because github.com release downloads inside download_cli.ps1 can intermittently stall or time out from mainland China, downloading the native CLI archive goose-x86_64-pc-windows-msvc.zip (~54.4 MB) directly in your browser and extracting it to %USERPROFILE%\.local\bin (as shown in the steps below) is the most reliable method. If a download stalls, wait a moment and retry.

If you prefer the graphical app instead of the CLI, download Goose-win32-x64-setup.exe (~163 MB; installs per-user under %LOCALAPPDATA%\Programs\Goose without admin rights). If Windows SmartScreen displays Windows protected your PC, click More info and then Run anyway.

Open the official goose installation page

Open https://goose-docs.ai/docs/getting-started/installation in your browser and click the Windows tab at ①. You will see the native goose Desktop installer options first; click the goose CLI tab at ② to view the command-line setup for Windows.

Official goose installation page on the Windows tab showing native goose Desktop downloads and the goose CLI tab

Done right you will see: ① Windows is the active OS tab, and ② goose CLI is visible right beside goose Desktop.

Review the Windows PowerShell install instructions

Under Windows → goose CLI, scroll down to PowerShell Installation: Standard. ① shows the official download_cli.ps1 PowerShell commands (you can also download goose-x86_64-pc-windows-msvc.zip directly from GitHub Releases). ② shows the WINDOWS PATH SETUP note explaining that %USERPROFILE%\.local\bin needs to be on your PATH.

Windows goose CLI docs showing PowerShell Installation Standard commands and the WINDOWS PATH SETUP callout

Done right you will see: ① the PowerShell download commands and ② the WINDOWS PATH SETUP callout mentioning %USERPROFILE%\.local\bin.

Extract goose CLI and add it to PATH

After downloading goose-x86_64-pc-windows-msvc.zip into your Downloads folder, open Windows Terminal (PowerShell) and run the commands at ① to extract goose.exe into %USERPROFILE%\.local\bin and add that folder to your current session and user PATH:

Expand-Archive "$env:USERPROFILE\Downloads\goose-x86_64-pc-windows-msvc.zip" "$env:TEMP\goose" -Force
New-Item -ItemType Directory -Force "$env:USERPROFILE\.local\bin" | Out-Null; Copy-Item "$env:TEMP\goose\goose-package\goose.exe" "$env:USERPROFILE\.local\bin\goose.exe" -Force
$bin = "$env:USERPROFILE\.local\bin"; $env:PATH = "$bin;$env:PATH"; [Environment]::SetEnvironmentVariable("PATH", "$bin;" + [Environment]::GetEnvironmentVariable("PATH", "User"), "User")
Get-Command goose | Select-Object Name,Source

Then check ②: Get-Command goose prints goose.exe pointing to your .local\bin\goose.exe path.

PowerShell extracting goose-x86_64-pc-windows-msvc.zip to .local\bin, updating PATH, and verifying Get-Command goose

Stuck? PowerShell says goose is not recognized or the download timed out

If Get-Command goose returns an error, close PowerShell, open a new window so it loads the updated user PATH, and run Get-Command goose again. If you used download_cli.ps1 and the download timed out, download goose-x86_64-pc-windows-msvc.zip in your browser and run the four commands above instead.

Done right you will see: ① all three setup commands finish without red errors, and ② Get-Command goose lists goose.exe under ...\.local\bin\goose.exe.

Confirm the installed version

Run goose --version at ①. Check that the terminal prints the version number 1.60.2 (or newer) at ②.

Running goose --version in PowerShell and seeing version 1.60.2 printed

Done right you will see: ① your goose --version command followed directly by ② a version number such as 1.60.2.

Start the first-run configuration wizard

Run goose configure. On a fresh installation, goose first asks Help improve goose — Share anonymous usage data to help improve goose? — press the right arrow and Enter to choose No at ①. Next, at How would you like to set up your provider?, press the down arrow twice to highlight Manual Configuration at ② (do not pick OpenRouter or Tetrate login), then press Enter.

First-run goose configure declining anonymous telemetry and selecting Manual Configuration

Stuck? I see Configure Providers instead of Manual Configuration

That means goose already has a config.yaml file on this PC. Simply select Configure Providers and press Enter — you will land on the same provider list shown in the next step.

Done right you will see: ① No recorded for telemetry and ② Manual Configuration highlighted before you press Enter.

Choose Anthropic as the model provider

In the alphabetical list under Which model provider should we use?, use the arrow keys to highlight Anthropic at ① and press Enter.

Selecting Anthropic from the alphabetical provider list in goose configure

Done right you will see: ① Anthropic highlighted in the provider list, and pressing Enter moves to the API key prompt.

Paste your QCode API key

At Provider Anthropic requires ANTHROPIC_API_KEY, please enter a value ①, paste your QCode API key (starting with cr_) and press Enter. Goose masks the characters with solid dots automatically and saves the secret in Windows Credential Manager.

Pasting the QCode cr_ API key into the ANTHROPIC_API_KEY prompt with dot masking

Need an API Key?

If you do not have a QCode account yet, Sign up first. You can buy a pack from the Pay-as-you-go packs page to get started, then create your key in the Dashboard and copy the string starting with cr_. You can pay by credit or debit card (Visa / Mastercard) — see Payment methods.

Stuck? goose says ANTHROPIC_API_KEY is set via environment variable

If ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN is already set in your Windows environment variables from another tool, goose detects it automatically and asks whether to save that value to your keyring. If that key is your QCode cr_ key, you can accept it; otherwise choose No or clear the old environment variable in PowerShell first.

Done right you will see: ① dots appear in the input line after pasting, and pressing Enter advances to the advanced settings question.

Enable advanced settings and enter ANTHROPIC_HOST

At Would you like to configure advanced settings?, press the left arrow to switch from the default No to Yes at ①, then press Enter. Next, at Provider Anthropic requires ANTHROPIC_HOST, please enter a value ②, type https://api.qcode.cc/api (do not add /v1/messages) and press Enter.

Switching advanced settings to Yes and entering https://api.qcode.cc/api for ANTHROPIC_HOST

Stuck? I pressed Enter on No and skipped ANTHROPIC_HOST

If you leave Would you like to configure advanced settings? on No, goose connects to Anthropic's default address and rejects your QCode key. Press Ctrl+C, run goose configure again, choose Configure Providers → Anthropic, and make sure you pick Yes before pressing Enter.

Done right you will see: ① Yes confirmed for advanced settings, and ② https://api.qcode.cc/api typed cleanly with no /v1 or trailing slash.

Choose a Claude model

Goose queries QCode for available models and prints green Model fetch complete at ①, confirming that your key and ANTHROPIC_HOST are reachable. Use the arrow keys at ② to highlight claude-opus-5-5 (our recommended default; claude-haiku-5-5 is also available as a lighter option, and Enter a model not listed... sits at the bottom of the list if you want to type any other model ID manually), then press Enter.

Model fetch complete from QCode followed by the live Claude model list where you select claude-opus-5-5 or Enter a model not listed

Stuck? Model fetch fails or returns an authentication error

Check two things: your API key starts with cr_ with no leading or trailing spaces, and ANTHROPIC_HOST is set to https://api.qcode.cc/api (not https://api.anthropic.com and not /openai/v1). Press Ctrl+C and re-run goose configure to re-enter them.

Done right you will see: ① green Model fetch complete and ② the list of QCode Claude models ready for selection.

Save the configuration and pick a tool mode

Next, goose asks Select thinking effort: — press Enter to accept the default Off (or pick a level). Goose runs Checking your configuration... against QCode and prints Configuration saved successfully at ①, writing %APPDATA%\Block\goose\config\config.yaml while storing your API key in Windows Credential Manager (secrets.goose). At Which goose mode would you like to configure? ②, press Enter to accept Auto Mode (or pick Approve Mode / Smart Approve Mode) and finish the wizard.

Configuration saved successfully to Block\goose\config\config.yaml and tool mode selection with Auto Mode highlighted

Done right you will see: ① Configuration saved successfully pointing to Block\goose\config\config.yaml, and ② the wizard exits cleanly back to your PowerShell prompt after confirming the tool mode.

Inspect active settings with goose info -v

Run goose info -v (plain goose info omits provider and host values, so include -v). Check ① under Paths for your Windows config file at %APPDATA%\Block\goose\config\config.yaml, and check ② under goose Configuration to confirm ANTHROPIC_HOST is https://api.qcode.cc/api, GOOSE_PROVIDER is anthropic, and GOOSE_MODEL shows your selected Claude model (such as claude-opus-5-5).

Output of goose info -v showing Windows config.yaml path under Paths and ANTHROPIC_HOST, GOOSE_MODEL, and GOOSE_PROVIDER under goose Configuration

Done right you will see: ① the config.yaml path under AppData\Roaming\Block\goose\config\ and ② ANTHROPIC_HOST: https://api.qcode.cc/api with GOOSE_PROVIDER: anthropic.

Send a test prompt with Claude

Run a quick one-shot prompt using claude-opus-5-5:

goose run --provider anthropic --model claude-opus-5-5 -t "Reply with just: pong"

Check ① in the session header showing the anthropic provider and your Claude model, followed by the reply pong at ②.

Running goose run with the anthropic provider and receiving a pong reply from Claude through QCode

Stuck? goose run returns an authentication or host error

Run goose info -v and confirm ANTHROPIC_HOST is https://api.qcode.cc/api. Do not put your API key inside config.yaml — goose ignores keys in that file. Re-save the key via goose configure or check your key status in your Dashboard.

Done right you will see: ① the anthropic provider header and ② the model's pong reply with no authentication error.

Set OpenAI-compatible variables for GPT and Chinese models

To call GPT (gpt-6.2-sol) and Chinese models over QCode's OpenAI-compatible endpoint in the current PowerShell session, run these four lines (replacing cr_xxxxxxxx with your own QCode key):

$env:OPENAI_API_KEY = "cr_xxxxxxxx"
$env:OPENAI_HOST = "https://api.qcode.cc"
$env:OPENAI_BASE_PATH = "openai/v1/chat/completions"
$env:GOOSE_PROVIDER = "openai"

Double-check the two routing lines highlighted at ①: OPENAI_HOST stops at https://api.qcode.cc and OPENAI_BASE_PATH holds openai/v1/chat/completions.

Setting OPENAI_API_KEY, OPENAI_HOST, OPENAI_BASE_PATH, and GOOSE_PROVIDER in PowerShell for GPT and Chinese models

Stuck? OpenAI requests return 404

A 404 on the OpenAI side almost always means OPENAI_HOST and OPENAI_BASE_PATH do not combine to https://api.qcode.cc/openai/v1/chat/completions. Keep $env:OPENAI_HOST = "https://api.qcode.cc" and $env:OPENAI_BASE_PATH = "openai/v1/chat/completions" (no leading slash on OPENAI_BASE_PATH, no trailing /v1 on OPENAI_HOST).

Done right you will see: ① all four PowerShell assignments complete cleanly with no syntax errors.

Send a test prompt with GPT

Test QCode's OpenAI-compatible side with gpt-6.2-sol:

goose run --provider openai --model gpt-6.2-sol -t "Reply with just: pong"

Check ① showing openai and gpt-6.2-sol in the session header, and ② showing the pong reply.

Running goose run with --provider openai --model gpt-6.2-sol and receiving a pong reply

Done right you will see: ① openai and gpt-6.2-sol in the header and ② the pong reply underneath.

Add a persistent custom provider for GPT and Chinese models

Instead of setting environment variables every time you open PowerShell, save a permanent OpenAI-compatible provider in goose's keyring. Run goose configure and pick Custom Providers → Add A Custom Provider:

  • At ①: select OpenAI Compatible (Uses OpenAI API format), enter display name qcode, and set Provider API URL to https://api.qcode.cc/openai/v1/chat/completions.
  • At ②: answer Yes to authentication, pick Static API key (Enter a fixed API key now), paste your cr_ key (masked automatically with dots and saved into Windows Credential Manager), and enter comma-separated Available models such as gpt-6.2-sol,deepseek-v4.1-flash,qwen3.8-max.
  • At ③: keep streaming Yes, press Enter to skip the optional API base path, choose No for custom headers, and pick gpt-6.2-sol as the default model until goose prints Custom provider added: qcode.

Adding an OpenAI Compatible custom provider named qcode in goose configure with URL, Static API key, model list, and confirmation

Done right you will see: ③ Custom provider added: qcode and the saved config file under %APPDATA%\Block\goose\config\custom_providers\custom_qcode.json. Goose names the provider ID custom_qcode and stores its key in Windows Credential Manager, so no environment variables are needed afterwards.

Test the custom provider with a Chinese model

Run a test against custom_qcode with a Chinese model (you can clear the temporary OpenAI environment variables or open a brand-new PowerShell window first):

goose run --provider custom_qcode --model deepseek-v4.1-flash -t "Reply with just: pong"

Check ① showing custom_qcode and deepseek-v4.1-flash in the session header, and ② showing the pong reply. You can also run goose run --provider custom_qcode --model gpt-6.2-sol -t "Reply with just: pong" with the same provider.

Running goose run with --provider custom_qcode --model deepseek-v4.1-flash from Windows keyring and getting pong

Done right you will see: ① custom_qcode and deepseek-v4.1-flash in the header and ② the pong reply without needing any environment variables.

Verify requests on probe.qcode.cc (optional)

If you want to inspect latency or confirm your Anthropic-side requests reached QCode, open https://probe.qcode.cc/, paste the same cr_ API key, click 查询 (Query), and scroll down to the request table at ①. The table tracks /api/v1/messages requests with columns for time, status, connection, TTFT, total duration, response size, and output speed; newest rows with status 200 confirm your Claude requests succeeded.

Request log table on probe.qcode.cc showing status 200 entries for goose Anthropic requests

Done right you will see: ① status 200 rows at the top of the table matching the timestamp of your goose run --provider anthropic test.

Verify it works

Your Windows setup is complete when all four checks pass:

  • goose --version prints 1.60.2 (or newer) in a fresh PowerShell window.
  • goose info -v shows %APPDATA%\Block\goose\config\config.yaml and ANTHROPIC_HOST: https://api.qcode.cc/api.
  • goose run --provider anthropic --model claude-opus-5-5 -t "Reply with just: pong" replies pong.
  • goose run --provider custom_qcode --model gpt-6.2-sol -t "Reply with just: pong" (or --model deepseek-v4.1-flash) replies pong without extra environment variables.

All done

You now have Block Goose running natively on Windows 11 with QCode powering Claude (claude-opus-5-5), GPT (gpt-6.2-sol), and Chinese models. From here you can:

Common errors

Error message Why What to do
No api key passed in Goose does not read provider API keys from config.yaml; any key placed there is ignored Re-enter your cr_ key through goose configure (so it saves to Windows Credential Manager) or pass it via the provider environment variable
A 404 usually means OPENAI_BASE_PATH is wrong for your proxy. On the built-in OpenAI provider, OPENAI_HOST and OPENAI_BASE_PATH do not combine to /openai/v1/chat/completions Set OPENAI_HOST to https://api.qcode.cc and OPENAI_BASE_PATH to openai/v1/chat/completions, or use a Custom Provider with Provider API URL set to https://api.qcode.cc/openai/v1/chat/completions
model_not_available_on_endpoint A claude-* model ID was sent to QCode's OpenAI-compatible endpoint instead of the Anthropic endpoint Always call Claude models through the built-in anthropic provider (ANTHROPIC_HOST=https://api.qcode.cc/api) and keep GPT/Chinese models on openai or custom_qcode
429 error (rate limit exceeded) Your account hit a concurrency or rate limit on the selected model Wait briefly and retry, switch to another available model ID in Model selection, or check your account status in your Dashboard
ANTHROPIC_API_KEY is set via environment variable Another tool already set ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN in your Windows user environment Confirm whether that value is your QCode cr_ key before saving it to the keyring, or remove the old environment variable in PowerShell and re-run goose configure

Get started with QCode

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

Enterprise →