Getting set up
We go one small step at a time, and I explain what each thing is, not just what to type. Install the tool, check that it starts, and keep the official setup guide handy as the software changes.
Setup instructions checked on 23 November 2026 against the official quickstart and installation guide.
Before you start, you need
- A computer running macOS, Windows, or Linux
- Access through a supported paid Claude subscription, or a Claude Console account with API billing
Choose how you will pay for usage
Anthropic currently lists Pro, Max, Ultra, Team, and Enterprise subscriptions, Claude Console API billing, and supported cloud providers as access options. This walkthrough uses a personal subscription. API usage is billed separately from a subscription, so check the sign-in method and current plan details before starting. A free Claude chat account alone does not provide the access used here.
Prefer to skip the terminal entirely?
There is now a Claude Code Desktop app with a normal window, buttons, and no terminal at all. If you would rather not touch the terminal, that is a completely valid door in.
The no terminal option
Download the Desktop app for macOS or Windows, sign in, and you can start giving Claude Code instructions right away. You can always come back and learn the terminal later. The rest of this lesson covers the terminal path, which is worth knowing.
What a terminal is
Terminal. A window where you type commands instead of clicking buttons. It comes built into your computer. Commands can install software, change files, delete data, or send information over the network. Read a command before running it, use the official source, and ask for an explanation if any part is unclear. Closing the window does not undo a command that has already run.
Step 1. Open your terminal
Cmd + Space, type “Terminal”, and press Enter. A window with a blinking cursor appears. That is your terminal.Step 2. Install Claude Code
The commands below download and execute Anthropic's installer. Check them against the official installation guide, then use the one for your system. The native installer does not require Node.js and normally updates itself in the background.
Give it a moment. When the cursor comes back and stops printing, it is done.
Rather use npm?
If you already have Node.js version 22 or newer, you can install with
npm install -g @anthropic-ai/claude-code@latest instead. Do not add
sudo. The native installer avoids that Node.js prerequisite and is
the path used in this lesson.
Step 3. Check it worked
Type this and press Enter:
A version number, followed by (Claude Code)
If you see a version number, any recent one, you are good. If instead you see “command not found”, close the terminal, open a fresh one, and try again. A brand new window picks up the freshly installed tool.
A built in doctor
Claude Code ships with a self check. If anything feels off, run
claude doctor and it tells you what is wrong and how to fix it.
Step 4. Start it up and sign in
Type:
The first time, it opens your browser to sign in with your Claude account. Follow the prompts. When you land back in the terminal on a friendly welcome screen waiting for your input, you are in.
If something goes sideways
Start with the official troubleshooting guide. If you ask for help elsewhere, share the error after removing API keys, tokens, private paths, and other sensitive details.
Tip
Do not aim for a perfect, tidy setup. Aim for “it starts.” That is the whole bar for this lesson.
What's next
The setup is done. In the final lesson, we point Claude Code at a real project and make an actual change, the moment where this all clicks.