Claude Code + Codex Tutorial
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 route mapping)
- 6. Codex × PPT Skill: Generate Presentations with One Sentence
- Summary and Recommendations
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.

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

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

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,.rpmor.AppImagebased on your distribution.
After installation, launch it — the program appears on the 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 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:
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 other fields at their defaults (DeepSeek-V4-Pro / Flash are built in).

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

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

Finally enable DeepSeek.

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

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

Choose DeepSeek, fill in the API Key, be sure to enable "Local Route Mapping", and 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 Presentations with One Sentence
Recommended Skill source
Step 1: Install the Skill
Send the repository link to Codex and let it complete the installation for you:

Step 2: Call it to generate a PPT
After installation, invoke it with a slash command or by describing the task directly:



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.
