Setup guide

Connect Claude Desktop

Claude Desktop is Anthropic's desktop app for chat, Cowork and Claude Code. It can run entirely on CheapTokens in its third-party inference mode, with no Anthropic account.

Before you start

The snippets below use claude-sonnet-5-5. Pick another model to update them.

Windows

  1. Install Claude Desktop from claude.com/download. Approve the administrator prompt during setup.
  2. Open the app but don't sign in. In the ☰ menu on the sign-in screen, choose Help → Troubleshooting → Enable Developer Mode.
  3. Open Developer → Configure Third-Party Inference… and fill in the Connection section. Note that the base URL has no /v1 at the end.
    Third-Party Inference
    Inference provider:    Gateway
    Credential kind:       Static API key
    Gateway base URL:      https://cheaptokens.pw
    Gateway API key:       YOUR_API_KEY
    Gateway auth scheme:   Bearer
  4. Add claude-sonnet-5-5 to the model list in the same window. The first model in the list is the default.
  5. Click Test connection, then Apply Changes → Save & Restart. On the sign-in screen, choose the third-party option.
  6. Prefer a file? In the same window, choose Import configuration… and load a JSON file with this content:
    claude-desktop.json
    {
      "inferenceProvider": "gateway",
      "inferenceGatewayBaseUrl": "https://cheaptokens.pw",
      "inferenceGatewayApiKey": "YOUR_API_KEY",
      "inferenceGatewayAuthScheme": "bearer",
      "inferenceModels": ["claude-sonnet-5-5"]
    }

macOS

  1. Install Claude Desktop from claude.com/download.
  2. Open the app but don't sign in. In the menu bar, choose Help → Troubleshooting → Enable Developer Mode.
  3. Open Developer → Configure Third-Party Inference… and fill in the Connection section. Note that the base URL has no /v1 at the end.
    Third-Party Inference
    Inference provider:    Gateway
    Credential kind:       Static API key
    Gateway base URL:      https://cheaptokens.pw
    Gateway API key:       YOUR_API_KEY
    Gateway auth scheme:   Bearer
  4. Add claude-sonnet-5-5 to the model list in the same window. The first model in the list is the default.
  5. Click Test connection, then Apply Changes → Save & Restart. On the sign-in screen, choose the third-party option.
  6. Prefer a file? In the same window, choose Import configuration… and load a JSON file with this content:
    claude-desktop.json
    {
      "inferenceProvider": "gateway",
      "inferenceGatewayBaseUrl": "https://cheaptokens.pw",
      "inferenceGatewayApiKey": "YOUR_API_KEY",
      "inferenceGatewayAuthScheme": "bearer",
      "inferenceModels": ["claude-sonnet-5-5"]
    }

Linux

  1. Install Claude Desktop for Linux (beta) by following Anthropic's Linux guide.
  2. Open the app but don't sign in. In the ☰ menu on the sign-in screen, choose Help → Troubleshooting → Enable Developer Mode.
  3. Open Developer → Configure Third-Party Inference… and fill in the Connection section. Note that the base URL has no /v1 at the end.
    Third-Party Inference
    Inference provider:    Gateway
    Credential kind:       Static API key
    Gateway base URL:      https://cheaptokens.pw
    Gateway API key:       YOUR_API_KEY
    Gateway auth scheme:   Bearer
  4. Add claude-sonnet-5-5 to the model list in the same window. The first model in the list is the default.
  5. Click Test connection, then Apply Changes → Save & Restart. On the sign-in screen, choose the third-party option.
  6. Prefer a file? In the same window, choose Import configuration… and load a JSON file with this content:
    claude-desktop.json
    {
      "inferenceProvider": "gateway",
      "inferenceGatewayBaseUrl": "https://cheaptokens.pw",
      "inferenceGatewayApiKey": "YOUR_API_KEY",
      "inferenceGatewayAuthScheme": "bearer",
      "inferenceModels": ["claude-sonnet-5-5"]
    }

Check that it works

Send a short message in Claude Desktop, then open Dashboard → Usage. The request appears there within a few seconds, with its model, tokens and cost.

Good to know

If something goes wrong

What you seeWhat to do
401 or invalid_api_keyThe key is wrong, disabled or has extra spaces. Create a new key and paste it again.
402 or insufficient_quotaYour balance is empty. Top up under Billing.
404 or model_not_foundThe model ID has a typo. Copy it from the models page.
404 on every requestThe base URL is wrong. Check whether this tool needs the /v1 ending (see the steps above).
429Too many requests per minute. Wait a few seconds and retry.

Prefer a guided version? Open the setup wizard →