How to install Claude Code and sign in

Day 1, 25 minutes · beginner

Goal of this lessonInstall Claude Code on macOS, Linux or Windows, sign in with your Claude account and check that it works with two simple commands.

Why it matters

Claude Code is Anthropic's AI assistant that works in your terminal: the text window where you type commands instead of clicking. You describe what you want in plain words. Claude Code reads your files, makes changes and runs commands for you, and it asks first when you want it to. You do not have to be a developer to use it. You do need to be able to open a terminal and paste a command.

This course follows one small example from start to finish. Tilda runs Marlow Bakehouse, a made-up hobby bakery, and wants a simple one-page website. Over seven days you build that site with Claude Code and learn the habits that keep you in control: clear requests, a short project note, permission modes, reading every change and saving your work step by step.

Today is about getting set up. At the end you have Claude Code installed, you have signed in, and you have a practice folder ready for tomorrow. You also have a short setup note that helps if something goes wrong later.

What you need

  • A computer with macOS, Linux or Windows. The Claude Code docs list macOS 13.0 or later, Windows 10 version 1809 or later, and common Linux versions such as Ubuntu 20.04 or later. You also need an internet connection.
  • A paid Claude plan or a Claude Console account. The Claude Code setup page says Claude Code works with a Pro, Max, Ultra, Team or Enterprise plan, or a Console account (access to Anthropic's models with pre-paid credits). The free Claude plan does not include Claude Code. Anthropic's pricing page adds that Claude Code shares the usage limits of the rest of your plan.
  • A supported country. The setup page points to Anthropic's list of supported countries. On 4 December 2026 that list included the Netherlands.

A few words you will meet

  • Terminal: the window where you type commands. On a Mac it is called Terminal. On Windows you use PowerShell (or the older CMD). On Linux it is usually called Terminal too.
  • Command: one line you type in the terminal and run with Enter, such as claude --version.
  • Folder (also called directory): Claude Code works in the folder where you start it. It can read and change files in that folder.
  • Session: one conversation with Claude Code, from when you type claude until you leave.

The steps

  1. Open a terminal. If you have never used one, that is fine. You only paste and press Enter today.
  2. Install Claude Code with the one command for your system. Anthropic's recommended way is the native installer, which also keeps Claude Code up to date in the background.
  3. Check the install in a new terminal window with claude --version. A working install prints a version number.
  4. Make a practice folder called marlow-bakehouse and start Claude Code inside it. Starting in a project folder, not your home folder, matters: the docs say that when you start in your home folder, Claude Code keeps the trust for that session only and does not save it.
  5. Sign in in the browser window that opens. Claude Code stores your login, so you do this once.
  6. Answer the first questions. Besides the login, Claude Code asks if you trust the folder. In a new terminal session it may also show a one-time note that it starts in auto mode. You will learn what that means in lesson 5.
  7. Look around and leave. /status shows the version, the model and your account. /exit leaves Claude Code. Then run claude doctor, a check that runs outside a session and lists warnings with suggested fixes.
  8. Write your setup note. One short text with your system, the version number and the kind of account you used.

Pick your system in the steps for Claude Code below. Each step has the exact command to paste.

Commands start with a slash inside Claude Code

Once Claude Code runs, the terminal looks a little different. You type in a prompt box at the bottom. A line that starts with / is a command for Claude Code itself, such as /help (shows the available commands) or /status. Everything else is a message to Claude. Typing / on its own shows a list of commands you can pick from.

Two keys help from day one. Esc stops Claude when it is busy. Ctrl+C interrupts a running action, and pressed twice on an empty prompt it leaves Claude Code.

When something goes wrong

  • claude is not found or not recognized. The install folder is not on your PATH yet (the list of places your terminal looks for programs). Open a new terminal first. If that does not help, the troubleshooting page for installation and login has a fix for each system.
  • On Windows, irm is not recognized, or you see The token '&&' is not a valid statement separator. You are in the wrong kind of Windows terminal. The first error means you are in CMD, the second that you are in PowerShell. Use the command for the terminal you are in.
  • Login problems. If you sign in but it does not work, /login inside Claude Code lets you sign in again.
  • Anything else. Run claude doctor and read its warnings. Inside a session, you can also ask Claude Code a question about itself, such as "how do I change my login?".

Example: Tilda's setup note

Tilda used a Windows laptop. She opened PowerShell, pasted the install line and waited about a minute with no output, as the docs warned. In a new PowerShell window, claude --version printed a version number. She made the marlow-bakehouse folder, started claude, signed in with her Pro account and accepted the trust question.

Her setup note has three lines: "Windows 11, PowerShell. Claude Code version from claude --version. Signed in with my Claude Pro account. claude doctor: no warnings."

Common mistakes on day 1

  • Pasting the macOS command into Windows PowerShell, or the other way around. Check which terminal you are in first.
  • Running claude in your home folder. It works, but Claude Code does not save the trust answer from your home folder, so it can ask again in each new session. Use a project folder.
  • Skipping the new terminal window after installing. The old window may not know where Claude Code is yet.

Deeper dive

Today's actions

Ticks are not saved without an account

Do it in Claude Code

Claude Code

  1. Open a terminal. On a Mac, press Cmd + Space, type Terminal and press Enter. On Windows, press Win + X and choose Windows PowerShell or Terminal. On Linux, open your terminal app.
  2. On macOS, Linux or WSL (Linux inside Windows): paste this line and press Enter. It shows no progress while it downloads, so wait until it says it is installed.
    curl -fsSL https://claude.ai/install.sh | bash
  3. On Windows in PowerShell (the line starts with PS): paste this line and press Enter. If you are in CMD instead, read the notes below.
    irm https://claude.ai/install.ps1 | iex
  4. Open a new terminal window and run claude --version. You should see a version number followed by (Claude Code). If the terminal says claude is not found or not recognized, follow the PATH fix on the troubleshooting page.
  5. Make a practice folder, go into it and start Claude Code. Run one line at a time.
    mkdir marlow-bakehouse
    cd marlow-bakehouse
    claude
  6. A browser window opens to sign in with your Claude account. If it does not open, press c to copy the login link and paste it into your browser. If the browser shows a code, paste it at Paste code here if prompted. Wait for Login successful and press Enter.
  7. Claude Code also asks whether you trust this folder. You just made it yourself, so accept. Then type /status and press Enter to see your version, model and account. Press Esc to close it.
  8. Type /exit to leave Claude Code. Back in the normal terminal, run claude doctor. It checks your installation and settings without starting a session and lists any warnings with a fix.

Note: Use PowerShell on Windows, as the docs' terminal guide does. If you are in CMD (the line starts with C:\ without PS), the install page has a separate CMD command. Homebrew and WinGet installs work too but do not update themselves. Git for Windows is recommended on Windows; you need git from lesson 2.

Paid planNeeds a paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or a Claude Console account. The free Claude plan does not include Claude Code.

Checked on 4 December 2026 · Source: Claude Code docs: Quickstart (opens in a new tab)

Create a free account to save your progress. Sign in or sign up