Claude Code Desktop Integration

This guide explains how to connect the Claude Code desktop app (Claude Desktop, Code tab) to ReachAPI through the app's third-party inference configuration.

Example gateway URL used in this guide: https://direct.reachapi.ai.

The desktop app does not read ANTHROPIC_BASE_URL or .claude/settings.json for gateway routing. If you configured the Claude Code CLI before, that configuration does not apply here — use the steps below instead.

Note: Verified on 2026-10-27 on macOS with Claude Desktop 3.6556.2: third-party (3P) inference mode — no Anthropic-account sign-in, traffic goes to the configured gateway — connected to https://direct.reachapi.ai, 10 Claude models discovered, config reported healthy, and a conversation completed normally. Menu paths and field names follow Anthropic's official documentation.

1. Prerequisites

  • A ReachAPI key such as sk-xxxxxx
  • A gateway that implements the Claude Messages API (POST /v1/messages, including streaming and tool use)
  • Claude Desktop installed:
    • macOS: universal DMG (Apple silicon and Intel)
    • Windows: x64 or ARM64 installer
    • Linux: beta package via apt or .deb (Ubuntu / Debian)
    • Download page: https://claude.com/download

Do not sign in with a Claude account before you finish section 4. Anthropic's single-machine setup expects the app to be configured first.

2. Official documentation

3. Enable Developer Mode

  1. Install and launch Claude Desktop.
  2. Do not sign in or create an Anthropic account.
  3. Open Help → Troubleshooting → Enable Developer Mode. On macOS this is in the menu bar; on Windows use the application menu ☰ at the top left of the sign-in screen.
  4. Open Developer → Configure Third-Party Inference…

The app restarts when you enable Developer Mode. The in-app window validates your values and tests the connection before you apply them.

4. Configure the connection

In the Connection section of the configuration window:

FieldValue
Inference providerGateway
Credential kindAPI key
Gateway base URLhttps://direct.reachapi.ai
Gateway API keyYOUR_REACH_API_KEY
Gateway auth schemeBearer (default)

Notes:

  • Gateway base URL is what Anthropic calls the "Full URL of the inference gateway endpoint". For ReachAPI, enter the root https://direct.reachapi.ai. The app sends POST /v1/messages to that address: Anthropic's gateway page requires the gateway to implement POST /v1/messages, and its Foundry proxy option states that requests go to <value>/v1/messages. Whether the app appends the path exactly this way is pending our real-device check.
  • ReachAPI accepts the key in both Authorization: Bearer and X-API-Key headers. Keep the default Bearer scheme; if you get 401, switch the auth scheme to x-api-key and apply again.
  • Leave the single sign-on (OIDC) fields empty. They are only for organization-wide identity-provider setups.

5. Apply and restart

  1. Click Apply Changes.
  2. Click Save & Restart. Anthropic's single-machine setup names this exact step: "Click Apply Changes, then click Save & Restart."
  3. On the sign-in screen, choose the option to start in Claude Desktop on 3P with the configuration you entered.
  4. Open the Code tab and select a project folder to start a session.

Tested note (2026-10-27, macOS, Claude Desktop 3.6556.2): once the configuration has taken effect, the app remembers third-party mode and opens straight into it on later launches — the sign-in screen no longer appears and there is no "Claude Desktop on 3P" option to pick. The app records deploymentMode=3p in its own configuration (visible in the app log and in claude_desktop_config.json), so every later launch goes directly to 3P mode.

Switching back to the standard Anthropic-account experience is untested (needs verification): Anthropic's documentation describes choosing the Anthropic sign-in option on the sign-in screen (installation), but that screen did not appear in our test. The configuration is stored on this device only.

6. Model availability

  • If the gateway implements GET /v1/models, the app discovers the models automatically. ReachAPI implements this endpoint. Anthropic: "Auto-discovery shows only models whose IDs are recognizably Claude." A ReachAPI key that lists 52 models therefore shows the 10 claude-* entries in the picker.
  • The first discovered model is the default model (Anthropic: "The first discovered model is then the default model"); in this test the picker defaulted to claude-haiku-5-5. The app also calls a small haiku-family model (claude-haiku-4-5 in this test) in the background to generate conversation titles, which adds a small amount of usage.
  • If the model picker is empty, set the model list explicitly in the same configuration window (Model list) using model IDs that your ReachAPI key can call, for example claude-sonnet-5-5 or claude-opus-5. The authoritative list for your account is GET /v1/models.
  • If the endpoint is unreachable, Anthropic's troubleshooting note applies: "When /v1/models is unreachable or returns an error, the picker falls back to the inferenceModels list; if that list is empty, so is the picker." With discovery off, "the model list below is required and must use full model IDs (aliases like sonnet/opus are resolved via discovery)".
  • Model IDs that do not name a specific Claude model (for example a gateway routing alias) can still appear, but the picker shows no Effort control for them.

7. Verify the integration

  1. In the Code tab, send a short prompt such as explain this repository.
  2. A correct setup returns a streamed answer and shows the file tools working.
  3. For a machine-readable check, open Help → Troubleshooting → Generate Diagnostic Report, click Export to file, and inspect the .zip:
    • provider-status.txt — whether the provider settings are complete and valid
    • deployment-mode.txt — whether the app runs in third-party mode
    • managed-config.txt — where the configuration was read from (secrets are redacted)

You can also test the endpoint from a terminal:

curl -s https://direct.reachapi.ai/v1/messages \
  -H "Authorization: Bearer YOUR_REACH_API_KEY" \
  -H "content-type: application/json" \
  -H "anthropic-version: 2023-06-01" \
  -d '{"model":"claude-sonnet-5-5","max_tokens":16,"messages":[{"role":"user","content":"hi"}]}'

8. Troubleshooting

SymptomLikely causeFix
Gateway was unreachableThe app cannot reach the base URL at startupCheck the URL, proxy, firewall and TLS chain; retry the curl test above
401 / invalid API keyWrong key, or the wrong auth schemeRe-enter the key; switch Gateway auth scheme to x-api-key
Empty model listModel discovery did not return resultsFill in the Model list manually
Answers stop mid-streamThe gateway does not forward server-sent eventsConfirm the gateway streams text/event-stream
Cache reads stay at 0The gateway strips cache_control or usage.cache_creationForward cache_control and return ephemeral_5m_input_tokens / ephemeral_1h_input_tokens
Selections missing in the Code tabA gateway configuration disables some Anthropic-hosted featuresSee section 9
Cannot save the configuration in the configuration window (for example the app quit mid-setup)A half-written or unreachable configurationFully quit Claude Desktop and reopen it — after reopening it usually goes straight into 3P mode (in this test the earlier configuration was already in effect). If the Developer menu is gone, re-enable it via Help → Troubleshooting → Enable Developer Mode. If it still fails, quit the app, move the configuration directory aside as a backup, then configure again: macOS ~/Library/Application Support/Claude-3p/configLibrary, Windows %LOCALAPPDATA%\Claude-3p\configLibrary

9. Differences from the Claude Code CLI setup

  • The desktop app ignores ANTHROPIC_BASE_URL and .claude/settings.json for gateway routing. Only the third-party inference configuration counts.
  • With a gateway configuration active, Anthropic-hosted cloud environments are not offered and Remote Control is unavailable.
  • SSH sessions are in beta. They require Claude Desktop v1.40609.0 or later and the remote host must be listed in the sshHostAllowlist configuration key.
  • CLI-only flags are not available in the app. If you need them, use the Claude Code integration guide instead.

On this page