A step-by-step guide to set up Claude Code on macOS and Windows — your first step toward AI-assisted lecture note and slide generation.
Make sure you have the following before you begin.
Select your operating system to see the matching instructions.
Open Terminal
Press Cmd + Space, type Terminal, and press Enter.
Check your Node.js version
Run the command below. You need version 18 or higher.
node --version
Install Claude Code globally via npm
npm install -g @anthropic-ai/claude-code
sudo with this command. Using sudo npm install -g can cause permission issues and security risks.
Authenticate
Run claude for the first time. It will open your browser for a one-time sign-in.
Log in with your Claude.ai account (Pro or Max plan).
Verify the installation
claude doctor
claude doctor checks your installation type, version, and connectivity. All items should show green.
Launch Claude Code in your project
cd your-project-folder
claude
Open Command Prompt
Press Win, type cmd, and click Open.
Check your Node.js version
You need version 18 or higher.
node --version
Install Claude Code globally via npm
npm install -g @anthropic-ai/claude-code
Authenticate
Run claude for the first time. Your default browser will open for sign-in.
Log in with your Claude.ai account.
Verify the installation
claude doctor
claude doctor checks your installation type, version, and connectivity. All items should show green.
Launch Claude Code in your project
cd your-project-folder
claude
After running claude, your terminal will display the Claude Code interface.
Useful commands after installation.
| Command | What it does |
|---|---|
claude |
Start Claude Code in the current directory |
claude doctor |
Check installation health and version |
claude update |
Manually update to the latest version |
claude --help |
Show all available options |
/help |
In-session help (after claude is running) |