Error Fix · As of 2026-12-04

Claude Desktop Third-Party Inference: How to Switch to Opus 5.5 and Fix a Stuck Model Picker

In Claude Desktop 6.x on a third-party gateway, typing /model claude-opus-5-5 fails by design—you switch models from the model picker chip below the input box, which Claude Desktop populates at startup via GET /v1/models (or an explicit inferenceModels list). If the picker shows only Sonnet or stays empty, the cause is almost always one of five issues: a /v1 suffix or trailing / in Gateway base URL, a missing bearer auth scheme, an incomplete restart with background processes still running, an MDM or JSON inferenceModels pin, or an outdated build. All steps below were verified on 2026-12-04 against Anthropic's third-party inference docs and QCode's live /api/v1/models endpoint.

QCode is an independent third-party model API service, not affiliated with or endorsed by Anthropic. Facts in this guide were verified on 2026-12-04 against the official documentation linked below.

Updated 2026-12-04

Key facts

  • Typing /model in Claude Desktop 6.x returns "Changing the model by command isn't available here. Use the model picker instead. Not every session shows one." because /model is a Claude Code CLI command.
  • Claude Desktop 6.x loads third-party gateway settings only at startup; after Test connection turns green, click Apply Changes → Save & Restart.
  • For QCode, set Connection = Gateway, Credential kind = Static API key, Gateway base URL = https://api.qcode.cc/api (no /v1, no trailing /), and Gateway auth scheme = bearer.
  • Since 2026-11-27, unauthenticated GET https://api.qcode.cc/api/v1/models returns HTTP 401 JSON (invalid_api_key), while Authorization: Bearer cr_your_key returns HTTP 200 with claude-opus-5-5, claude-sonnet-5-5, claude-fable-5-2, and claude-haiku-5-5.
  • Opus 5.5 Medium shows the model plus reasoning effort (Medium), not a separate model ID; official builds filter /v1/models to Anthropic/Claude IDs.
  • Moving from claude-sonnet-5-5 ($2.00 / $10.00 per 1M) to claude-opus-5-5 ($4.00 / $20.00) doubles per-token spend across the 1M context window.

Why /model claude-opus-5-5 fails in Claude Desktop 6.x

Typing /model fails in Claude Desktop because model switching is owned by the desktop UI layer, whereas /model only switches models inside the terminal Claude Code CLI.

