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.

21

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

22

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

23

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

24

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

25

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

26

Choose DeepSeek from the preset list:

27

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

28

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

29

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

30

Finally enable DeepSeek.

31

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

32

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

26

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

Enable local routing

33

34

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

35

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:

36

Step 2: Call it to generate a PPT

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

37

38

39

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