N·07Integration guides
CC Switch
A desktop app that centrally manages provider configs for tools like Claude Code, Codex, Gemini CLI and OpenCode: add or remove visually and switch in one click, sparing you manual edits to each tool's config.
- 01
Install
Download and install from CC Switch's official GitHub (farion1231/cc-switch) Releases for your OS. It's completely free and open source — fake paid sites have appeared recently, so stick to the official repo and never enter details on any 'CC Switch' site that asks for payment or login.
- 02
Add a Universal Provider
Pick Claude Code, Codex or Gemini CLI in the sidebar, click + at the top right to open the add page, and at the bottom of the category list on the left choose Universal Provider under Across apps, with NewAPI as the preset type. XylemNode runs on New API and speaks the Anthropic, OpenAI and Gemini protocols, so one entry syncs to all three tools. Fill in the three fields below and tick the apps to sync. Enter only the domain as the API address: CC Switch adds /v1 when it writes the Codex config, and Claude Code and Gemini CLI take the bare domain on their native protocols.
- Name
XylemNode- API address
https://api.xylemnode.com- API Key
sk-your-key
- 03
Set each tool's model
Further down the same form, Model configuration has a model box per tool, pre-filled with NewAPI's defaults; change them to models from the console list: Claude's main model to claude-opus-5-5, with Claude models from the list in the Haiku / Sonnet / Opus boxes too; Codex to gpt-6.1-sol; Gemini to gemini-4-argon. The ticked tools share this one key, so its group has to include every model you enter; if the group only carries one vendor's models (say, only Claude), tick just the matching tool here and add the others on their own pages as in note 2, each with a key from its own group.
- 04
Save and enable
Click Save and CC Switch writes the config into the apps you ticked (after later edits to the Universal Provider, Save & Sync updates them all at once); then click Enable on the XylemNode card on each ticked tool's page (Claude Code, Codex, Gemini CLI). The system tray can then switch each tool's provider quickly.
Common questions
I switched providers in CC Switch but the tool still uses the old one
The official notes point at two causes. One is the tool not having re-read its config yet: Claude Code hot-switches, so a switch usually applies right away; Codex and Gemini CLI only read their config at startup, so restart the terminal or run them again (quit the Codex desktop app completely and reopen it). The other is environment variables competing with it — they outrank config files, so variables like ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN or GEMINI_API_KEY that you set by hand earlier override whatever CC Switch writes, and requests go to the old endpoint. CC Switch detects this and flags it at the top of the window, where you can select the offenders and remove them, with a backup made first. You can also clear them yourself from the system environment or your shell profile. If you configured XylemNode through system environment variables per the Claude Code or Gemini CLI guides, expect to meet this one as soon as you install CC Switch; OPENAI_ variables set for the Aider and Qwen Code guides may be listed as conflicts too, and those two tools need them, so keep them if you still use those tools.