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?
- 2. Install CC Switch
- 3. Prepare a DeepSeek API Key
- 4. Connect DeepSeek to Claude Code (Step-by-Step)
- 5. Connect DeepSeek to Codex (Including Local Routing Mapping)
- 6. Codex × PPT Skill: Generate a Presentation from One Sentence
- Summary & Recommendations
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.

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

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

Visit the CC Switch official site or GitHub Releases and choose the installer for your system.
- Windows: Download the
.msiinstaller and double-click to install. - Linux: Choose
.deb,.rpm, or.AppImagedepending 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

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:
npm install -g @anthropic-ai/claude-codeAfter installation, type claude in the terminal to launch (official login can be skipped).
2. Configure DeepSeek with CC Switch

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

Choose DeepSeek from the preset list:

Paste your DeepSeek API Key and leave the remaining fields at their defaults (DeepSeek-V4-Pro / Flash are pre-configured).

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

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

Finally, enable DeepSeek.

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

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

Select DeepSeek, enter the API Key, and make sure "Local Routing Mapping" is enabled, then click Add.
Enable Local Routing


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

Once the protocol conversion is complete, you can chat with DeepSeek normally!
6. Codex × PPT Skill: Generate a Presentation from One Sentence
Recommended Skill Source
Step 1: Install the Skill
Simply send the repository URL to Codex and let it complete the installation for you:

Step 2: Invoke to Generate a PPT
Once installed, invoke it with a slash command or by directly describing the task:



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.