Claude Desktop app logo
Chat apps

Use TokenRex with Claude Desktop app

Configure Claude Desktop's third-party inference gateway for Chat, Cowork and Code in supported versions.

Setup checked against the linked documentation. Screenshots are reference examples from the tool's publisher, not proof of a TokenRex connection. Live execution inside this third-party app has not been tested; verify a short request before running larger tasks.

Before you start

  • A private TokenRex API key
  • An enabled model ID from Models & Pricing
  • A supported version of the tool; review the method's protocol requirements

Setup methods

01

Developer menu — local setup

The documented in-app method. It requires an Anthropic Messages-compatible gateway, including streaming and tool use; a Chat Completions endpoint alone is not enough.

  1. 1

    Update Claude Desktop to a release with third-party inference configuration. The gateway configuration interface was introduced in version 1.2581.0; available fields depend on your version.

  2. 2

    Open Help → Troubleshooting → Enable Developer Mode. Then open Developer → Configure Third-Party Inference… in the app menu.

  3. 3

    Choose the gateway configuration, enter https://tokenrex.ai/api/public as the gateway base URL, and select the authentication scheme that matches your gateway. TokenRex keys are private; never include one in a screenshot.

    Official Claude Desktop third-party inference configuration window
    Claude Desktop's official gateway configuration window. Field availability varies by app version. Official source
    1. 1Gateway URL: use the root address without /v1.
    2. 2Authentication: select a scheme your gateway accepts.
    3. 3Save and open a new session to check the selected gateway.
  4. 4

    Choose API-key authentication if available and provide your TokenRex key. Do not use a subscription login as an API key. Confirm the saved configuration in a new session.

  5. 5

    Test a Claude model in Chat first. Desktop third-party inference can cover Chat, Cowork and Code; it is not limited to Code. Cowork availability also depends on the platform and installer.

  6. 6

    If the gateway or authentication fields are absent, check the installed Desktop version and the current official setup guide. Do not substitute Claude Code's settings file for Desktop configuration.

Setup reference
02

Managed deployment — administrator setup

An alternative for centrally managed installations. Local evaluation does not require an Enterprise Admin Console; organization-wide deployment may have additional requirements.

  1. 1

    For an organization, review Anthropic's managed Desktop third-party inference deployment instructions and supported authentication choices.

  2. 2

    Have your administrator distribute the gateway configuration through the supported operating-system management policy. OIDC requires a sufficiently recent app version and an identity provider; an ordinary API key is not an OIDC configuration.

  3. 3

    Restart Desktop, confirm the managed gateway is selected, and test Chat before enabling access to files or connected tools.

Setup reference

Troubleshooting

The Developer menu is missing
Enable Developer Mode from Help → Troubleshooting and update the app. This is a Desktop menu, not a setting on claude.ai.
Chat works but an agent task fails
Streaming, Anthropic tool-use events and the chosen Claude model must all be compatible. A successful basic request does not establish Cowork or Code compatibility.
Authentication fails
Check that the saved TokenRex key is active and belongs in the tool's API-key field, not its subscription sign-in. Remove accidental spaces, check your wallet balance, and never share the key in screenshots or exported settings.
The model is missing or the request URL returns 404
Copy an exact enabled model ID from Models & Pricing. Follow this method's URL field: some tools expect the versioned base, others the root or full completion address. Check the documented API protocol before changing the path.
Chat works but streaming or tools fail
Test a short plain-text conversation first. Confirm the selected model and installed tool version support the required protocol and capabilities. Enable agent actions only after separately checking streaming and tool calls.

Verify the connection

Send a short message with the selected model, read its response, then confirm the exact model appears in your TokenRex usage. Test streaming and tool use separately before larger agent tasks.