Claude Desktop Configuration (ccswitch Configuration)

Claude Desktop Configuration (ccswitch Configuration)

Updated on June 17

Step 1: Download Claude Desktop

A proxy is required during installation. If you connect directly, an error will occur.

Claude installer:

EXE
Claude Setup (1).exe
6.68MB

You can also download the installer from the official website (proxy required): https://code.claude.com/docs/zh-CN/desktop-quickstart

After downloading the installer, choose the installation location and proceed through the setup wizard. A proxy is required throughout the entire process.

Step 2: Configure Claude Desktop Through ccswitch (Recommended)

In ccswitch, select Claude Code, then click the plus button on the right to create a new connection.

Under the Claude Code provider, choose Custom Configuration.

Enter the provider name, API Key, and API request URL.

Code block Plain Text
https://tokenadvent.com

After the configuration is complete, click Save to use it.

Step 2: Configure Claude Desktop Locally

Configuration file path:

Code block Plain Text
C:\Users\Administrator\AppData\Local\Claude-3p\configLibrary

There are two key files in the folder: _meta.json and [appliedId].json. Here, [appliedId] is a placeholder for the actual ID number. Fill it in according to the actual file on your local machine. _meta.json determines which configuration file takes effect; [appliedId].json contains your configuration.

The contents of _meta.json are:

Code block JSON
{
  "appliedId": "00000000-0000-4000-8000-000000157210" # actual ID of the configuration file that takes effect,
  "entries": [
    {
      "id": "9bee4836-cc80-4ba7-8784-c79736168f32",
      "name": "Default"
    },
    {
      "id": "47c5642d-2812-4c45-9bca-66a2ad983ac6",
      "name": "Anthropic API"
    },
    {
      "id": "00000000-0000-4000-8000-000000157210",
      "name": "CC Switch"
    }
  ]
}

The contents of [appliedId].json are:

Code block JSON
{
  "disableDeploymentModeChooser": true,
  "inferenceGatewayApiKey": "sk-xxxx",
  "inferenceGatewayAuthScheme": "bearer",
  "inferenceGatewayBaseUrl": "https://rehdasu.cn",
  "inferenceModels": [
    "claude-opus-4-8"
  ],
  "inferenceProvider": "gateway"
}

After configuring the files, save them for the changes to take effect, and then you can use Claude Desktop normally.