D1VD1V

Use D1V PAI with Claude Desktop

Claude Desktop is a separate CC-Switch target with its own provider store and live configuration. Configure it only after the Claude Code route works.

Understand the separate target

Claude Desktop and Claude Code are separate applications in CC-Switch. Enabling a Claude Code provider does not configure Claude Desktop.

Claude Desktop panel in CC-Switch
Select the dedicated Claude Desktop target before adding its provider. Source: official CC-Switch user manual.

Add the provider and map roles

  1. Select Claude Desktop and add a Custom provider.
  2. Enter D1V PAI, the project key, and service root https://pai.d1v.ai.
  3. Choose OpenAI Responses API (routing required).
  4. Map the default, Sonnet, Opus, and Haiku roles to IDs returned by D1V PAI /models.
  5. Save and enable the provider.
    Claude Desktop add-provider screen
    Claude Desktop has its own provider form and model mapping. Source: official CC-Switch user manual.

Enable routing and restart Desktop

Enable the local routing service, then enable takeover for Claude Desktop. Keep CC-Switch running and fully quit and reopen Claude Desktop; it does not hot-reload provider configuration.

CC-Switch local routing settings
The route service must be running before Claude Desktop takeover can work.

When to use this path

Use this path only when you specifically need the Claude Desktop interface. For terminal coding work, Codex is simpler and Claude Code has fewer application-level variables.

Reference: CC-Switch Claude Desktop manual.