Claude Code Windows Setup Guide

Complete Windows system installation steps to get you started with Claude Code quickly

10 min read
Official Source Installation
This guide uses 100% official source services for installation, ensuring your technical setup is completely consistent with the official version

System Requirements

  • Windows: Windows 10 (version 1809 / build 17763) and above
  • Node.js: Version 20+

Installation Steps

1

Download Git

Visit https://git-scm.com/downloads/win, during installation select Next for all options, do not modify the path

2

Download Node.js

Visit https://nodejs.org/en/download, during installation select Next for all options, do not modify the path

3

Verify Installation

Open Git Bash and run the following commands to verify installation:

$ node -v
$ npm -v

If you see "No suitable shell found", Git wasn't installed properly. Reinstall Git and restart the terminal.

4

Uninstall Existing Claude Code (skip if not installed)

$ npm uninstall -g @anthropic-ai/claude-code

Install Official Package

$ npm install -g @anthropic-ai/claude-code@1.0.80
6

Configure API Settings

Create a settings.json file to configure the API endpoint:

$ vim ~/.claude/settings.json

Add the following content:

{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "paste your API key here",
    "ANTHROPIC_BASE_URL": "https://api.aicodeditor.com",
    "CLAUDE_CODE_MAX_OUTPUT_TOKENS": "32000",
    "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
    "API_TIMEOUT_MS": "600000",
    "BASH_DEFAULT_TIMEOUT_MS": "600000",
    "BASH_MAX_TIMEOUT_MS": "600000",
    "MCP_TIMEOUT": "30000",
    "MCP_TOOL_TIMEOUT": "600000",
    "CLAUDE_API_TIMEOUT": "600000"
  },
  "permissions": {
    "allow": [],
    "deny": []
  }
}

Verify Installation

Run the following command to confirm successful installation:

$ claude -v

If a version number is displayed, the installation was successful.

Getting Started

After installation is complete, you can run Claude Code in any project directory:

# Enter project folder
$ cd your-project-folder
# Run Claude Code
$ claude

Important Notes

Using Opus Model: Set CLAUDE_CODE_MAX_OUTPUT_TOKENS to 32000 for optimal performance.

Restart Claude Code: After modifying configuration, please restart Claude Code for changes to take effect.

Common Issues

No suitable shell found: Git wasn't installed properly. Reinstall Git and restart the terminal.

Claude command not found: Make sure Node.js and npm are properly installed and in your PATH.

Configuration not working: Ensure the settings.json file is created in the correct location (~/.claude/settings.json).

Start Using Claude Code

Use our platform to easily configure your Claude Code API keys