Short answer: Claude Code is Anthropic's coding agent. It runs in your terminal (and in VS Code, JetBrains, a desktop app and the browser), reads your project, edits files and runs commands for you, asking permission according to the mode you choose. You install it with one command, sign in with a paid Claude plan or an Anthropic Console account, and start it by typing claude inside a project folder.
Anthropic's own one-line description: "Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools." "Agentic" means it works in a loop, choosing its next step from what the last one returned; our AI agents explainer covers that idea. This guide uses the current official docs at code.claude.com, prices from claude.com/pricing only, and the real claude --help output from version 2.1.325.
What you need
From the official system requirements:
- Operating system: macOS 13.0+, Windows 10 1809+ or Windows Server 2019+, Ubuntu 20.04+, Debian 10+, or Alpine Linux 3.19+.
- Hardware: 4 GB+ RAM, x64 or ARM64 processor.
- Network: an internet connection, in a country Anthropic supports.
- Shell: Bash, Zsh, PowerShell or CMD.
- Account: "Claude Code requires a Pro, Max, Ultra, Team, Enterprise, or Console account. The free claude.ai plan does not include Claude Code access." Amazon Bedrock, Google Cloud's Agent Platform and Microsoft Foundry also work.
- Optional: Git. On native Windows, Git for Windows is recommended so Claude Code can use Bash; without it, Claude Code uses PowerShell. Claude Code itself does not need Node.js, but the npm install route requires Node.js 22 or later, and this guide's example project needs Node.js 20 or later (the release in which Node's built-in test runner became stable) plus npm.
Plans and pricing
All figures are from claude.com/pricing on 14 November 2026, in US dollars. The page notes that prices exclude applicable tax, that "Usage limits apply", and that plans can change.
| Plan | Price | Claude Code? | Usage, as the page states it |
|---|---|---|---|
| Free | $0 | No | Limited |
| Pro | $17/month with annual billing ($200 up front), $20 billed monthly | Yes | "More usage than Free" |
| Max | $100/month | Yes | "5x Pro usage every 5 hours and every week" |
| Ultra | $200/month | Yes | "10x Pro usage every week", no 5-hour limit for verified accounts |
| Team, standard seat | $20/seat/month annual, $25 monthly | Yes | "more usage than Pro"; 2 to 150 people |
| Team, premium seat | $100/seat/month annual, $125 monthly | Yes | "5x more usage than standard seats" |
| Enterprise | US$20/seat/month billed annually, 20 seat minimum, plus usage at API rates | Yes | "Usage cost scales with model and task" |
A Console account is the other route: you pay for API usage with pre-paid credits instead of a subscription. If you only want to try Claude Code, Pro is the cheapest plan that includes it.
Install Claude Code, step by step
Step 1: Run the installer for your system
The native installer is Anthropic's recommended method and updates itself in the background. Open a terminal and run the line for your system:
# macOS, Linux, WSL
curl -fsSL https://claude.ai/install.sh | bash
# Windows PowerShell (prompt starts with PS C:\)
irm https://claude.ai/install.ps1 | iex
# Windows CMD (prompt starts with C:\ and no PS)
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
The docs warn that the installer "shows no progress while it downloads". When it finishes, open a new terminal window. You do not need to run it as Administrator on Windows.
Package-manager alternatives. Homebrew and WinGet installs do not auto-update by default; npm installs do:
# Homebrew: stable channel, typically about a week behind
brew install --cask claude-code
# WinGet (Windows)
winget install Anthropic.ClaudeCode
# npm (needs Node.js 22+; never use sudo)
npm install -g @anthropic-ai/claude-code@latest
There are also signed apt, dnf and apk repositories for Debian, Ubuntu, Fedora, RHEL and Alpine; follow the setup page for their key-verification steps. Note that the project's GitHub README labels the npm route "deprecated", while the setup docs still document it.
Step 2: Confirm the install
This proves the claude command is on your PATH (the list of folders your shell searches for programs).
claude --version
On our test Mac this printed:
2.1.325 (Claude Code)
Your number will differ. On 14 November 2026 npm listed 2.1.325 as latest and 2.1.311 as stable; Homebrew's claude-code cask follows the stable channel. For a deeper check, the docs recommend claude doctor, which "prints read-only installation and settings diagnostics without starting a session".
Step 3: Create a tiny first project
A small project with one test gives Claude Code something real to read and a way to prove its change works.
mkdir hello-claude && cd hello-claude
git init -b main
Windows PowerShell 5.1 does not support && (it arrived in PowerShell 7), so there run mkdir hello-claude and cd hello-claude as separate commands.
package.json:
{
"name": "hello-claude",
"version": "1.0.0",
"type": "module",
"scripts": {
"test": "node --test"
}
}
greet.js:
export function greet(name) {
return `Hello, ${name}!`;
}
greet.test.js:
import { test } from "node:test";
import assert from "node:assert/strict";
import { greet } from "./greet.js";
test("greets by name", () => {
assert.equal(greet("Ada"), "Hello, Ada!");
});
Run npm test. We saw ✔ greets by name followed by ℹ pass 1 and ℹ fail 0. This project uses Node.js; any language works, since Claude Code itself does not need Node.
Step 4: Add a CLAUDE.md
CLAUDE.md is a Markdown file of standing instructions that Claude reads at the start of every session. The docs suggest concrete, checkable rules and a target of under 200 lines.
# hello-claude
## Commands
- Run tests: `npm test` (Node's built-in test runner, no dependencies)
## Conventions
- ES modules only (`import`/`export`), 2-space indentation
- Every exported function gets a test in `<name>.test.js`
- Do not add npm dependencies without asking
Commit this starting point so you can see exactly what Claude changes later. If git asks who you are, set user.name and user.email as its message shows.
git add -A
git commit -m "Initial hello-claude project"
On a bigger project, type /init in a session and Claude drafts one by reading your codebase. If your repo already has an AGENTS.md for other agents, Claude Code 2.1.277 and later can read that instead; see skills, AGENTS.md and CLAUDE.md explained.
Step 5: Start Claude Code and sign in
Claude Code works on the folder you start it in, so start it from the project root.
cd hello-claude
claude
According to the quickstart, the first run asks you to log in and opens your browser. Your credentials are then stored, and "you won't need to log in again". If ANTHROPIC_API_KEY is set and you approve it, the login prompt is skipped. Once in, the prompt shows the version, model and working folder. Type /help for commands and /exit (or Ctrl+D twice) to leave.
Step 6: Pick a permission mode
A permission mode sets "which actions Claude can take in a session without asking you first." The six modes, from the docs:
| Mode | Runs without asking | Use it for |
|---|---|---|
Manual (default) | Reads only | Reviewing every action, sensitive work |
acceptEdits | Reads, file edits, common file commands such as mkdir and mv | Iterating on code you are reviewing |
plan | Reads, plus classifier-approved commands when auto mode is available; edits wait until you approve a plan | Exploring before changing anything |
auto | Everything, with background safety checks by a classifier model | Long tasks, fewer prompts |
dontAsk | Reads and pre-approved tools; everything else denied | Locked-down CI and scripts |
bypassPermissions | Everything | Isolated containers and VMs only |
Two things beginners miss. First, from v2.1.283, auto mode is the built-in starting mode for interactive terminal and VS Code sessions, so out of the box a classifier, not you, reviews most actions (if auto mode is unavailable, for example because your organisation turned it off, the session starts in Manual). Second, you can change mode any time with Shift+Tab, which cycles auto, manual, accept edits, plan; the status bar shows the current one. For a first session on real code, we suggest starting in plan or manual mode:
claude --permission-mode plan
# or
claude --permission-mode manual
manual is the name claude --help shows; the docs say the CLI accepts it as an alias for default.
Step 7: Give it a simple task
Specific, checkable requests work best; the quickstart suggests "fix the login bug where users see a blank screen after entering wrong credentials" over "fix the bug". For this project, type:
add a farewell(name) function to greet.js that returns "Goodbye, NAME!", add a test for it, then run npm test
Per the docs, Claude reads the files it needs, shows the edit, and in manual mode asks before changing files or running npm test; select Yes to approve. Because CLAUDE.md says every exported function needs a test, it should add one to greet.test.js. Then try what files have I changed? and commit my changes with a descriptive message.
Check it worked
Outside the session, run the tests yourself:
npm test
Before the task you will see ℹ pass 1. After a successful task you should see two passing tests (ℹ pass 2, ℹ fail 0) and, until you ask Claude to commit, git status should list greet.js and greet.test.js as modified. Inside a session, /context all lists your CLAUDE.md under Memory files if it loaded.
Flags worth knowing
From claude --help in version 2.1.325:
| Flag | Help text (trimmed) |
|---|---|
-p, --print | "Print response and exit (useful for pipes)." |
-c, --continue | "Continue the most recent conversation in the current directory" |
-r, --resume [value] | "Resume a conversation by session ID or name, or open interactive picker" |
--permission-mode <mode> | choices: "acceptEdits", "auto", "bypassPermissions", "manual", "dontAsk", "plan" |
--model <model> | "Provide an alias for the latest model (e.g. 'fable', 'opus', or 'sonnet') or a model's full name." |
--add-dir <directories...> | "Additional directories to allow tool access to" |
-w, --worktree [name] | "Create a new git worktree for this session" |
--safe-mode | Starts with CLAUDE.md, skills, plugins, hooks and MCP servers disabled, for troubleshooting a broken setup |
--dangerously-skip-permissions | "Bypass all permission checks. Recommended only for sandboxes with no internet access." |
Useful subcommands: claude doctor ("Check the health of your Claude Code installation"), claude update, claude mcp and claude plugin.
Troubleshooting
All error texts below are from Anthropic's install troubleshooting page.
zsh: command not found: claude(or'claude' is not recognized as an internal or external commandon Windows). The install folder is not on your PATH yet. Open a new terminal first; if it persists, follow the docs' "Verify your PATH" steps for your shell.bash: line 1: syntax error near unexpected token `<'. The installer URL returned a web page instead of the script. The docs blame network issues, regional routing, temporary outages, or Claude Code not being available in your country. Retry after a few minutes, or install with Homebrew or WinGet.'irm' is not recognized as an internal or external commandorThe token '&&' is not a valid statement separator. Wrong Windows shell: the first means you are in CMD, so use the CMD line; the second means you are in PowerShell, so use theirmline.running scripts is disabled on this system. PowerShell's execution policy blocks npm's.ps1launchers. RunSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser, callclaude.cmd, or use the PowerShell installer instead of npm.API Error: 403 Request not allowedafter login. Check your subscription is active at claude.ai/settings; Console users need the "Claude Code" or "Developer" role. Corporate proxies can also cause it.Claude Code access has not been granted for this account. Contact your administrator.Your Enterprise organisation's role settings do not include Claude Code. Only an Owner can fix it; then runclaudeand log in again.App unavailable in region. Claude Code is not offered in your country; see Anthropic's supported countries list.
What to do next
- Compare it with the alternative many teams already pay for: GitHub Copilot vs Claude Code (2026).
- See the open-source options: best open-source AI coding agents.
- Teach it your procedures with skills: what are agent skills, AGENTS.md and CLAUDE.md.
- Connect it to databases and APIs: set up an MCP server in Claude Code.
- Official docs: quickstart, permission modes, CLAUDE.md.
FAQ
Is Claude Code free?
No. The installer is free to download, but using it needs a paid plan (Pro and up), a Console account with API credits, or a supported cloud provider. The pricing page lists Claude Code as not included on Free.
Do I need Node.js?
Only for the npm install, which requires Node.js 22 or later. The native installer, Homebrew and WinGet do not need it, and the docs say the installed binary "does not itself invoke Node".
Is Claude Code open source?
No. The anthropics/claude-code GitHub repository is public, but its LICENSE.md reads "© Anthropic PBC. All rights reserved." For open-source alternatives, see our coding agents list.
Can I use it in VS Code instead of the terminal?
Yes. The overview lists the terminal, IDE extensions (VS Code and JetBrains), a desktop app and the web.
Does it update itself?
The native install does, in the background. Homebrew, WinGet, apt, dnf and apk installs do not by default; use brew upgrade claude-code, winget upgrade Anthropic.ClaudeCode or your system's upgrade command.
How this guide was tested
Tested on 14 November 2026 on macOS 26.5 (Apple M4) with Claude Code 2.1.325 (from claude --version), Node 25.9.0, npm 11.12.1 and git 2.50.1. Executed here: claude --version, claude --help (the flag table is quoted from it), npm view @anthropic-ai/claude-code for the release channels, creating the hello-claude project with its CLAUDE.md, passing npm test and making the initial commit, and, to confirm the expected result in Check it worked, making the Step 7 change by hand (two passing tests, two modified files). Docs-only, not executed: every installer (Claude Code was already installed, and we do not run curl-to-shell installers on the test machine), Homebrew, WinGet, npm and Linux package installs, logging in, starting a session, switching permission modes, the Step 7 task in a Claude session, claude doctor, and all Windows steps. We did not log in, spend usage or change any configuration. Prices are from claude.com/pricing only. We re-test these steps monthly and record any change in this page's changelog.
Comments 0
No comments yet. Be the first to share your thoughts.
Leave a comment