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

- 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.
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 computer | It needs |
|---|---|
| Mac | macOS 13.0 or later |
| Windows | Windows 10 version 1809 or later |
| Linux | Ubuntu 20.04 or later, or Debian 10 or later |
| Chromebook | Not on the official list. The Chromebook Linux environment is Debian, so the Linux steps may work. School Chromebooks often block Linux. |
| All of them | 4 GB of memory or more, and an internet connection |
Ready? Tick these off
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.
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.
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 | bashClaude Code successfully installed!Step 2 of 8. Open a new terminal window. Check that it installed.
You type: claude --version2.1.211 (Claude Code)Example. Yours will differ.Step 3 of 8. Go into your practice folder.
You type: cd ai-practiceStep 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: claudeA browser window opens. The account holder signs in.Login successfulYou press EnterStep 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.Step 6 of 8. Make it ask first. Press Shift+Tab until the status line says manual.
You press ShiftTab⏸ manual mode onStep 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.AIHello! 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.Step 8 of 8. Look at the help, then leave.
You type to Claude Code: /helpA 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
Open your terminal.
New to this? Chapter 6 shows you how, for your computer.
Check which terminal you are in.
Windows only
Windows has two. The guide says “your prompt shows
PS C:\when you're in PowerShell andC:\without thePSwhen you're in CMD.” Tell this page which one you have with the Your computer switch, and every command below will match it.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.
Open a new terminal window.
Close this window and open a fresh one. The next step needs it.
Check that it installed.
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-practiceStart Claude Code.
In your terminal
claudeWhat you should see
I see something elseClaude 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.
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
cto copy the sign-in link and paste it into a browser.Press Enter to carry on.
After the sign-in, the terminal waits for you. Press Enter.
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
I see something elseThe Claude Code prompt, with the version, the current model and your folder shown above it.
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 manualinstead ofclaude.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
I see something elseA short hello and a few ideas. Your wording will differ. That is normal: chapter 1 explains why.
Look at the help.
Inside Claude Code
/helpLeave.
Inside Claude Code
/exit
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
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.
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 Read
It looks at what is there.
- It looks in your folder.
- The folder is empty, so there is nothing to break.
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 Act
It does one thing.
- It asks to create the file.
- You read the first lines and choose Yes.
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.
- 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.”
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.
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
That is expected. The install command shows no progress while it downloads. Leave the window open and wait.
Your Mac does not yet know where Claude Code is. Run these two lines, one at a time. Then open a new terminal window and try again.
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrcsource ~/.zshrcYour computer does not yet know where Claude Code is. Run these two lines, one at a time. Then open a new terminal window and try again.
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrcsource ~/.bashrcYou are in the old CMD window, not PowerShell. Close it and open PowerShell: hold the Windows key and press X. Or set the Your computer switch to CMD and use that command.
You are in PowerShell and pasted the CMD command. Set the Your computer switch to PowerShell and use that command.
Windows does not yet know where Claude Code is. Run these two lines in PowerShell, one at a time. Then close PowerShell, open a new window and try again.
$currentPath = [Environment]::GetEnvironmentVariable('PATH', 'User')[Environment]::SetEnvironmentVariable('PATH', "$currentPath;$env:USERPROFILE\.local\bin", 'User')The install address sent back a web page instead of the installer. If the page says the app is unavailable in your region, Claude Code is not offered in your country.
Otherwise, run the install command again.
Press
cin the terminal to copy the sign-in link. Paste it into a browser.The official pages do not list every screen, so this is our own advice. Read the choices with the account holder. Use the arrow keys and Enter. The account to pick is the Claude subscription.
“Claude Code requires a Pro, Max, Ultra, Team, Enterprise, or Console account. The free claude.ai plan does not include Claude Code access.”
See the pricing page (opens in a new tab), or take the free route in chapter 8.
You are in auto or accept edits mode. Press ShiftTab until the line reads manual mode on.
To undo file edits, press Esc twice on an empty prompt, or type
/rewind.Inside Claude Code, type
/loginto switch accounts, or/logoutto sign out.An adult should run these, one at a time. On Windows, use PowerShell, not CMD.
They remove the program. Settings and saved conversations stay in a folder called
.claudein your home folder. The setup page (opens in a new tab) shows how to remove those too.
Chapter 7
Check yourself
Question 1 of 5
You pasted the install command and nothing moves. What do you do?
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.
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.
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.
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.
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
- 1Claude Code installs with one pasted command. It needs a paid plan held by someone 18 or over.
- 2An agent reads, plans, acts and checks, round and round. You can stop it at any point with Esc.
- 3Manual mode makes it ask before it changes anything. Start it in a practice folder.
Where this comes from
Checked on November 25, 2026.
- Anthropic
- Claude Code quickstart (opens in a new tab)
- Terminal guide for new users (opens in a new tab)
- Advanced setup (opens in a new tab)
- Choose a permission mode (opens in a new tab)
- Security (opens in a new tab)
- Checkpointing (opens in a new tab)
- How Claude Code works (opens in a new tab)
- Commands (opens in a new tab)
- CLI reference (opens in a new tab)
- Interactive mode (opens in a new tab)
- Authentication (opens in a new tab)
- Desktop quickstart (opens in a new tab)
- Claude Code in VS Code (opens in a new tab)
- Claude Code on the web quickstart (opens in a new tab)
- Data usage (opens in a new tab)
- Is my data used for model training? (opens in a new tab)
- Plans and pricing (opens in a new tab)
- Consumer Terms of Service (opens in a new tab)
- Supported Regions Policy (opens in a new tab)
- Claude Academy: Claude Code 101 (opens in a new tab)
- Claude Code overview (opens in a new tab)
- Download Claude (opens in a new tab)
- Claude Code on the web (opens in a new tab)
- Claude privacy settings (opens in a new tab)
Seen something that has changed? Tell us: