Skip to content

Set up Claude Code

Install Claude Code, sign in, make it ask before it acts, and say hello.

About 25 minutes. No coding. No administrator password on Windows.

Conveyor and controls lab walkthrough discussing sensor integration and safety.
Automation Lab Tour
Time
About 25 minutes
You do not need
No coding. No administrator password on Windows.
You need
Chapter 6. A Mac, Windows or Linux computer with 4 GB of memory or more and an internet connection. A paid Claude plan held by someone 18 or over.
You will be able to
  • Install Claude Code with one pasted command.
  • Switch it to the mode that asks before it acts.
  • Stop it, and undo a file change.
  • Explain how an agent works: read, plan, act, check.

You need a computer for the real steps. The practice screen works here.

Your computer
Which Windows terminal?

Not sure? PowerShell is the usual one. Its line starts with PS.

Pick yours once. Every command and key on this page, and on the other chapters, changes to match. It is remembered in this browser only.

What Claude Code is

So far you have talked to an AI in a chat page. Claude Code is an AI that works inside a folder on your computer. You tell it what you want, and it can make and change files there.

The people who make it put it this way: “You don't need to know how to code. Describe what you want in plain English, and Claude writes the code for you.”

“Claude Code is an AI-powered coding assistant that helps you build features, fix bugs, and automate development tasks.”

Prefer not to use the terminal?

There are three other ways in. All three need the same paid plan and the same 18 or over rule.

  • The desktop app

    “The Claude Code desktop app lets you skip the terminal entirely.” It has a Code tab. There are downloads for macOS and Windows, and Linux is in beta. Download page (opens in a new tab).

  • Inside VS Code

    VS Code is a free code editor. With VS Code 1.94.0 or later, search for “Claude Code” in its Extensions view. How it works (opens in a new tab).

  • In a browser

    Claude Code on the web (opens in a new tab) needs no install. It is built around code kept on GitHub, a website for storing code, and it asks you to connect a GitHub account. It has no Manual mode: it works in Accept edits, Plan or Auto. It is the only way that fits a Chromebook without Linux.

What your computer needs

Your computerIt needs
MacmacOS 13.0 or later
WindowsWindows 10 version 1809 or later
LinuxUbuntu 20.04 or later, or Debian 10 or later
ChromebookNot on the official list. The Chromebook Linux environment is Debian, so the Linux steps may work. School Chromebooks often block Linux.
All of them4 GB of memory or more, and an internet connection

You do not need Node.js. Git is optional, and on Windows the makers recommend Git for Windows, but Claude Code works without it. You will not need to learn Git yourself.

Source: the official page (opens in a new tab)

Ready? Tick these off

0 of 3 ticked. Saved in this browser only.

Watch it first

Here is the whole chapter in eight steps. Play it, or step through it at your own speed. If you cannot install anything today, this still shows you how it goes.

Step 1 of 8

Paste the install command and press Enter. Nothing moves while it downloads. Wait.

Practice screen
You type: curl -fsSL https://claude.ai/install.sh | bash
Claude Code successfully installed!

A practice screen. Nothing runs on your computer. Your own prompt will look a little different.

A practice screen. Nothing runs on your computer. Your own prompt will look a little different.

  1. Step 1 of 8. Paste the install command and press Enter. Nothing moves while it downloads. Wait.

    You type: curl -fsSL https://claude.ai/install.sh | bash
    Claude Code successfully installed!
  2. Step 2 of 8. Open a new terminal window. Check that it installed.

    You type: claude --version
    2.1.211 (Claude Code)Example. Yours will differ.
  3. Step 3 of 8. Go into your practice folder.

    You type: cd ai-practice
  4. Step 4 of 8. Start Claude Code. The first time, it asks you to log in, and a browser opens so the account holder can sign in.

    You type: claude
    A browser window opens. The account holder signs in.
    Login successful
    You press Enter
  5. Step 5 of 8. It asks whether you trust this folder. You made it, so say yes.

    Claude Code asks whether you trust this folder. Then its prompt appears, waiting for you.
  6. Step 6 of 8. Make it ask first. Press Shift+Tab until the status line says manual.

    You press ShiftTab
    ⏸ manual mode on
  7. Step 7 of 8. Say hello. You type in plain words.

    You type to Claude Code: Say hello and tell me three things you could help me make in this folder.
    AI

    Hello! This folder is empty, so we can start anything. Three ideas: a quiz game in one web page, a to-do list, or a page about your favourite hobby.

    Example. Your wording will differ.
  8. Step 8 of 8. Look at the help, then leave.

    You type to Claude Code: /help
    A list of commands appears.
    You type to Claude Code: /exit

