GPTPRO

How to Use Claude Code + Codex in China! A Complete Step-by-Step Tutorial (Zero-Friction DeepSeek Integration)

Table of Contents (Click to Jump)


1. What Is CC Switch?

Claude Code, Codex, and other command-line AI coding tools each have different configuration formats. When switching model providers, you have to manually edit JSON, TOML, or .env files, filling in Base URL, API Key, model names, and other parameters — extremely 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 this exact pain point, managing configurations for multiple AI coding tools — Claude Code, Codex, Gemini CLI, OpenCode, and more — through a visual interface.

21

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

22

CC Switch comes with 50+ provider presets (DeepSeek, Qwen, Kimi, Zhipu GLM, MiniMax, and more), supports one-click switching, and can even 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 depending on your distribution.

After installation, launch it — the program will appear on your 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 shown only 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 remaining fields at their defaults (DeepSeek-V4-Pro / Flash are pre-configured).

28

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

29

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

30

Finally, enable DeepSeek.

31

Restart Claude Code and type "What model are you?" to verify:

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


5. Connect DeepSeek to Codex (Including Local Routing)

Codex (OpenAI's coding tool) is extremely popular and comes in both CLI and desktop app forms. The following uses the desktop app as an example (the CLI is similar).

Configure with CC Switch

32

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

26

Select DeepSeek, enter the API Key, and make sure "Local Routing Mapping" is enabled, then 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 a Presentation from One Sentence

guizang-ppt-skill

Step 1: Install the Skill

Simply send the repository URL to Codex and let it complete the installation for you:

36

Step 2: Invoke to Generate a PPT

Once installed, invoke it with a slash command or by directly describing the task:

37

38

39

Invoke this skill to create a PPT introducing the scenery of Nanjing, aimed at day-trip students.

After generation, you can open it directly in your browser to preview.


Summary

With **CC Switch**, users in China can easily combine Claude Code + Codex + DeepSeek, completely leaving behind manual configuration headaches. Combined with the powerful PPT Skill, you can generate professional presentations from a single sentence, dramatically boosting both coding and presentation efficiency.
Share this article

Related reading