Skip to content

Claude Code + Codex Tutorial ​

Table of Contents (click to jump) ​


1. What is CC Switch

Command-line AI coding tools like Claude Code and Codex each have different configurations. Switching model providers means manually editing JSON, TOML or .env files — filling in Base URL, API Key, model name and more, which is very error-prone. Switching quickly between domestic models like DeepSeek, Qwen, Kimi and GLM is even more of a hassle.

CC Switch is a free, open-source, cross-platform desktop tool that solves exactly this pain point. It uses a visual interface to centrally manage configurations for multiple AI coding tools, including Claude Code, Codex, Gemini CLI and OpenCode.

CC Switch main interface for managing Claude Code configs

Open-source link: https://github.com/farion1231/cc-switch

CC Switch preset list with 50+ providers such as DeepSeek

CC Switch ships with 50+ provider presets (DeepSeek, Qwen, Kimi, Zhipu GLM, MiniMax, etc.), supports one-click switching, and can be operated quickly from the system tray.


2. Install CC Switch

CC Switch website downloads page with installers for each OS

Visit the CC Switch official site or GitHub Releases and choose the installer for your system.

  • Windows: download the .msi installer and double-click to install.
  • Linux: choose .deb, .rpm or .AppImage based on your distribution.

After installation, launch it — the program appears on the desktop or in the system tray.


3. Prepare a DeepSeek API Key

DeepSeek Open Platform API Keys page

Visit the DeepSeek Open Platform, register and log in → API Keys page → create a new Key.

Note: The Key is only shown once at creation — copy and save it immediately.


4. Connect DeepSeek to Claude Code (step-by-step)

1. Install Claude Code ​

Make sure Node.js is installed (download from the official site), then run:

bash
npm install -g @anthropic-ai/claude-code

After installation, type claude in the terminal to launch (official login can be skipped).

2. Configure DeepSeek with CC Switch ​

Selecting the Claude provider tab at the top of CC Switch

Open CC Switch, select Claude at the top → "Add Provider".

Choosing DeepSeek from the CC Switch preset list

Choose DeepSeek from the preset list:

CC Switch form with the DeepSeek API Key field

Paste your DeepSeek API Key and leave the other fields at their defaults (DeepSeek-V4-Pro / Flash are built in).

1M context mode checkbox in CC Switch

Optional: tick 1M context mode to unlock a million-token ultra-long context.

Config file automatically written by CC Switch for Claude Code

Click "Add" and review the automatically modified config file:

Enabling the DeepSeek configuration in CC Switch

Finally enable DeepSeek.

Claude Code chat confirming the DeepSeek model is active

Restart Claude Code and ask "What model are you?" to verify.

How it works: DeepSeek is compatible with the Anthropic protocol, so CC Switch writes settings.json automatically.


5. Connect DeepSeek to Codex (with local routing)

Codex (OpenAI's coding tool) is very popular and comes in both CLI and desktop app forms. We'll use the desktop app as an example (CLI is similar).

Configure with CC Switch ​

Switching CC Switch to the Codex provider tab

Open CC Switch → switch to Codex at the top → "Add Provider".

Selecting the DeepSeek preset for Codex in CC Switch

Choose DeepSeek, fill in the API Key, be sure to enable "Local Route Mapping", and click Add.

Enable local routing ​

Enabling Codex local route mapping in CC Switch

Routing settings with the master switch and Codex route enabled

After switching to DeepSeek, click "Settings" → Routing Settings → turn on the "Master Routing Switch" and enable the Codex route.

Chatting with DeepSeek directly in Codex

Once the protocol conversion is complete, you can chat with DeepSeek normally!


6. Codex × PPT Skill: Generate Presentations with One Sentence

guizang-ppt-skill

Step 1: Install the Skill ​

Send the repository link to Codex and let it complete the installation for you:

Asking Codex to install the PPT Skill from a repository link

Step 2: Call it to generate a PPT ​

After installation, invoke it with a slash command or by describing the task directly:

Invoking the PPT Skill with a slash command in Codex

PPT prompt for a Nanjing one-day student trip in Codex

Presentation generated by the PPT Skill opened in a browser

Use this skill to generate a PPT introducing the scenery of Nanjing, for a one-day student trip.

Once generated, open it in the browser to preview.


Summary

With **CC Switch**, users in China can easily combine Claude Code + Codex + DeepSeek and say goodbye to manual configuration headaches. Combined with the powerful PPT Skill, you can generate professional presentations with a single sentence, dramatically boosting both coding and presentation efficiency.
Contact<br>me