D1VD1V

Use D1V PAI with CC-Switch CLI / TUI

Use the terminal edition on servers, over SSH, or anywhere the desktop application is unavailable.

Install and inspect the environment

curl -fsSL https://github.com/SaladDay/cc-switch-cli/releases/latest/download/install.sh | bash
cc-switch env tools
cc-switch env check

The independent Rust CLI uses the same provider concepts as the desktop app. Run it as the same OS user that owns the target CLI configuration files.

Codex in the TUI

cc-switch --app codex

Add a custom provider using D1V_PAI_BASE_URL, D1V_PAI_API_KEY, native Responses format, and a model ID returned by /models. Then verify:

cc-switch --app codex provider current
cc-switch --app codex provider list
cc-switch --app codex env check

Claude routing from the CLI

Configure the same Responses provider under cc-switch --app claude, then start routing.

macOS / Linux daemon mode:

cc-switch --app claude proxy enable
cc-switch proxy show

Windows foreground mode:

cc-switch proxy serve --takeover claude

Keep the foreground process running on Windows. Daemon-managed proxy sessions depend on Unix domain sockets and are not portable to Windows.

Reference