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.
Need an API key? Sign up →Endpoints & base URLs →
On This Page
- Download and install goose
- Open the official goose installation page
- Review the Windows PowerShell install instructions
- Extract goose CLI and add it to PATH
- Confirm the installed version
- Start the first-run configuration wizard
- Choose Anthropic as the model provider
- Paste your QCode API key
- Enable advanced settings and enter ANTHROPIC_HOST
- Choose a Claude model
- Save the configuration and pick a tool mode
- Inspect active settings with goose info -v
- Send a test prompt with Claude
- Set OpenAI-compatible variables for GPT and Chinese models
- Send a test prompt with GPT
- Add a persistent custom provider for GPT and Chinese models
- Test the custom provider with a Chinese model
- Verify requests on probe.qcode.cc (optional)
- Verify it works
- Common errors
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.
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.aiandgithub.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.exebinary 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 extractgoose.exeto%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.

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.

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.

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

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.

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.

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.

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.

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.

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.

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

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

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.

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.

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 tohttps://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 asgpt-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-solas the default model until goose prints Custom provider added: qcode.

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.

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.

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 --versionprints1.60.2(or newer) in a fresh PowerShell window.goose info -vshows%APPDATA%\Block\goose\config\config.yamlandANTHROPIC_HOST: https://api.qcode.cc/api.goose run --provider anthropic --model claude-opus-5-5 -t "Reply with just: pong"repliespong.goose run --provider custom_qcode --model gpt-6.2-sol -t "Reply with just: pong"(or--model deepseek-v4.1-flash) repliespongwithout 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:
- Endpoints & API paths — check which protocol serves each model family
- Model selection — pick the right model for your coding task
- Chinese models — explore DeepSeek, GLM, Qwen, and Kimi IDs on QCode
- Troubleshooting — diagnose network or account issues
- Compare plans on the pricing page
- Go back to your Dashboard to check usage and balance
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