100% Working: How to Connect DeepSeek V4 to Codex and Claude Desktop

A fully tested desktop Agent integration guide: first connect DeepSeek V4 to Claude Desktop, then use cc switch + ccx to extend the same model pipeline into Codex Desktop.

100% Working: How to Connect DeepSeek V4 to Codex and Claude Desktop

**This is a thoroughly tested desktop Agent integration tutorial.** You can first connect DeepSeek V4 to Claude Desktop, then use the cc switch + ccx combination to extend the same model pipeline into Codex Desktop.

**Who should read this**
Anyone already using Claude Desktop, Codex Desktop, or experimenting with desktop Agent toolchains and wanting to connect third-party models into a local workflow reliably.

**What you will accomplish**
You will first connect DeepSeek V4 to Claude Desktop, then use ccx to route the same model capability into Codex Desktop, and understand why this approach can be reused for more third-party models.

---

# 1. Connect DeepSeek V4 to Claude Desktop First

The core tool used in this part is **cc switch**. The goal is simple: get Claude Desktop working first and confirm that DeepSeek V4 runs correctly.

1. Upgrade **cc switch** to the latest version **v3.15.0**.
Repository: [https://github.com/farion1231/cc-switch](https://github.com/farion1231/cc-switch)
2. Top up your DeepSeek account and create an API key in the official console: [https://platform.deepseek.com/api_keys](https://platform.deepseek.com/api_keys)

![](https://internal-api-drive-stream.feishu.cn/space/api/box/stream/download/authcode/?code=NDA0OTUwZThhODg3ODI4YjhkNjIxN2ViOGZiMmI1MGVfYjBhNjQwOGFiMWIyOGE4YTZmNjVjYTg3YzBmMDY1NTFfSUQ6NzY0MTAzMzcwMzI1NDM3OTQ4MV8xNzc5MDczMjk3OjE3NzkwNzY4OTdfVjM)

1. Open cc switch, click **Claude Desktop**, switch to the Claude Desktop configuration panel, and click the **+** button in the upper-right corner to add a new configuration.

![](https://internal-api-drive-stream.feishu.cn/space/api/box/stream/download/authcode/?code=M2IwYzc0ZjY0NGM1ZWI0YzQ3OWNlM2NmOGE0NmRhNGVfYjJjNzg5YjVjMWU4MGY2OTZhNDIwZjE1MDM3MzM1YWNfSUQ6NzY0MTAzMzcwMjEwNjM2ODk3MV8xNzc5MDczMjk3OjE3NzkwNzY4OTdfVjM)

1. Use a custom configuration: the provider name can be anything, paste your DeepSeek API key into the API Key field, and set the request URL to:
`https://api.deepseek.com/anthropic`
Then enable model mapping, configure it as shown below, and save.

![](https://internal-api-drive-stream.feishu.cn/space/api/box/stream/download/authcode/?code=YTdkMjE4MzcxYjZmMzRjM2U1NTcyM2ZkMGFiNzNmM2VfZDAwYjYwZGFhZjNhNjExZmJjMDlhNDhlNzEwMzk4MTVfSUQ6NzY0MTAzMzcwNDU4ODEzNTM3N18xNzc5MDczMjk3OjE3NzkwNzY4OTdfVjM)

1. Click Enable, then open Claude Desktop.

![](https://internal-api-drive-stream.feishu.cn/space/api/box/stream/download/authcode/?code=MWUyNDA3MTg5MDZlZGY5MzZjYzA5NmM5MWIwYThjMzFfNjRlMTNiZDgzMjM2OTg5OTBmMDQxZjY1ZjZiMjkxYzdfSUQ6NzY0MTAzMzcwNDE4NTgyNjI3OF8xNzc5MDczMjk3OjE3NzkwNzY4OTdfVjM)

You need developer mode enabled in advance. If you have not done that yet, you can refer to this earlier guide first: [https://mp.weixin.qq.com/s/WpjBfL3q9374G1xEFpbBaw](https://mp.weixin.qq.com/s/WpjBfL3q9374G1xEFpbBaw)

Once you can see that the model configuration has succeeded in the lower-right corner, send a message directly to verify it.

![](https://internal-api-drive-stream.feishu.cn/space/api/box/stream/download/authcode/?code=NTQ1Y2I1MDE4NjNjNzRlZGY0NTVlMWIyMjNjZTA4NWFfMmM2NDQwMjNhYmQ3NmNmNzc0YTkzNWFjOTcyOGQ5MTVfSUQ6NzY0MTAzMzcwNTA0OTgwMzcwOF8xNzc5MDczMjk3OjE3NzkwNzY4OTdfVjM)

At this point, DeepSeek V4 has been successfully connected to Claude Desktop. In fact, this method is not limited to DeepSeek. As long as the protocol is compatible, you can connect other third-party models in the same way.

---

# 2. Use cc switch + ccx to Connect DeepSeek V4 to Codex Desktop

The focus of this second part is to extend the Claude Desktop approach into Codex Desktop. The key combination here is **cc switch + ccx**.

1. First, send the following instruction to your Agent (for example Codex, Claude Code, OpenCode, Trae, Hermes, OpenClaw, and so on):

```text
https://github.com/BenedictKing/ccx
Understand this project, install and start it in a way that suits this machine, and set the access key to 123456 (or leave it unset and the agent will generate a random one for you).
```