DEV Community

Cover image for A Practical Guide to Configuring Claude Desktop with a Third-Party Inference Gateway
Germey
Germey

Posted on Originally published at platform.acedata.cloud

A Practical Guide to Configuring Claude Desktop with a Third-Party Inference Gateway

If you use Claude Desktop as a daily coding or research companion, a third-party inference gateway gives you a cleaner way to route model calls while keeping the desktop workflow familiar.

This guide focuses on one specific setup: configuring Claude Desktop’s Third-Party Inference Gateway with Ace Data Cloud. This is not the Claude Code setup, and it is not the MCP Connector configuration inside Claude Desktop. The goal here is narrower: set the gateway fields correctly, restart the app, and verify that Claude Desktop can call models, stream messages, and continue tool calls through the gateway.

What you are configuring

Claude Desktop exposes a developer-mode menu for third-party inference. In that screen, you choose Gateway and provide a base URL, an API key, and an auth scheme.

The values from the Ace Data Cloud guide are:

Claude Desktop field Value
Gateway base URL https://api.acedata.cloud
Gateway API key your Ace Data Cloud API key
Gateway auth scheme bearer
Credential kind Static API key

Under the hood, the gateway supports /v1/models, Bearer-authenticated streaming /v1/messages, tool calling, and tool_result continuation used by Claude Desktop.

That matters because a simple chat completion is not enough for a desktop assistant. If your workflow uses tools, Claude Desktop needs to send tool calls, receive results, and continue the conversation without breaking the turn.

Step 1: Get an API key

Start by opening the Ace Data Cloud application list, entering an available application, and copying the API key.

Treat the key like any other production credential:

  • do not paste it into public logs;
  • do not commit it to a repository;
  • do not include it in screenshots;
  • rotate it if you accidentally expose it.

Claude Desktop will store it as a static API key in the gateway configuration.

Step 2: Open Claude Desktop developer mode

On the Claude Desktop login page, open the menu path:

Help → Troubleshooting → Enable Developer Mode
Enter fullscreen mode Exit fullscreen mode

After developer mode is enabled, open:

Developer → Configure Third-Party Inference…
Enter fullscreen mode Exit fullscreen mode

This is the configuration surface you want for this tutorial. If you are looking at Claude Code settings or an MCP connector JSON file, you are in the wrong place for this particular guide.

Step 3: Fill in the gateway settings

In the Third-Party Inference configuration screen, select Gateway and enter:

Gateway base URL: https://api.acedata.cloud
Gateway auth scheme: bearer
Credential kind: Static API key
Gateway API key: YOUR_API_KEY
Enter fullscreen mode Exit fullscreen mode

Then click Apply Changes, followed by Save & Restart.

Do not skip the restart. A common failure mode with desktop integrations is changing a setting, testing immediately, and debugging a stale configuration. Restarting makes the verification step much less ambiguous.

Step 4: Verify with a minimal prompt

After Claude Desktop restarts, select an available model and create a new conversation.

Use a minimal prompt first:

Reply only OK
Enter fullscreen mode Exit fullscreen mode

This checks the basic path before you introduce a larger prompt, files, or tool use. Once that works, perform a small tool task. The gateway documented for this setup supports streaming /v1/messages, tool calling, and tool_result continuation, so a tool task is an important second check.

You can also inspect invocation records in Usage History on the platform side. If something fails, those records are more useful than guessing from the desktop UI alone.

What to check when it fails

Here is the debugging order I would use before changing random settings.

401 errors

A 401 usually means the key is wrong or missing. Recheck that:

  • the copied API key is complete;
  • the auth scheme is exactly bearer;
  • the credential kind is Static API key;
  • the key was not pasted with extra whitespace.

Do not share the API key when asking for help.

Model not found

If a model cannot be found, recheck the gateway configuration and fully restart Claude Desktop. Since the gateway supports /v1/models, the model list is part of the integration path; a stale desktop state or wrong gateway URL can make this look like a model issue when it is actually a configuration issue.

Tool calls stop after the first call

For agent-like workflows, the continuation step matters. This gateway supports tool calling and tool_result continuation used by Claude Desktop. If a normal prompt works but tool use does not, test a very small tool task and then look at the invocation records for the trace ID.

Prompt caching confusion

The guide notes that prompt caching fields are retained. Cache write and read values both being 0 does not mean that a cache hit occurred. Avoid treating those numbers as proof of caching behavior unless the surrounding usage records support that interpretation.

A practical verification checklist

Before you consider the setup done, run through this short checklist:

  • Gateway base URL is https://api.acedata.cloud.
  • Auth scheme is bearer.
  • Credential kind is Static API key.
  • Claude Desktop was restarted after applying changes.
  • A new conversation can answer Reply only OK.
  • A small tool task completes.
  • Usage History shows invocation records.
  • Any support report includes a trace ID, not an API key.

Closing thoughts

The biggest trick with desktop AI configuration is knowing which layer you are editing. For this workflow, stay in Claude Desktop’s Third-Party Inference Gateway screen, keep the gateway values minimal, restart before testing, and verify both plain messages and tool continuation. The full Ace Data Cloud setup notes are here: https://platform.acedata.cloud/documents/claude-desktop-gateway-integration

Top comments (0)