How to set up Claude Code

From install to your first change in about ten minutes: what you need, the official install commands, signing in and the settings worth knowing.

Claude Code is Anthropic's coding agent: a tool, sometimes called a harness, that connects Anthropic's Claude models to your project. You describe a task, and Claude reads your files, makes edits and runs commands through Claude Code to complete it. Claude runs in Anthropic's cloud, so the prompts and code it works with are sent to Anthropic. Here's how to set it up, using the commands from Anthropic's official documentation.

What you need

  • A plan that includes Claude Code: Claude Pro ($20 a month), Max ($100), Ultra ($200), Team or Enterprise, or an Anthropic Console account for pay-as-you-go API billing. The free Claude plan doesn't include Claude Code.
  • A supported system: macOS 13 or later, Windows 10 (1809) or later, or a recent Linux (Ubuntu 20.04+, Debian 10+), with at least 4 GB of memory and an internet connection.

Prices as listed by Anthropic in November 2026.

Step 1: Install

Open Terminal (or PowerShell on Windows) and run the command for your system. The native installer is Anthropic's recommended option and updates itself automatically.

SystemCommand
macOS, Linux, WSLcurl -fsSL https://claude.ai/install.sh | bash
Windows PowerShellirm https://claude.ai/install.ps1 | iex
Homebrew (macOS)brew install --cask claude-code
WinGet (Windows)winget install Anthropic.ClaudeCode

Check that it worked with claude --version. If something seems off, claude doctor diagnoses common problems. (Homebrew and WinGet installs don't update automatically; update them with their own upgrade commands. Homebrew's claude-code follows the stable channel, while claude-code@latest gets new versions straight away. You can also install with npm, which needs Node.js 22 or later: npm install -g @anthropic-ai/claude-code@latest, without sudo.)

Step 2: Sign in

  1. Go to your project folder: cd /path/to/your/project
  2. Start Claude Code: claude
  3. A browser window opens to sign in with your Claude account. If it doesn't, press c to copy the sign-in link.

To switch accounts later, type /login inside Claude Code; /logout signs out.

Step 3: Your first task

  1. Ask a question to get oriented, for example: what does this project do?
  2. Ask for a small change, such as fixing a typo or adding a button.
  3. Claude Code shows what it wants to change. Review it, then approve it.

Useful basics: Shift+Tab cycles permission modes (how much Claude Code may do without asking), /help lists commands, and /resume picks up an earlier conversation.

Step 4: Choose a model

Type /model to open the model picker, or start with claude --model sonnet (or opus, haiku). Use the stronger models for complex work and the lighter ones for quick edits to make your usage limits go further.

Step 5: Give it project instructions

Claude Code reads a CLAUDE.md file in your project for instructions such as how to run tests or which conventions to follow. It can also read an existing AGENTS.md.

Prefer a graphical interface?

You don't have to live in the terminal. Anthropic offers Claude Code in the Claude desktop app's Code tab, in VS Code and JetBrains extensions and on the web at claude.ai/code. See all the graphical options.

Nexus is another: a native Mac app that uses Claude Code by Anthropic, signs in with its own sign-in (separate from your terminal login), and adds a visual workspace with a live preview, diffs and a restore point after every finished task. You can also switch to the Codex app by OpenAI or a free local model in the same chat. Nexus will be a one-time purchase of $199 USD, with no Nexus subscription; Claude Code still uses your own Claude plan. It's for Apple silicon Macs and is coming soon.

Frequently asked questions

Is Claude Code free?

No. Anthropic says the free Claude plan does not include Claude Code. You need a Pro, Max, Ultra, Team or Enterprise plan, or an Anthropic Console account billed by API usage.

Do I need Node.js for Claude Code?

Only if you install it with npm, which needs Node.js 22 or later. The recommended native installer doesn't need Node.

Can I use Claude Code without the terminal?

Yes. The Claude desktop app has a Code tab that includes Claude Code, and there are extensions for VS Code and JetBrains, plus a web version at claude.ai/code.