Developer Reference • Claude Code • Setup Guide • 2026

Claude Code
Setup & Getting Started

A friendly, step-by-step guide to installing Claude Code on your machine. No prior command-line experience required. From zero to your first AI-assisted coding session in under 5 minutes.

March 2026  ·  By Richard Gamarra

1 cmdInstall on any OS
<5 minTime to first session
0 depsNative installer
3 OSMac · Win · Linux
Overview
1
Check Requirements
2
Get an Account
3
Install Claude Code
4
Authenticate
5
Run Your First Command
Step 1 · System Requirements
🍎

macOS

macOS 13 Ventura or later

🐧

Linux

Ubuntu 20.04+ or Debian 10+

🪟

Windows

Windows 10 (v1809+) + Git for Windows

💾

RAM

4 GB min · 8 GB recommended

🌐

Internet

Always-on connection required

🚫

No GPU needed

AI runs on Anthropic's servers

💡

Windows users: Install Git for Windows first, since the Claude Code installer requires it. Just run the installer with default settings.

Step 2 · Choose a Plan

Claude Code is free to install but requires a paid Anthropic account to authenticate. Pick the plan that fits your workflow:

RECOMMENDED
Claude Pro
$20/mo
  • Claude Code terminal access
  • Claude.ai web access
  • Great for individual devs
Claude Max
$100/mo
  • Everything in Pro
  • 5× higher usage limits
  • Ideal for heavy users
API Console
Pay-as-go
  • Pay per token
  • Great for CI/CD pipelines
  • Flexible for automation
ℹ️

Sign up or log in at claude.ai. The free plan does not include Claude Code access.

Step 3 · Install Claude Code

The native installer requires zero dependencies (no Node.js needed) and auto-updates in the background. Choose your OS:

🍎 macOS
🐧 Linux
🪟 Windows

Open Terminal (Cmd+Space → type "Terminal") and paste:

# Install Claude Code (one command)
curl -fsSL https://claude.ai/install.sh | bash

Alternatively, if you use Homebrew: brew install claude-code (note: Homebrew won't auto-update)

Open your terminal and run:

# Install Claude Code (works on Ubuntu, Debian, and most distros)
curl -fsSL https://claude.ai/install.sh | bash

Alpine Linux users: install libgcc libstdc++ ripgrep first and set USE_BUILTIN_RIPGREP=0

First: install Git for Windows, then open PowerShell and run:

# Install Claude Code via PowerShell
irm https://claude.ai/install.ps1 | iex

WSL users can also use the Linux command above inside their WSL terminal.

Verify the install: after installation completes, run claude --version to confirm it's working. You should see a version number printed.

Step 4 · Authenticate

Run the claude command

In your terminal, navigate to any folder and simply type claude. On first launch it will open your browser automatically.

claude

Sign in via browser

Your default browser opens a Claude.ai sign-in page. Log in with your Anthropic account (the one you created in Step 2). Click Authorize when prompted.

You're in 🎉

Your terminal will show the Claude Code prompt. Authentication is saved, so you won't need to log in again unless you explicitly log out.

🔑

CI/CD or headless? Set ANTHROPIC_API_KEY=your_key as an environment variable instead of browser login.

Step 5 · Your First Commands

Claude Code works inside your project folder. Navigate to a project with cd my-project and start chatting naturally:

/init

Initialize your project

Generates a CLAUDE.md file that gives Claude context about your codebase. Run this first!

Natural language

Explain code

Type "Explain what app.js does" and Claude reads your file and explains it plainly.

Natural language

Fix a bug

Type "There's a crash in login.py, can you fix it?" Claude edits the file directly.

claude doctor

Diagnose problems

Run this from your terminal at any time to check your environment and authentication status.

Natural language

Git workflows

Type "Commit my changes with a good message" and Claude handles git for you.

/bug

Report an issue

Use the /bug command inside Claude Code to report problems directly to Anthropic.

What a Session Looks Like
claude: ~/my-project ~/my-project $ claude ✓ Logged in as you@email.com · Claude Pro ✓ Project: my-project · Git repo detected you > There's a bug in utils.js: the date formatter returns NaN. Fix it. claude > Reading utils.js … Found the issue on line 42: Date constructor receives a string without parsing. Applying fix: wrapping with parseInt() before passing to Date. ● 1 file edited utils.js +2 -1 Ctrl+C to exit
Pro Tips
📄

Always run /init first

This creates a CLAUDE.md file in your project root. It's the most important post-install step because it gives Claude persistent context about your codebase, coding style, and conventions.

💬

Talk like you'd talk to a senior developer

No special syntax needed. Write naturally: "Refactor this function to be more readable" or "Write unit tests for the auth module."

🔄

Updates happen automatically

The native installer keeps Claude Code up to date silently in the background. No manual npm update needed. (Homebrew users must run brew upgrade claude-code manually.)

🧩

Use it in VS Code or JetBrains

Install the Claude Code extension from the VS Code Marketplace or JetBrains Plugin Hub. It connects to the same CLI you just installed, no extra setup.