In Desktop Chat, /model is not a valid chat command, and in merged Desktop Chat, Cowork, and Code sessions the host blocks typed /model commands (including right after /compact) with "Changing the model by command isn't available here. Use the model picker instead. Not every session shows one." (anthropics/claude-code#113226).

Instead, Claude Desktop 6.x uses the model picker chip below the input box. Per Anthropic's Gateway documentation, startup populates that menu in two ways:

  1. Dynamic discovery (GET /v1/models): Unless modelDiscoveryEnabled is disabled, Claude Desktop calls GET <GatewayBaseURL>/v1/models at launch and filters results to Anthropic/Claude-family model IDs, dropping unrecognized non-Claude slugs.
  2. Explicit list (inferenceModels): When a gateway omits /v1/models or an admin restricts available models, the profile declares an inferenceModels array. Per Anthropic's Third-Party Models docs, the first entry automatically becomes the default for new sessions.

If you prefer slash-command switching, run the terminal Claude Code CLI alongside Desktop using the same cr_ key.

Verify your Claude Desktop 6.x Gateway setup

Confirm every field in Developer → Configure Third-Party Inference... matches QCode's Anthropic endpoint and was saved with Save & Restart.

On macOS, open the top menu bar and click Help → Troubleshooting → Enable Developer Mode..., then wait for the automatic restart. On Windows, Claude Desktop 6.x hides the menu bar by default: click inside the window, press Alt (or click the top-left ☰ menu), select Help → Troubleshooting → Enable Developer Mode..., and confirm the restart. After relaunch, open Developer → Configure Third-Party Inference... (In-App Configuration docs).

Panel field Managed JSON key Exact value for QCode Mistake that breaks discovery
Connection inferenceProvider Gateway Wrong provider selected
Credential kind inferenceCredentialKind Static API key Left blank (hides URL/key fields)
Gateway base URL inferenceGatewayBaseUrl https://api.qcode.cc/api Adding /v1, trailing /, or /openai/v1
Gateway API key inferenceGatewayApiKey cr_your_key Missing cr_ prefix or truncated key
Gateway auth scheme inferenceGatewayAuthScheme bearer Left blank or wrong auth header
Gateway extra headers — (leave empty) Conflicting Authorization header

Two URL rules prevent nearly every 404 during model discovery:

  • Stop at /api: Claude Desktop appends /v1/models and /v1/messages itself. Entering https://api.qcode.cc/api/v1 hits /api/v1/v1/models (HTTP 404), leaving the picker empty.
  • No trailing slash: https://api.qcode.cc/api/ produces .../api//v1/models. For lower latency, swap only the host to https://asia.qcode.cc/api or https://us.qcode.cc/api with the same cr_ key. Never enter https://api.qcode.cc/openai/v1 here—Claude Desktop uses the Anthropic Messages protocol only.

Click Test connection (top-right) until the green dot appears, then click Apply Changes → Save & Restart. Closing the panel without restarting leaves stale settings in memory. For full Windows 11 and macOS screenshots, see the QCode Claude Desktop guide.

5-step checklist when the model picker is empty or stuck on Sonnet

Work through these five checks in order—each isolates a distinct failure point between QCode's gateway and Claude Desktop's startup picker.

Step 1: Fully quit Claude Desktop and kill background processes

Closing the window often leaves a background helper alive in the tray or menu bar, skipping a cold start and its GET /v1/models call. Run Apply Changes → Save & Restart first; if the list stays stale, quit completely, terminate any leftover Claude processes in Task Manager (Windows) or Activity Monitor (macOS), and relaunch.

Step 2: Test GET /v1/models directly with curl

Run two curl checks on the same machine to separate gateway auth errors from Desktop UI state. Since QCode's 2026-11-27 update, unauthenticated /api/v1/models requests return HTTP 401 JSON (invalid_api_key), while a valid cr_ key returns HTTP 200 with the live Claude catalog:

# 1. Confirm endpoint is reachable (expected: HTTP 401 JSON invalid_api_key)
curl -i https://api.qcode.cc/api/v1/models

# 2. Verify your cr_ key returns HTTP 200 and lists Claude 5.5 models
curl -sS -H "Authorization: Bearer cr_your_key" \
  https://api.qcode.cc/api/v1/models

Confirm claude-opus-5-5, claude-sonnet-5-5, claude-fable-5-2, and claude-haiku-5-5 appear in the JSON. On 401, check key validity in your QCode dashboard (expired 30-day personal-plan keys cannot be renewed—create a new key for a new plan; pay-as-you-go pack keys reactivate automatically when you buy another pack). If curl returns 200, QCode is healthy and the issue is local to Claude Desktop.

Step 3: Read the model chip label accurately (Opus 5.5 Medium)

After a clean restart, the home screen shows You're here!, the sidebar shows user · Gateway, and the chip below the input box shows a label like Opus 5.5 Medium. Medium is the reasoning effort setting, not a separate model ID. Click the chip to switch models or effort, and confirm you run Claude Desktop 6.x rather than an old 0.14.x build (which lacks Configure Third-Party Inference...).

Step 4: Check MDM profiles and exported JSON inferenceModels overrides

When IT deploys macOS .mobileconfig (com.anthropic.claudefordesktop) or Windows .reg policies via Jamf, Mosyle, Intune, or Group Policy, the panel becomes read-only (In-App Configuration docs). Setting modelDiscoveryEnabled: false or a single-item inferenceModels array locks the picker to one model, and stale lists pinning retired claude-sonnet-4-5 (2026-11-30) or soon-to-retire claude-opus-4-5 (2027-01-22) return HTTP 404.

For managed JSON exports via Export ▾, place claude-opus-5-5 first so new sessions default to Opus 5.5:

{
  "inferenceProvider": "gateway",
  "inferenceGatewayBaseUrl": "https://api.qcode.cc/api",
  "inferenceGatewayApiKey": "cr_your_key",
  "inferenceGatewayAuthScheme": "bearer",
  "inferenceModels": [
    "claude-opus-5-5",
    "claude-sonnet-5-5",
    "claude-fable-5-2",
    "claude-haiku-5-5"
  ]
}

Step 5: Separate Couldn't download Claude Code from gateway auth errors

A green Test connection dot proves your QCode URL and cr_ key work. Before your first desktop reply, Claude Desktop downloads its built-in Claude Code runtime from downloads.claude.ai. If a firewall or proxy blocks that host, you see Couldn't download Claude Code with Go back / Try again—your message never left for QCode, and editing gateway fields will not fix it.

Allow one-time access to downloads.claude.ai and click Try again, or run Claude Code CLI in the terminal with the same cr_ key, where /model claude-opus-5-5 works natively:

export ANTHROPIC_BASE_URL="https://api.qcode.cc/api"
export ANTHROPIC_AUTH_TOKEN="cr_your_key"
claude --model claude-opus-5-5

For environment variable details or a fast terminal setup, see the Anthropic base URL setup guide or Claude Code one-click install.

Opus 5.5 vs Sonnet 5.5 token costs and daily quota impact

Switching Claude Desktop from Sonnet 5.5 to Opus 5.5 doubles per-token spend on both input and output, so matching the model to the task protects daily quota.

On QCode, Claude 5 and Fable 5.2 models are billed at Anthropic's official API price × 1.0 with a native 1M-token context window and 128K max output (verified 2026-12-04):

Model (model_id) Context / Max Output Input (per 1M) Output (per 1M) Cache Read (per 1M) Long-Context Rule
Claude Fable 5.2 (claude-fable-5-2) 1M / 128K $8.00 $40.00 $0.20 Flat across full 1M
Claude Opus 5.5 (claude-opus-5-5) 1M / 128K $4.00 $20.00 $0.20 Flat across full 1M
Claude Sonnet 5.5 (claude-sonnet-5-5) 1M / 128K $2.00 $10.00 $0.10 Flat across full 1M
Claude Haiku 5.5 (claude-haiku-5-5) 1M / 128K $0.10 / $0.50 (>100K) $0.50 / $2.50 (>100K) $0.01 / $0.05 5× tier if input >100K

Because claude-opus-5-5 ($4.00 / $20.00) is 2× the rate of claude-sonnet-5-5 ($2.00 / $10.00), leaving Opus 5.5 on for routine Q&A burns Starter ($9, $5/day quota) or Daily 20 ($32.86, $20/day) twice as fast. Keep Sonnet 5.5 for quick lookups and single-file edits, switch the picker to Opus 5.5 for architecture or multi-file debugging, and reserve claude-fable-5-2 ($8.00 / $40.00) for the hardest reasoning tasks—see Claude Sonnet 5.5 vs Opus 5.5. Claude Desktop and Claude Code CLI share one QCode quota with no double-billing, and personal 30-day plans reset daily at 00:00 UTC+8.

FAQ

Why does typing /model claude-opus-5-5 fail in Claude Desktop?

/model is a Claude Code CLI command, not a Desktop chat command. Claude Desktop 6.x switches models through the picker chip below the input box and returns "Changing the model by command isn't available here. Use the model picker instead. Not every session shows one.".

Why does the Claude Desktop model picker show only Sonnet or stay empty?

Startup populates the picker from GET <GatewayBaseURL>/v1/models unless overridden by inferenceModels. Confirm Gateway base URL is https://api.qcode.cc/api (no /v1 or trailing /), verify /api/v1/models returns HTTP 200 via curl, check MDM profiles, and kill background Claude processes before relaunching.

Should Gateway base URL include /v1 or a trailing slash?

No. Claude Desktop appends /v1/models and /v1/messages automatically—adding /v1 causes /api/v1/v1/models 404 errors, and a trailing slash creates a double slash. Always use https://api.qcode.cc/api (or https://asia.qcode.cc/api / https://us.qcode.cc/api).

What does Opus 5.5 Medium mean on the model chip?

Opus 5.5 Medium pairs claude-opus-5-5 with its reasoning effort level (Medium). It is a UI display label, not a separate API model slug; actual model IDs come from /v1/models or inferenceModels.

Why do I see Couldn't download Claude Code after Test connection turns green?

Test connection only checks gateway authentication. Before the first message, Claude Desktop downloads its built-in Claude Code runtime from downloads.claude.ai. Allow access to downloads.claude.ai once and click Try again, or run Claude Code CLI with the same cr_ key.

Can I use the same QCode API key in both Claude Desktop and Claude Code CLI?

Yes. Claude Desktop stores its gateway profile separately from ~/.claude/settings.json, and both share one cr_ key and quota without double-billing. The same key also works in Codex CLI (gpt-6.2-sol on /openai) and Gemini CLI (gemini-4-neon on /gemini).

Sizing a QCode plan for Opus 5.5 in Claude Desktop

For daily claude-opus-5-5 ($4.00 / $20.00 per 1M tokens × 1.0) workflows across Claude Desktop and terminal sessions, Daily 35 ($53.57, $35/day quota) provides comfortable headroom over Starter ($9, $5/day) and Daily 20 ($32.86, $20/day), resetting daily at 00:00 UTC+8. For occasional bursts without a monthly plan, 7-day stackable pay-as-you-go packs start at $4 ($30 quota). One cr_ key also serves gpt-6.2-sol on /openai/v1 and gemini-4-neon on /gemini (gemini-4-carbon, gemini-4-argon, and gemini-4-hydrogen are not listed on QCode yet)—see /pricing, /pay-as-you-go, and /models.

Sizing a QCode plan for Opus 5.5 in Claude Desktop

One key for both the Anthropic Messages API and OpenAI-compatible APIs. Claude and GPT are billed at the official price ×1.0; live rates are on /models.

Not sure where to start?

Try it for a week

Small Pack: $4 for $30 of quota, valid 7 days

Use it every day

Starter: $9.00/month with $5 of quota every day — just $0.060 per $1 of quota, vs about $0.113 for the Medium Pack