02 How to Install Claude Code in 10 Minutes: Step by Step

Installing Claude Code takes less time than you probably expect. By the end of this guide, you will have a working AI coding assistant, your first conversation under your belt, and clear answers for whatever goes wrong.

Three Ways to Install

Claude Code runs on macOS, Linux, and Windows. Pick the one that matches your system:

MethodCommandPlatformRecommendation
Native Installcurl -fsSL https://claude.ai/install.sh | bashmacOS / LinuxBest choice
Homebrewbrew install --cask claude-codemacOSGood for brew users
WinGetwinget install Anthropic.ClaudeCodeWindowsBest for Windows

Not sure which one? Go with Native Install. One command, zero extra dependencies.

Let’s Get It Installed

macOS / Linux

Open your terminal and run:

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

The script auto-detects your system, downloads the binary, and adds the claude command to your PATH. Type claude and you are in.

Windows

Windows has one extra prerequisite: Git for Windows.

Download it from git-scm.com (default options are fine), or install it via WinGet:

winget install Git.Git

Once Git is in place, open PowerShell or Git Bash and run:

winget install Anthropic.ClaudeCode

Reopen your terminal and run claude --version. If you see a version number, you are all set.

A word of caution: do not run Claude Code in CMD. Use PowerShell or Git Bash instead — Claude Code needs the Unix toolchain that Git for Windows provides.

Five Ways to Use Claude Code

Once installed, you actually have five different ways to run Claude Code:

EnvironmentWhat It IsBest For
Terminal CLIThe native experience, full feature setYour daily driver
VS Code ExtensionSidebar integration, see file changes inlineVS Code users
Desktop AppStandalone app, no terminal neededTerminal-averse users
Webclaude.ai/code in your browser, zero installQuick trials, one-off tasks
JetBrains PluginWorks inside IntelliJ IDEA, WebStorm, and othersJetBrains users

Start with the terminal CLI. It is the full experience — everything else is built on top of it. Get comfortable there first, then branch out to IDE integrations if you want.

Accounts and Pricing

The first time you run claude, a browser window opens for you to log in or sign up for an Anthropic account.

There are three paid tiers:

PlanMonthlyUsageBest For
Pro$20/moStandard quotaIndividual devs, learners
Max 5x$100/mo5× the Pro quotaHeavy users, full-time AI coding
Max 20x$200/mo20× the Pro quotaTeams, commercial projects

A quick rule of thumb: if you use Claude Code more than two hours a day, Pro will likely hit its limit. Upgrading to Max 5x is worth it at that point. Start with Pro. You will know within a few days whether it is enough. A common trajectory: Pro feels generous the first week, then you get hooked and upgrade to Max.

Enterprise teams can also pay by token through the Anthropic API — useful if you need custom integrations or compliance controls. For everyone else, a direct subscription is the simplest path.

Your First Conversation

Everything is installed and you are logged in. Time for the real thing.

mkdir ~/my-first-project && cd ~/my-first-project
claude

The first launch opens a browser for authentication. Once that is done, the Claude Code interface appears in your terminal.

Send your first prompt:

Create a simple HTML page that displays “Hello, Claude Code!” with nice CSS styling.

Claude Code gets to work. It creates an HTML file in your directory and writes the full code. The whole thing takes about 10 to 30 seconds.

Open the result in your browser:

open index.html       # macOS
xdg-open index.html   # Linux
start index.html      # Windows

If you see a styled page, everything is working.

Do not overlook what just happened. A single sentence of natural language triggered a complete loop: understand the request → create a file → write the code. Everything you will do later — complex projects, multi-file refactors, automated testing — builds on this same foundation.

Verify Everything Works

Run through this checklist:

CheckActionExpected Result
CLI worksclaude --versionVersion number displayed
Logged inLaunch claudeGoes straight to chat, no login prompt
Can create filesAsk Claude Code to create a test fileFile appears in the current directory
Can read projectsStart Claude Code in an existing project, ask “what does this project do?”Correctly describes the project
Can run commandsAsk it to run ls or git statusCommand output is returned

All five checks pass? You are ready.

Troubleshooting: Common Issues and How to Fix Them

Cannot connect, login fails. Claude Code talks to Anthropic’s API servers. If you are behind a firewall or in a region with restricted access, configure a proxy:

export HTTPS_PROXY=http://127.0.0.1:7890
export HTTP_PROXY=http://127.0.0.1:7890

Add these two lines to your shell config file (~/.zshrc or ~/.bashrc) so they take effect every time you open a terminal.

Permission denied during install. On macOS or Linux, do not use sudo. Instead:

mkdir -p ~/.local/bin
curl -fsSL https://claude.ai/install.sh | bash

If the problem persists, verify that ~/.local/bin is in your PATH.

How to upgrade. Claude Code ships fast — new features land almost weekly. A version that is two weeks old is already behind. Update regularly:

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

# Homebrew
brew upgrade --cask claude-code

# WinGet
winget upgrade Anthropic.ClaudeCode

VS Code Extension and Desktop App. Both depend on the same CLI underneath. If the CLI is working, they will too. For VS Code, search “Claude Code” in the Extensions marketplace and install the official Anthropic extension. For the Desktop App, download from claude.ai/download.

No matter which interface you end up preferring, install the CLI first. It is the foundation. Everything else is just a wrapper around it.

You are installed, authenticated, and you have run your first prompt. In the next article, we start building a real project.