Developers · Intermediate · 8 min

How to install Claude Code and run your first task

Claude Code works in your terminal, reads your project and makes changes with your permission. Here's how to get it running.

Install and first run
# macOS, Linux or WSL
$ curl -fsSL https://claude.ai/install.sh | bash
$ claude --version
$ cd your-project
$ claude
> What does this project do, and where is the main entry point?

Claude Code is Anthropic’s coding agent. This guide shows how to install Claude Code on macOS, Linux or Windows and give it a first task.

What you need

A Claude Pro, Max, Team or Enterprise subscription, or a Claude Console account, plus a project folder to work in.

How to install it

macOS, Linux or WSL:

curl -fsSL https://claude.ai/install.sh | bash

Windows PowerShell:

irm https://claude.ai/install.ps1 | iex

Open a new terminal and check it worked:

claude --version

How to start your first session

cd your-project
claude

You’ll be asked to log in the first time.

A good first task

Start by asking it to explain the project: “What does this project do, and where is the main entry point?” Then try something small, like fixing a bug or adding a test. Claude Code asks permission before it edits files or runs commands, so read each request before you approve it.

Prefer not to use the terminal?

Claude Code is also available as a desktop app, on the web, and as extensions for VS Code and JetBrains IDEs.

Common questions

Does it work on Windows? Yes, through PowerShell or CMD.

Can it use Git? Yes. Ask it to create a branch, write a commit message or help resolve a merge conflict.

Sources: Claude Code documentation: Quickstart (checked November 2026)

Keep reading

The Sunday Signal

One email every Sunday morning: the week in AI, in five minutes. In English or Arabic.