[KongchangAI]
Tutorials· 2 min read· 1,349 words

Claude Code Installation Guide: One-Click Integration with DeepSeek V4, Direct Connection in China Without Overseas Accounts

Claude Code Installation Guide: One-Click Integration with DeepSeek V4, Direct Connection in China Without Overseas Accounts

Replace Claude Code's backend with DeepSeek V4 via CC Switch for direct use in China without a VPN.

This article explains how to use the third-party tool CC Switch to replace Claude Code's backend model with DeepSeek V4 Pro for direct access from China. The complete workflow covers: using Watt Toolkit to resolve GitHub access issues, installing the Node.js runtime, configuring the CC Switch proxy tool, obtaining a DeepSeek API Key, and completing the model switch—achieving a command-line AI coding experience without any overseas account or credit card.

Introduction

Claude Code is a command-line AI programming assistant developed by Anthropic, highly praised by developers for its powerful code comprehension and generation capabilities. Unlike plugin-based tools such as GitHub Copilot, Claude Code uses an Agent architecture that can directly operate on local file systems, execute Shell commands, and understand project structures at the entire repository level. It autonomously plans multi-step tasks like reading files, modifying code, running tests, and committing to Git—without requiring step-by-step user intervention. However, due to network and account restrictions, direct usage presents significant barriers for users in China.

The good news is that with the third-party tool CC Switch, we can replace Claude Code's backend model with DeepSeekAd V4 Pro, enabling direct connection from China—no overseas account required, no credit card needed.

This article will walk you through the entire installation and configuration process step by step. Even if you've never touched a command line before, you can get everything set up in just a few minutes.

Preparation: Resolving GitHub Connection Issues

The installation process requires downloading dependency packages from GitHub, so the first step is ensuring your computer can properly access GitHub.

If you don't have a VPN tool, we recommend using Watt Toolkit to accelerate GitHub connections:

  1. Download and install Watt Toolkit
  2. Open the software and click "Network Acceleration"
  3. Find GitHub in the acceleration list and check it
  4. Click "One-Click Accelerate"

Click Network Acceleration

After completing this, open GitHub in your browser to confirm the page loads normally. This step is the foundation for all subsequent operations—make sure to verify the connection is successful.

Installing the Node.js Runtime Environment

Claude Code is built on Node.js, so we need to install the runtime environment first. Node.js is a JavaScript runtime built on Chrome's V8 engine. Claude Code is published as an npm package and requires Node.js to run locally. Installing Node.js automatically includes npm (Node Package Manager), which is used to install Claude Code itself. Currently, Claude Code requires Node.js version 18.x or higher—we recommend choosing the LTS (Long Term Support) version for optimal stability.

Installation can be completed quickly via PowerShell:

