> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sphinx.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Claude Desktop to an API gateway

> Configure Claude Desktop to send requests through the Sphinx API gateway.

Use Claude Desktop's third-party inference settings to route requests through the Sphinx API gateway.

## Video Tutorial

<iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/4VhLYnHdi-A" title="Connecting Claude Desktop to the Sphinx API Gateway" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

## Prerequisites

Before you begin, make sure you have:

* The latest version of [Claude Desktop](https://claude.com/download)
* Access to Claude Desktop
* Your organization is enabled for the Sphinx LLM Gateway
* Your Sphinx API key

## Configure the API gateway

<Steps>
  <Step title="Open Claude Desktop">
    Launch Claude Desktop and sign in with your company email. <Note>Claude requires you to sign in at least once with an email or enterprise SSO. This account will NOT be used after this process is complete. You will instead be using Sphinx's private backend, which maintains stricter security standards.</Note>
  </Step>

  <Step title="Enable Developer Mode">
    From the application menu, select **Help → Troubleshooting → Enable Developer Mode**.

    Confirm the warning when prompted. Claude Desktop restarts and adds a **Developer** menu to the application menu bar.

    <Note>
      If the **Developer** menu is already visible, Developer Mode is enabled and you can continue to the next step.
    </Note>
  </Step>

  <Step title="Open the third-party inference settings">
    Select **Developer → Configure Third-Party Inference**.
  </Step>

  <Step title="Choose Gateway">
    In the configuration dialog, select **Gateway**.
  </Step>

  <Step title="Enter the gateway credentials">
    Complete the form with the following values:

    | Field                   | Value                                             |
    | ----------------------- | ------------------------------------------------- |
    | **Credential Kind**     | **Static API Key**                                |
    | **Gateway Base URL**    | `https://api.prod.sphinx.ai/ai-gateway/anthropic` |
    | **API Key**             | Your Sphinx API key                               |
    | **Gateway Auth Scheme** | **Bearer**                                        |

    Enter the gateway base URL exactly as shown.
  </Step>

  <Step title="Test the connection">
    Click **Test Connection**.

    Continue only after Claude Desktop confirms that the connection was successful.
  </Step>

  <Step title="Restart with the gateway">
    Restart Claude Desktop. When prompted to choose how to continue, select **Continue with Gateway**.
    <Note>After you log in with the gateway, your Claude Desktop application will no longer send data directly to Anthropic. All AI usage will instead go through Sphinx's secure API gateway.</Note>
  </Step>
</Steps>

## Verify Claude Desktop is connected

Start a new chat and send a simple prompt, such as:

```text theme={null}
Reply with: Gateway connection successful.
```

If Claude responds, Claude Desktop can reach AI models through the gateway.
