Goal of this guide: install cc-switch (a GUI manager for switching API configurations across multiple tools) on macOS, 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). This guide installs it primarily via Homebrew Cask, with manual .dmg download as an alternative.
cc-switch is in the official Homebrew cask repository, so open Terminal and install it directly (no private tap needed):
brew install --cask cc-switch
After installation, open "CC Switch" from Launchpad / Applications.
(If brew cannot find the cask or the install fails, run brew update and retry, or use Method B and download manually.)
After opening "CC Switch":
Suggested settings (optional): go to Settings → General and enable start-on-boot, minimize-to-menu-bar, 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.If you only use Claude Desktop (GUI chat, no terminal), the Claude Desktop tab in cc-switch can be configured directly and supports "one-click import of providers from Claude Code".
brew update first and retry (cc-switch is in the official cask repository, no tap needed); or use Method B and download the .dmg.brew upgrade --cask cc-switch; manual download: install the new .dmg over the old version.~/.cc-switch/; before a major upgrade you can manually back up ~/.cc-switch/cc-switch.db.