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_URLor.claude/settings.jsonfor 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
- In-app configuration
- Deploy with an LLM gateway
- Configuration reference
- Install and set up (single-machine setup)
3. Enable Developer Mode
- Install and launch Claude Desktop.
- Do not sign in or create an Anthropic account.
- 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.
- 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:
| Field | Value |
|---|---|
| Inference provider | Gateway |
| Credential kind | API key |
| Gateway base URL | https://direct.reachapi.ai |
| Gateway API key | YOUR_REACH_API_KEY |
| Gateway auth scheme | Bearer (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 sendsPOST /v1/messagesto that address: Anthropic's gateway page requires the gateway to implementPOST /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: BearerandX-API-Keyheaders. Keep the default Bearer scheme; if you get401, switch the auth scheme tox-api-keyand apply again. - Leave the single sign-on (OIDC) fields empty. They are only for organization-wide identity-provider setups.
5. Apply and restart
- Click Apply Changes.
- Click Save & Restart. Anthropic's single-machine setup names this exact step: "Click Apply Changes, then click Save & Restart."
- On the sign-in screen, choose the option to start in Claude Desktop on 3P with the configuration you entered.
- 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 10claude-*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-5in 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-5orclaude-opus-5. The authoritative list for your account isGET /v1/models. - If the endpoint is unreachable, Anthropic's troubleshooting note applies: "When
/v1/modelsis unreachable or returns an error, the picker falls back to theinferenceModelslist; 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
- In the Code tab, send a short prompt such as
explain this repository. - A correct setup returns a streamed answer and shows the file tools working.
- 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 validdeployment-mode.txt— whether the app runs in third-party modemanaged-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
| Symptom | Likely cause | Fix |
|---|---|---|
Gateway was unreachable | The app cannot reach the base URL at startup | Check the URL, proxy, firewall and TLS chain; retry the curl test above |
401 / invalid API key | Wrong key, or the wrong auth scheme | Re-enter the key; switch Gateway auth scheme to x-api-key |
| Empty model list | Model discovery did not return results | Fill in the Model list manually |
| Answers stop mid-stream | The gateway does not forward server-sent events | Confirm the gateway streams text/event-stream |
Cache reads stay at 0 | The gateway strips cache_control or usage.cache_creation | Forward cache_control and return ephemeral_5m_input_tokens / ephemeral_1h_input_tokens |
| Selections missing in the Code tab | A gateway configuration disables some Anthropic-hosted features | See section 9 |
| Cannot save the configuration in the configuration window (for example the app quit mid-setup) | A half-written or unreachable configuration | Fully 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_URLand.claude/settings.jsonfor 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
sshHostAllowlistconfiguration key. - CLI-only flags are not available in the app. If you need them, use the Claude Code integration guide instead.