Claude Code: first steps

Install it and run your first session

Install, log in, point it at a folder, ask your first question.

5 min10 / 18

You can install Claude Code in a few minutes. These are the official native install commands from Anthropic's overview page.

SystemCommand
macOS, Linux, WSLcurl -fsSL https://claude.ai/install.sh | bash
Windows PowerShellirm https://claude.ai/install.ps1 | iex
Homebrewbrew install --cask claude-code
WinGetwinget install Anthropic.ClaudeCode
Windows CMD (not PowerShell)
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
If it does not workThe installer shows no progress while it downloads, so wait. If the terminal then says claude is not found, open a new terminal window first. The native install updates itself; Homebrew and WinGet need brew upgrade or winget upgrade from time to time.
Never run install commands blindlyOnly copy install commands from the official page (code.claude.com), and check the address before you paste into a terminal. The docs may have changed since this course was written.

Your first session

  1. Open a terminal and install with one of the commands above. Open a new terminal window and run claude --version to confirm.
  2. Make a practice folder: mkdir claude-practice then cd claude-practice.
  3. Start Claude Code with claude. On first use it asks you to log in.
  4. Ask a first question, such as the below.
  5. Type /help any time to see commands, and /exit to leave.

Your first prompt

Create a one-page website about my favourite hobby. Put the files in this folder, then tell me how to open it in my browser.

It is small, safe and gives a visible result. Claude will propose files and ask permission to write them.

Permissions: you stay in control

Claude Code checks with you depending on the permission mode. New versions (from v2.1.283) start terminal and VS Code sessions in auto mode. Press Shift+Tab to switch: from auto, the first press takes you to manual.

ModeWhat happens
ManualClaude asks before most edits, shell commands and network access. Best while learning.
Edit automaticallyFile edits and simple file commands in your folder run without asking; everything else still asks.
PlanClaude researches and proposes a plan; it does not edit your files until you approve. Tip: start a single prompt with /plan.
AutoThe start mode in new versions. Everything runs, with background safety checks that block risky actions. It reduces prompts but does not guarantee safety; after 3 blocks in a row it pauses and asks you again.
AutoStart mode in new versions. Runs with background safety checks.
→
ManualAsks before edits and commands. Best while learning.
→
Edit automaticallyFile edits run, other things ask.
→
PlanReads and plans, edits nothing until you approve.
Each press of Shift+Tab moves one step to the right.

A safe setup for your first weeks

  1. Start each learning session and press Shift+Tab once to switch from auto to manual. You will see every action before it happens.
  2. Read each request. If you do not understand a command, ask: “What does this command do, in plain words?” before approving.
  3. Be careful with “always allow” for commands. A broad permission you click away today stays active later.
  4. Once you trust a task, switch back to auto. Sensitive folders such as .git and .claude are never auto-approved anyway.
About the "skip permissions" modeThere is a mode that approves everything with no prompts (bypass permissions). Anthropic says to use it only in isolated environments such as containers or virtual machines, and that it offers no protection against hidden instructions or mistakes. As a beginner, do not use it.
Try it now: Install Claude Code or the desktop app. In a practice folder, run the first prompt. Read every permission request before approving it.

Check yourself

1. How do you switch between permission modes in a session?
2. Where should you copy install commands from?
3. As a beginner, which approach to permissions is right?
4. In a recent version, which mode does a new terminal session start in?
5. Does auto mode guarantee that nothing bad happens?

Tip: use ← and → to move between lessons.