Do it for real

One action per step. After each one, check what you see against What you should see.

With Claude Code

  1. Open your terminal.

    New to this? Chapter 6 shows you how, for your computer.

  2. Check which terminal you are in.

    Windows only

    Windows has two. The guide says “your prompt shows PS C:\ when you're in PowerShell and C:\ without the PS when you're in CMD.” Tell this page which one you have with the Your computer switch, and every command below will match it.

  3. Paste the install command and press Enter.

    Windows

    About Windows, the setup page says: “You do not need to run as Administrator.”

    Chromebook

    Chromebooks are not on the official list. The Chromebook Linux environment is Debian, so this may work. If it does not, carry on with the practice screen above.

    In your terminal

    For Mac, Linux and Chromebook. Change

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

    For Windows PowerShell. Change

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

    For Windows CMD. Change

    curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

    “The install command shows no progress while it downloads Claude Code.” Wait. It is working.

    What you should see

    Claude Code successfully installed!

    I see something else
  4. Open a new terminal window.

    Close this window and open a fresh one. The next step needs it.

  5. Check that it installed.

    In your terminal

    claude --version

    Your number will be different. Any number means it worked.

    What you should see

    2.1.211 (Claude Code)

    Example. Yours will differ.

    I see something else
  6. Go into your practice folder.

    Always start Claude Code inside a practice folder. It can read the files in the folder you start it in, and in the folders inside that one. Skipped chapter 6? Make the folder first with mkdir ai-practice.

    In your terminal

    cd ai-practice

    What you should see

    The line you type on now shows ai-practice.

    I see something else
  7. Start Claude Code.

    In your terminal

    claude

    What you should see

    Claude Code asks you to log in the first time. Follow the prompts on screen. A browser window opens so the account holder can sign in. If you are asked to choose something first, look at If something goes wrong.

    I see something else
  8. The account holder signs in.

    A browser window opens. The adult who holds the paid plan signs in there. Do not type someone else's password for them. A free account is turned away at this point, because Claude Code is not in the free plan. If no browser opens, press c to copy the sign-in link and paste it into a browser.

    What you should see

    Login successful

    I see something else
  9. Press Enter to carry on.

    After the sign-in, the terminal waits for you. Press Enter.

  10. Say yes to trusting the folder.

    The first time in a folder, Claude Code asks whether you trust it. Say yes only for folders you made yourself or trust.

    What you should see

    The Claude Code prompt, with the version, the current model and your folder shown above it.

    I see something else
  11. Make it ask first.

    New versions start in auto mode, where a second AI model reviews actions instead of you. While you are learning, use Manual. Read the line under the prompt first. If it already says manual mode on, leave it. If not, press ShiftTab and read it again. Keep going until it says manual mode on, then stop. In Manual, “Claude Code stops and asks you before most actions that edit files, run shell commands, or reach the network.” It still reads files in your folder without asking. To start in this mode every time, start Claude Code with claude --permission-mode manual instead of claude.

    What you should see

    ⏸ manual mode on

    I see something else
  12. Say hello.

    Type this, or your own words, and press Enter.

    Inside Claude Code

    Say hello and tell me three things you could help me make in this folder.

    What you should see

    A short hello and a few ideas. Your wording will differ. That is normal: chapter 1 explains why.

    I see something else
  13. Look at the help.

    Inside Claude Code

    /help

    What you should see

    A list of commands. Typing / on its own lists them too.

    I see something else
  14. Leave.

    Inside Claude Code

    /exit

    Pressing CtrlD twice on an empty prompt also works.

    What you should see

    You are back at your normal terminal line. Nothing is lost.

    I see something else

Not sure it is healthy? Run this in your terminal at any time. It checks the install and tells you what it finds.

In your terminal

claude doctor

Claude Code keeps itself up to date in the background. To update by hand, run claude update.

What you should see

A short report. Read it with the account holder.

I see something else
Guided walkthrough of a manufacturing facility covering lockout/tagout, shift handovers, and safety checkpoints tied to real reliability practice
Industry Lab Tour: Operations & Risk Controls Overview

How an agent works

A chat AI can only answer with words. Give the same kind of model some tools, such as reading a file or running a command, and let it go round in a loop, and you have an agent. Claude Code is one.

Watch the loop below. You can stop it at any point, exactly as you can stop the real thing.

Pick an example

This example is ours.

1Read
2Plan
3Act
4Check

