Use of Claude Code
1. Installation
1.1 Install Node JS
After downloading the package, the process will install Node JS and npm automatically.
Note: I install the Node JS:
Check:
1 | test@▒ѩ▒ MINGW64 ~ |
Then, configurate the PATH:
Make two new folders node_cache and node_global inside the Node JS folder:
1 | D:\softwares\nodejs |
Add administrator permissions to folders:
1 | npm config set prefix "D:\softwares\nodejs\node_global" |
Use npm config get prefix and npm config get cachecommands to check:
1 | test@ѩ▒ MINGW64 ~ |
Then add new System Variables:
-
System Variables->New:Variable Name:
NODE_PATHVariable Value:
D:\softwares\nodejs\node_global\node_modulesNote: Here a sub direction node_modules is added
-
User Variables->Path->Edit->New:Add:
D:\softwares\nodejs\node_global -
System Variables->Edit->New:Add:
%NODE_PATH%
Check:
1 | test@▒ѩ▒ MINGW64 ~ |
1.2 Install Git
Skip
1.3 Install cc-switch
This software is used to link the LLM to the Claude Code.
Download the package: CC-Switch-v3.16.1-Windows.msi
Install the cc-switch.
1.4 Install Claude Code
Use the command npm install -g @anthropic-ai/claude-code to install Claude Code
Note: This step requires administrator privileges for the terminal. Please make sure Git Bash is running as Administrator before proceeding.
1 | test@▒ѩ▒ MINGW64 ~ |
Check:
1 | test@▒ѩ▒ MINGW64 ~ |
Then we can run the Claude Code:
1 | test@ѩ▒ MINGW64 ~ |
1.5 Configure the Claude Code
Open the Claude configuration file:
C:\Users\test\.claude.json
The default configuration is as follows:
1 | { |
add new item:
1 | "hasCompletedOnboarding": true |
Note: a , is needed at the end of previous last item.
1 | { |
Check:
Restart the Claude:
1 | test@▒ѩ▒ MINGW64 ~ |
1.6 Integrate A LLM into Claude Code(DeepSeek)
-
Create a API Key.
-
Open cc-switch, add a new LLM provider.
Choose the API provider: Deep Seek.
Fulfill the API, check the 1M option.
Save.
-
Use
/modelCheck:1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22test@ѩ▒ MINGW64 /d
$ claude
╭─── Claude Code v2.1.162 ──────────────────────────────────────────────────────────────────╮│ │ Tips for getting started ││ Welcome back! │ Run /init to create a CLAUDE.md file with inst… ││ │ ─────────────────────────────────────────────── ││ ▐▛███▜▌ │ What's new ││ ▝▜█████▛▘ │ `claude agents --json` now includes `waitingFo… ││ ▘▘ ▝▝ │ `--tools`: explicitly listing Grep/Glob now pr… ││ │ `/effort` now confirms when your chosen level … ││ deepseek-v4-pro · API Usage Billing │ /release-notes for more ││ D:\ │ │╰───────────────────────────────────────────────────────────────────────────────────────────╯
▎ Opus 4.8 is now available! · /model to switch
> /model
───────────────────────────────────────────────────────────────────────────────────────────── Select model
Switch between Claude models. Your pick becomes the default for new sessions. For
other/previous model names, specify with --model.
1. Default (recommended) Use the default model (currently deepseek-v4-pro[1M][1m]) ·
$5/$25 per Mtok
2. deepseek-v4-pro Custom Opus model (1M context)
3. deepseek-v4-pro Custom Sonnet model (1M context)
4. deepseek-v4-flash Custom Haiku model
> 5. deepseek-v4-pro √ Custom model
● High effort (default) ←/→ to adjust
Enter to set as default · s to use this session only · Esc to cancelCheck:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23▎ Opus 4.8 is now available! · /model to switch
> /model
⎿ Set model to deepseek-v4-pro and saved as your default for new sessions
> hello, it's a test message
Thought for 3s (ctrl+o to expand)
● Hello! I received your test message. Everything is working. How can I help you today?
✻ Worked for 3s
> what the model are u?
Thought for 1s (ctrl+o to expand)
● I'm currently running on DeepSeek-v4-pro, as configured by your /model setting. This is the
model you've set as your default for new sessions.
Is there anything I can help you with?
✻ Worked for 2s