07Install guides · 10 min
Install Claude Code
Claude Code is Anthropic's coding agent. It runs in your terminal, reads your project, runs commands and edits files for you.
Roman Urdu: Claude Code terminal mein chalne wala AI agent ha. Iske liye paid Claude plan ya API credits chahiye, free plan mein nahi milta.
Cost: Needs a paid account: Claude Pro, Max, Ultra, Team or Enterprise, or a Console (API) account billed per use. The free claude.ai plan does not include Claude Code. Pro is $20/month, or $17/month billed yearly ($200); Max starts at $100/month (claude.com/pricing, 2026-12-05).
Windows
- Needs Windows 10 1809 or newer and 4 GB of RAM or more. Install git first: Git for Windows gives Claude Code a Bash shell (without it, Claude Code uses PowerShell).
- In PowerShell (your prompt starts with
PS), no admin needed:$ irm https://claude.ai/install.ps1 | iex - Or in CMD (prompt without
PS):$ curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd - Or with winget (does not auto-update; run
winget upgrade Anthropic.ClaudeCodenow and then):$ winget install Anthropic.ClaudeCode - Using WSL? Open Ubuntu and follow the Linux tab instead.
- Open a new terminal in your project folder, start it, and log in through the browser:
$ claude
macOS
- Needs macOS 13 or newer and 4 GB of RAM or more. Run the native installer (it updates itself):
$ curl -fsSL https://claude.ai/install.sh | bash - Or with Homebrew (does not auto-update; run
brew upgrade claude-codenow and then):$ brew install --cask claude-code - Open a new Terminal in your project folder, start it, and log in through the browser:
$ claude
Linux (Ubuntu/Debian)
- Needs Ubuntu 20.04+ or Debian 10+ (WSL works too) and 4 GB of RAM or more. Run the native installer:
$ curl -fsSL https://claude.ai/install.sh | bash - Prefer npm? It is still documented and needs Node.js 22 or newer. Never use sudo with it:
$ npm install -g @anthropic-ai/claude-code@latest - Open a new terminal in your project folder, start it, and log in through the browser:
$ claude
Check it worked
$ claude --version$ claude doctora version like 2.1.x (Claude Code), then a health report with no errors
Common errors
claude: command not foundor not recognized after installing- Open a new terminal window. If it still fails, the install folder is not on PATH yet; follow Fix your PATH.
'irm' is not recognized as an internal or external command- You are in CMD, not PowerShell. Use the CMD command, or open PowerShell.
The token '&&' is not a valid statement separator- You are in PowerShell, not CMD. Use the PowerShell command.
syntax error near unexpected token '<'or a 403 during install- The download was blocked or redirected (often a network or region issue). See Troubleshoot installation for other install methods. Claude Code works only in Anthropic supported countries.
- Login works but says your plan does not include Claude Code
- The free plan has no Claude Code. Upgrade to Pro or higher, or log in with a Console account that has API credits.
Official docs
Checked against these pages on 2026-12-05. Tools change: if a step differs, the official page wins.