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
- A CheapTokens account with some balance. Create one if you haven't.
- Your API key from Dashboard → API key. It starts with
ct_live_. - A model that supports the Claude Messages format. Claude models all do, and the model list on this page shows the others.
The snippets below use claude-sonnet-5-5. Pick another model to update them.
Windows
-
Install Claude Desktop from claude.com/download. Approve the administrator prompt during setup.
-
Open the app but don't sign in. In the ☰ menu on the sign-in screen, choose Help → Troubleshooting → Enable Developer Mode.
-
Open Developer → Configure Third-Party Inference… and fill in the Connection section. Note that the base URL has no
/v1at the end.Third-Party InferenceInference provider: Gateway Credential kind: Static API key Gateway base URL: https://cheaptokens.pw Gateway API key: YOUR_API_KEY Gateway auth scheme: Bearer
-
Add
claude-sonnet-5-5to the model list in the same window. The first model in the list is the default. -
Click Test connection, then Apply Changes → Save & Restart. On the sign-in screen, choose the third-party option.
-
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
-
Install Claude Desktop from claude.com/download.
-
Open the app but don't sign in. In the menu bar, choose Help → Troubleshooting → Enable Developer Mode.
-
Open Developer → Configure Third-Party Inference… and fill in the Connection section. Note that the base URL has no
/v1at the end.Third-Party InferenceInference provider: Gateway Credential kind: Static API key Gateway base URL: https://cheaptokens.pw Gateway API key: YOUR_API_KEY Gateway auth scheme: Bearer
-
Add
claude-sonnet-5-5to the model list in the same window. The first model in the list is the default. -
Click Test connection, then Apply Changes → Save & Restart. On the sign-in screen, choose the third-party option.
-
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
-
Install Claude Desktop for Linux (beta) by following Anthropic's Linux guide.
-
Open the app but don't sign in. In the ☰ menu on the sign-in screen, choose Help → Troubleshooting → Enable Developer Mode.
-
Open Developer → Configure Third-Party Inference… and fill in the Connection section. Note that the base URL has no
/v1at the end.Third-Party InferenceInference provider: Gateway Credential kind: Static API key Gateway base URL: https://cheaptokens.pw Gateway API key: YOUR_API_KEY Gateway auth scheme: Bearer
-
Add
claude-sonnet-5-5to the model list in the same window. The first model in the list is the default. -
Click Test connection, then Apply Changes → Save & Restart. On the sign-in screen, choose the third-party option.
-
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
- This only works when you are not signed in with an Anthropic account. A signed-in app ignores custom base URLs.
- To go back to normal, choose the Anthropic sign-in option on the sign-in screen.
- If the Developer menu is gone after a restart, enable Developer Mode again.
- In this mode there are no Anthropic cloud sessions and no Remote Control.
- An exported or imported config file holds your key in plain text. Delete it after importing.
If something goes wrong
| What you see | What to do |
|---|---|
401 or invalid_api_key | The key is wrong, disabled or has extra spaces. Create a new key and paste it again. |
402 or insufficient_quota | Your balance is empty. Top up under Billing. |
404 or model_not_found | The model ID has a typo. Copy it from the models page. |
| 404 on every request | The base URL is wrong. Check whether this tool needs the /v1 ending (see the steps above). |
| 429 | Too many requests per minute. Wait a few seconds and retry. |
Prefer a guided version? Open the setup wizard →