Claude Desktop can run in Cowork on third-party (3P) mode: the app routes inference to a gateway that implements the Anthropic Messages API instead of signing in to claude.ai. The TrueFoundry AI Gateway is compatible with this mode. For the full product story, see Anthropic’s Installation and setup, Configuration reference, Using an LLM gateway, and the Help Center article Install and configure Claude Cowork with third-party platforms.Documentation Index
Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you configure Claude Desktop, ensure you have:- TrueFoundry account — Create a TrueFoundry account and follow Gateway quick start. You need your gateway base URL (see Gateway base URL) and a TrueFoundry API key.
- Models on the gateway — Add the Claude models you plan to use via TrueFoundry (Anthropic direct, Bedrock, or Vertex). See Anthropic model integration. For Cowork, include Opus, Sonnet, and Haiku so primary chats and sub-agents can resolve cleanly (details below).
- Claude Desktop — Install from claude.com/download. For manual setup, launch the app but do not sign in until you have opened the configuration window (Anthropic recommends staying on the login screen).
Enable Developer Mode
The third-party inference UI is behind Developer Mode. macOS: Menu bar → Help → Troubleshooting → Enable Developer Mode. Windows: Application menu (☰, top-left on the login screen) → Help → Troubleshooting → Enable Developer Mode.Open the configuration window
Developer → Configure third-party inference. You should see a sidebar with sections such as Connection, Sandbox & workspace, Connectors & extensions, and others. Work through Connection first, then Identity & Models as needed.Connection — point Claude Desktop at TrueFoundry
- Under Connection, choose Gateway (Anthropic-compatible).
- Set Gateway base URL to your TrueFoundry AI Gateway URL, for example
https://<your-host>/api/llm. This must behttps://. - Set Gateway API key to your TrueFoundry API key.
- Set Gateway auth scheme to
bearer(sendsAuthorization: Bearer <key>). Usex-api-keyonly if your deployment expects that header instead. - Gateway extra headers (optional) — one
Name: Valueper line for tenant routing or metadata, for exampleX-TFY-METADATA: {"team":"platform"}.

Identity & Models — optional discovery vs explicit list
Per Anthropic’s configuration docs, the model list forgateway inference is optional: when you leave it empty, Cowork calls your gateway’s GET /v1/models endpoint and builds the picker from the response. The TrueFoundry Gateway exposes this endpoint, so you can rely on auto-discovery.
We still recommend setting the model list explicitly. When you configure it, the picker shows exactly the models you list instead of everything /v1/models returns. That helps you:
- Pin Haiku — Cowork’s built-in Explore sub-agent is configured to use Haiku for fast, read-only work. User-dispatched sub-agents in Cowork have also been observed to route through Haiku (anthropics/claude-code#47488). If discovery returns no Haiku id or several ambiguous Haiku variants, sub-agent calls can fail or behave unpredictably. Listing
your-account/claude-haiku-4-5(or your org’s equivalent) removes that ambiguity. - Curate the picker — hide experimental or internal models from end users.
- Control 1M-context variants — only enable Offer 1M-context variant for models your provider actually serves with the extended window. Cowork does not probe the provider; wrong settings fail mid-session once context grows.
provider-account/model-id (same strings you use in the TrueFoundry playground). Example (replace tfy-ai-anthropic with your Anthropic provider account name in TrueFoundry):
sonnet / opus are accepted when they match your gateway’s advertised ids.

Apply locally and relaunch
Click Apply locally. Claude Desktop writes the configuration and relaunches. On the sign-in screen you should see the option to start in Cowork on 3P using the profile you just built.Verify the integration
- Start a Cowork session and send a short test message.
- In TrueFoundry, open AI Gateway → Analytics (see Analytics overview) and confirm requests appear for your API key and chosen model.
- For configuration diagnostics, use Help → Troubleshooting → Copy Managed Configuration Report — it summarizes detected keys and whether gateway credentials validated (secrets redacted).
Code tab and Claude Code CLI
The Code tab inside Claude Desktop uses Claude Code on the host. Some Cowork settings do not yet mirror one-to-one into Code-tab sessions. For terminal or VS Code workflows with environment variables andsettings.json, follow Claude Code and Claude Code Max.