You

Step 1 of 4

Read

It looks at what is there.

  • It looks in your folder.
  • The folder is empty, so there is nothing to break.

  1. 1 Read

    It looks at what is there.

    • It looks in your folder.
    • The folder is empty, so there is nothing to break.
  2. 2 Plan

    It decides what to do next.

    • It decides on one file, called index.html.
    • It tells you the plan in plain words.
  3. 3 Act

    It does one thing.

    • It asks to create the file.
    • You read the first lines and choose Yes.
  4. 4 Check

    It looks at the result.

    • It reads the file back to make sure it is whole.
    • It tells you how to open it.
  5. Then round again, until the job is done or you stop it.

The official guide names three phases: gather context, take action, and verify results. We split the first into reading and planning. It also says: “Each tool use returns information that feeds back into the loop, informing Claude's next decision.”

And the part that matters most: “You're part of this loop too. You can interrupt at any point”.

One more idea. The model does the thinking. “Claude Code is the layer around the model that provides the tools and manages the context the model sees.”

From our slide deck: How large language models workHow the model inside picks its next word

Who decides: the four modes

“A permission mode sets which actions Claude can take in a session without asking you first.” ShiftTab moves between them, and the line under the prompt tells you which one is on.

  • Manual

    Asks before it edits a file, runs a command or reaches the network. Our pick while you learn. The line reads ⏸ manual mode on.

  • Accept edits

    Makes file edits and common file commands without asking. The line reads ⏵⏵ accept edits on.

  • Plan

    Reads and proposes a plan before it edits anything. The line reads ⏸ plan mode on.

  • Auto

    A second model reviews each action and “blocks the ones it judges risky”. It is the starting mode since v2.1.283. The line reads ⏵⏵ auto mode on.

Your three safety keys

  • Esc

    Stops it, right now. Claude keeps the work done so far, and you can tell it what to do instead.

  • EscthenEsc

    On an empty prompt, opens the rewind menu. Choose Restore code to put your files back as they were.

  • ShiftTab

    Changes the mode. Stop on Manual.

Who sees what you type

Anthropic says: “We will train new models using data from Free, Pro, Max, and Ultra accounts when this setting is on (including when you use Claude Code from these accounts).” The setting is called Model Improvement, in Privacy Settings (opens in a new tab).

With it on, data is kept for 5 years. With it off, 30 days. The account holder decides.

Whatever the setting, the rule from chapter 5 holds: never type passwords, addresses or other people's details.

Before chapter 8: ask it well

A vague ask

Make a website.

Add what is missing

A clear ask

what who for done when.

A vague ask

Make a website.

A clear ask

Make a one-page website for my school chess club with the meeting day and three club rules, in one file called index.html.

Why this is better

  • It knows what to make, so it does not guess.
  • It knows who will read it, so the words fit.
  • It knows when it is finished, so it stops there.

If something goes wrong

Nothing you type here is sent anywhere.

Chapter 7

Check yourself

Question 1 of 5

You pasted the install command and nothing moves. What do you do?

  1. You pasted the install command and nothing moves. What do you do?

    • Close the window and start again.
    • Wait. It shows no progress.
    Show the answer

    Wait. It shows no progress. The install command shows no progress while it downloads. When it is done, it says so.

  2. Which mode asks before it edits a file?

    • Auto
    • Manual
    • Accept edits
    Show the answer

    Manual Manual stops and asks before most actions that edit files, run commands or reach the network.

  3. Claude is doing something you did not want. Which key?

    • Esc
    • Enter
    Show the answer

    Esc Esc stops it, and it keeps the work done so far.

  4. Put the loop in order.

    Show the answer

    Read, Plan, Act, Check. It gathers what it needs, decides what to do, does one thing, then checks the result. Then round again.

  5. Why start it inside a practice folder?

    • It is faster.
    • It can read the files in the folder it starts in.
    Show the answer

    It can read the files in the folder it starts in. It can read the folder you start it in and the folders inside it. A practice folder has nothing private in it.

What you learned

  1. 1Claude Code installs with one pasted command. It needs a paid plan held by someone 18 or over.
  2. 2An agent reads, plans, acts and checks, round and round. You can stop it at any point with Esc.
  3. 3Manual mode makes it ask before it changes anything. Start it in a practice folder.

Saved in this browser only.

Where this comes from

Checked on November 25, 2026.

Tools, prices and rules change. These are the official pages we read on that day. If a page and this guide disagree, trust the page.

Anthropic

Seen something that has changed? Tell us: