How to install Claude Code and get started
Guides,
This is everything you need to go from nothing to a working Claude Code session. What you need first, the install command for your system, signing in, your first few prompts, and the handful of commands and settings worth knowing on day one. Every command here comes from the official docs.
What you need before you install
A paid Claude plan or an API account. Claude Code comes with Pro, Max, Ultra, Team and Enterprise, or a Console account that pays for API usage. The free Claude plan doesn't include it.
You don't need Node.js. A lot of older guides say to install it first, but the recommended installer is a single program. Node only matters if you go the npm route.
It runs on macOS 13 or newer, Windows 10 version 1809 or newer, and most Linux, including Ubuntu 20.04 and up. You want 4 GB of RAM and an internet connection. On Windows you can run it natively or inside WSL 2, which is the Linux layer Windows ships with.
How to install Claude Code
The native installer is the one the docs recommend. It also keeps itself updated. On a Mac, Linux, or inside WSL, paste this into a terminal.
curl -fsSL https://claude.ai/install.sh | bashOn Windows, open PowerShell and run this one instead.
irm https://claude.ai/install.ps1 | iexIf you're in the older Command Prompt, there's a version for that too. Running the PowerShell line in Command Prompt, or the other way around, is the most common way this goes wrong, so check which one you have open.
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmdIf you'd rather use a package manager, Homebrew and WinGet both work. The catch is they don't update on their own, so you have to upgrade it yourself now and then.
brew install --cask claude-code
winget install Anthropic.ClaudeCodenpm still works too. Use Node 22 or newer and never run it with sudo.
npm install -g @anthropic-ai/claude-code@latestCheck that it worked
Open a new terminal window first. The installer adds Claude Code to your path, and a window that was already open won't see it. That one gets a lot of people, it just says command not found.
claude --versionYou should get a version number back. If something seems off, claude doctor checks your install and settings without starting a session.
Signing in the first time
Run claude and it opens your browser to log in. Sign in with your Claude account and you're done. If the browser shows a code instead, paste it back into the terminal where it asks. The docs recommend signing in with your subscription over using an API key.
Later, /login switches accounts or signs you back in.
Your first session
Claude Code works on whatever folder you start it in. So go to a project first, then start it.
cd path-to-your-project
claudeNow just talk to it. The quickstart suggests starting with questions about the code, which is a good way to see how it reads a project before you let it change anything.
what does this project do?
explain the folder structure
where is the main entry point?
add a hello world function to the main file
what files have I changed?Then run /init. It looks through the project and writes a CLAUDE.md file, which gets loaded at the start of every session. It's where you put the stuff you'd otherwise repeat every time, like how to run the tests or what not to touch. I wrote more about that in how AI agents remember things.
How permissions work
Claude Code can edit files and run commands, so it has permission modes that decide how much it does without asking. Press Shift+Tab to cycle through them. The status bar at the bottom shows which one you're in.
- Auto mode is where it starts. A second model checks each action before it runs, instead of asking you about every one. The docs are clear that this doesn't guarantee safety.
- Manual mode asks before edits, commands and network access.
- Accept edits mode lets it change files without asking but still checks before other commands.
- Plan mode lets it read and plan but not edit anything until you approve. More on how I use that in plan first, then build.
Auto mode became the starting mode for everyone in version 2.1.283. Older guides say it asks before every action, and that's not true anymore.
Commands worth knowing
Type / in a session to see them all. These are the ones worth learning first.
/helplists what's available./clearstarts a fresh conversation./resumebrings an old one back./compactsummarizes a long conversation to free up room in the context window./contextshows how full the context window is./modelswitches models./permissionsmanages what it may do without asking./mcpmanages MCP servers, which give it extra tools./configopens settings.
From the shell, claude -c picks up your last conversation in that folder, and claude -p asks one question, prints the answer and exits.
claude -c
claude -p "what does this project do?"Other ways to use it
You don't have to live in the terminal. There's a VS Code extension, a JetBrains plugin that needs the command line version installed too, a desktop app that has it built in, and a web version.
Updating and uninstalling
The native install updates itself in the background, and the new version kicks in the next time you start it. To update right away, run this.
claude updateTo remove a native install on a Mac or Linux, delete these two. Your settings and history in ~/.claude stay unless you delete that too.
rm -f ~/.local/bin/claude
rm -rf ~/.local/share/claudeWhere to go next
The official docs are good. These are the pages worth reading next.
- Quickstart walks through a first task end to end.
- Common workflows covers fixing bugs, refactoring and tests.
- Best practices is the best single page to read after this.
- Memory is how
CLAUDE.mdworks. - Settings and permissions for setting it up the way you want.
- Install troubleshooting if any of the above went sideways.
And on this site, once it's running, read about what happens when it calls a tool, subagents, and skill files. That's roughly the order I figured them out in.