Goal of this guide: install cc-switch (a GUI manager for switching API configurations across multiple tools) on a Linux desktop environment, then use it to configure Claude Code, Codex, and other tools to connect to MYAI168.
cc-switch is a GUI app (built with Tauri 2) and requires a desktop environment (Wayland or X11). It cannot run on a command-line-only server (headless, no desktop) — in that case use each tool's "manual config file" method instead, or the community cc-switch-cli project.
Download the matching file from the Releases page, then follow your system:
Download CC-Switch-*-Linux*.deb and open a terminal in the folder holding the file:
sudo dpkg -i CC-Switch-*.deb
sudo apt-get install -f # auto-installs missing dependencies, if any
(Or resolve dependencies in one line: sudo apt install ./CC-Switch-*.deb)
★ Common: missing libwebkit2gtk dependency ★
Ubuntu desktop often does NOT ship the graphics library cc-switch needs, so the first dpkg -i shows:
cc-switch depends on libwebkit2gtk-4.1-0; however:
Package libwebkit2gtk-4.1-0 is not installed.
dpkg: error processing package cc-switch ...
This is normal, not broken. Run the following line — it auto-installs libwebkit2gtk and the other dependencies, and finishes configuring cc-switch:
sudo apt-get install -f # answer Y at the Y/n prompt
If that still does not resolve everything (package names vary across Ubuntu versions), install manually and retry:
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-0
sudo dpkg -i CC-Switch-*.deb
When done, check: which cc-switch should print /usr/bin/cc-switch
sudo rpm -i CC-Switch-*.rpm
# or: sudo dnf install ./CC-Switch-*.rpm
sudo zypper install ./CC-Switch-*.rpm
paru -S cc-switch-bin
# or: yay -S cc-switch-bin
Download CC-Switch-*-Linux*.AppImage and, in the folder holding the file:
chmod +x CC-Switch-*.AppImage
./CC-Switch-*.AppImage
(An AppImage is a portable file — double-click it or run the commands above; it is not written into the system package database.)
Open "CC Switch" from the application menu, or start it with the AppImage command above.
After launch:
Suggested settings (optional): go to Settings → General → Window Behavior and enable start-on-boot, minimize-to-tray, etc. as needed.
cc-switch is only a "configuration manager" — it does not include the AI tools themselves. Install Claude Code / Codex and the other CLIs first, then use cc-switch to configure them to connect to MYAI168.
For installing each tool and setting up MYAI168, see the corresponding Developer Center pages:
https://www.myai168.com/en/api/anthropic (without /v1), model claude-opus-4-8, key supplied via either apiKeyHelper or ANTHROPIC_API_KEY (see the Claude Code page).https://www.myai168.com/en/api/openai/v1, model gpt-5.6-sol.sudo apt-get install libfuse2).sudo apt-get install -f to auto-install the missing dependencies.paru -S cc-switch-bin (rerun to update). AppImage: download the new AppImage and replace the old file.~/.cc-switch/; before a major upgrade you can manually back up ~/.cc-switch/cc-switch.db.