D1VD1V

Install and configure CC-Switch for D1V PAI

Use one desktop app to manage provider credentials, generated CLI configuration, and the local routes required by Anthropic-protocol clients.

Before you start

Complete the Dashboard credential steps first. You need:

  • D1V_PAI_BASE_URL, normally https://pai.d1v.ai/v1
  • D1V_PAI_API_KEY, scoped to one project environment
  • A model ID returned by GET /models

Use CC Switch 3.17.0 or newer for OpenAI Responses routing. Never choose a preset for another API provider: add a Custom provider so the endpoint remains D1V PAI.

Install the desktop app

Download the current release from CC-Switch Releases. On macOS:

brew tap farion1231/ccswitch
brew install --cask cc-switch

Initialize each target CLI once before CC-Switch manages it: codex --help, claude --help, or the equivalent command for your client.

CC-Switch main provider screen
CC-Switch provider screen. Source: official CC-Switch repository; providers shown are examples, not D1V PAI presets.

Add a custom provider

  1. Select the target application in the top app switcher.
  2. Click +, keep the application-specific provider tab, then select Custom.
  3. Name it D1V PAI and paste the project key only into the API Key field.
  4. Use the protocol values from the focused client guide. Codex can use Responses directly; Claude clients require local routing.
  5. Save and enable the provider, then restart the target application or terminal process.
    CC-Switch add-provider screen
    The current add-provider screen. Choose Custom rather than another vendor preset. Source: official CC-Switch repository.

Protocol map

ClientEndpoint enteredAPI formatLocal route
Codexhttps://pai.d1v.ai/v1OpenAI ResponsesNo
Claude Codehttps://pai.d1v.aiOpenAI ResponsesYes
Claude Desktophttps://pai.d1v.aiOpenAI ResponsesYes
OpenAI-compatible clienthttps://pai.d1v.ai/v1OpenAI compatibleUsually no

The Claude rows use the service root because CC-Switch builds and routes the upstream Responses request. Follow the client page instead of guessing where /v1 belongs.

Current references