skip to content
ClaudeCode Windows

Using Claude Code on Windows

1 min read

This page was translated by AI

Prerequisites

Make sure Node.js 18 or later is installed on Windows.

Tutorial

Run this command:

Terminal window
npm install -g @anthropic-ai/claude-code

Then open your user directory. If you cannot find it, run:

Terminal window
echo %USERPROFILE%

to see its path.

In that directory, find the .claude folder and create settings.json inside it.

{
"env": {
"ANTHROPIC_BASE_URL": "", //第三方Api地址,如果使用官方则删除此字段
"ANTHROPIC_AUTH_TOKEN": "", //key,如果使用官方则删除此字段
"HTTP_PROXY": "", //代理地址
"HTTPS_PROXY": "" //代理地址
}
}

Usage

Open your project folder and type cmd into File Explorer’s address bar, or use cd to navigate to the project folder yourself.

Run the launch command:

Terminal window
claude