Steps:

  1. Type "PowerShell" in the Windows search bar (bottom-left corner)
  2. Right-click and select "Run as Administrator"
  3. Copy the Node.js installation command (provided in the original video's comment section), paste it into the window with Ctrl + V
  4. Press Enter and wait for the automatic download and installation to complete

⚠️ Note: You must run PowerShell as Administrator, otherwise the installation may fail due to insufficient permissions.

After installation, type node -v to verify success—seeing a version number means everything is fine.

Installing and Configuring CC Switch

CC Switch is an open-source third-party tool. Its core mechanism is launching a local proxy server that intercepts requests from Claude Code destined for Anthropic's official API, converts them to the target model's (e.g., DeepSeek) API format, and forwards them. This "API format conversion proxy" technique works because domestic models like DeepSeek and Qwen provide standard interfaces compatible with OpenAI's specification, allowing CC Switch to achieve multi-model switching at relatively low cost without modifying any of Claude Code's own code.

Download and Installation

  1. Visit the CC Switch GitHub repository page
  2. Scroll down to the Releases section, expand Assets to find the Windows .msi installer
  3. Download and double-click it, then follow the prompts to install normally

Install normally

Select the Model

After installation, CC Switch will launch automatically. Click the plus button in the upper-right corner, find and select DeepSeek from the model list.

Obtaining and Configuring the DeepSeek API Key

To call DeepSeek's model service, you need a valid API Key. Before diving into configuration details, it's helpful to understand the token billing mechanism: A token is the basic unit of text processing for large language models. In English, approximately 4 characters equal 1 token; in Chinese, approximately 1-2 characters equal 1 token. The DeepSeek API charges separately for input tokens and output tokens—understanding this mechanism helps you manage costs effectively.

Steps:

  1. Open the DeepSeek Open Platform, register or log in
  2. If your account balance is zero, make a small top-up (a few yuan will last a long time)
  3. Go to the "API Keys" page and click "Create"
  4. Enter an easily identifiable name and confirm
  5. Copy the generated API Key and paste it into the corresponding input field in CC Switch

Key Configuration Recommendations

  • ✅ Enable the "1 Million Context" option: "Context" here refers to the maximum number of tokens the model can process in a single conversation. With 1 million context enabled, the model can read and understand multiple files from large codebases at once, significantly improving its analysis capability for complex projects.
  • ⚠️ "Maximum Thinking Intensity" is recommended to leave off initially: This option corresponds to DeepSeek's Chain-of-Thought deep reasoning mode, where the model generates a large number of internal reasoning tokens before producing the final answer. While it can improve accuracy for complex problems, token consumption per request increases significantly—it's unnecessary for everyday use.

Maximum thinking intensity recommended off initially

In practice, disabling deep thinking mode already meets the vast majority of programming assistance needs. Once you're familiar with your usage patterns, you can enable it on-demand for complex tasks.

Launching Claude Code and Verifying Configuration

With all preparations complete, return to PowerShell for the first launch:

  1. Type claude and press Enter
  2. On first launch, you'll be asked to choose an interface theme—the default dark theme is fine, just press Enter
  3. Once in the interactive interface, type /model to check whether the current model has been switched to DeepSeek

Seeing a DeepSeek-related model name confirms that your Claude Code + DeepSeek V4 configuration is fully complete.

Practical Test: Verifying the Complete Workflow

After configuration, let's do a simple functional verification:

  1. Create a new working folder on your desktop or any location
  2. Type cmd in the folder's address bar and press Enter to open a command-line window
  3. Type claude to launch Claude Code
  4. On first entry to this directory, it will ask whether to trust this folder—press Enter to confirm

Create a new folder first

Try giving it a simple task, for example:

Write a short article about artificial intelligence, output as a markdown document saved to the current folder

If the file is successfully generated and appears in the folder, the entire workflow is fully operational and ready for production use.

Usage Tips and Considerations

Cost Control Tips

  • DeepSeek API charges by token—daily programming assistance costs are very low
  • Disabling "Maximum Thinking Intensity" can reduce per-request costs by several times (avoiding large amounts of internal reasoning tokens)
  • We recommend setting usage alerts or daily limits on the open platform to prevent unexpected overspending
  • Code generation, refactoring, and bug fixing
  • Batch file processing and format conversion
  • Rapid project scaffolding
  • Technical documentation writing and organization
  • Shell script writing

Limitations to Be Aware Of

  • DeepSeek V4 is highly capable, but there are still differences compared to the original Claude Sonnet/Opus on some complex programming tasks
  • As a third-party open-source tool, CC Switch's stability and update cadence require ongoing attention
  • Some of Claude Code's advanced features (such as MCP tool calling) may behave differently with a replaced model. MCP (Model Context Protocol) is an open protocol introduced by Anthropic to standardize interactions between AI models and external tools like browser control and database queries. Since different models vary in their support for tool-calling formats, some MCP features may not be fully replicated.

Conclusion

The core idea behind this entire solution is straightforward: use Watt Toolkit to solve network issues, use CC Switch's local proxy conversion mechanism for model replacement, and use the DeepSeek API to provide actual compute power. Together, these three components enable users in China to experience Claude Code's command-line programming workflow with zero barriers.

The entire deployment process requires no overseas phone number, no international credit card.

#Claude Code installation#DeepSeek V4#CC Switch#AI coding assistant#Claude Code China#DeepSeek API#command-line AI programming
Share:

Related articles