Learn

Installing Claude Code

Claude

From download to the first command that responds.

Claude Code is a CLI: an agent that runs in your terminal and has access to your project's files. Before you can use it, you need to get it on your machine. This lesson will walk you through from download to the first claude --version that responds.

Machine prerequisites

You need Node.js 18 or higher. First, check what you have.

shell
node --version

If you see command not found or a version lower than 18, install Node from nodejs.org before continuing.

Installing Claude Code

One command, installed globally.

shell
npm install -g @anthropic-ai/claude-code

Verifying it responds

shell
claude --version

First launch

shell
claude

The first time, Claude Code will ask you to authenticate. Follow the on-screen instructions: a link to open in your browser, a code to paste back. Once done, you land in a chat interface.

Sources

Related

See also · ideThe Claude Code extension for VS Code

Check off steps to unlock what comes next

Back to course