07 [Install guides](https://logicpacks.io/install) · 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](#windows) · [macOS](#macos) · [Linux (Ubuntu/Debian)](#linux)

## Windows

1.  Needs Windows 10 1809 or newer and 4 GB of RAM or more. Install [git](https://logicpacks.io/install/git) first: Git for Windows gives Claude Code a Bash shell (without it, Claude Code uses PowerShell).
2.  In **PowerShell** (your prompt starts with `PS`), no admin needed:
    
    ```sh
    irm https://claude.ai/install.ps1 | iex
    ```
    
3.  Or in **CMD** (prompt without `PS`):
    
    ```sh
    curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
    ```
    
4.  Or with winget (does not auto-update; run `winget upgrade Anthropic.ClaudeCode` now and then):
    
    ```sh
    winget install Anthropic.ClaudeCode
    ```
    
5.  Using WSL? Open Ubuntu and follow the Linux tab instead.
6.  Open a new terminal in your project folder, start it, and log in through the browser:
    
    ```sh
    claude
    ```
    

## macOS

1.  Needs macOS 13 or newer and 4 GB of RAM or more. Run the native installer (it updates itself):
    
    ```sh
    curl -fsSL https://claude.ai/install.sh | bash
    ```
    
2.  Or with Homebrew (does not auto-update; run `brew upgrade claude-code` now and then):
    
    ```sh
    brew install --cask claude-code
    ```
    
3.  Open a new Terminal in your project folder, start it, and log in through the browser:
    
    ```sh
    claude
    ```
    

## Linux (Ubuntu/Debian)

1.  Needs Ubuntu 20.04+ or Debian 10+ (WSL works too) and 4 GB of RAM or more. Run the native installer:
    
    ```sh
    curl -fsSL https://claude.ai/install.sh | bash
    ```
    
2.  Prefer npm? It is still documented and needs [Node.js](https://logicpacks.io/install/node) 22 or newer. Never use sudo with it:
    
    ```sh
    npm install -g @anthropic-ai/claude-code@latest
    ```
    
3.  Open a new terminal in your project folder, start it, and log in through the browser:
    
    ```sh
    claude
    ```
    

## Check it worked

```sh
claude --version
```

```sh
claude doctor
```

a version like 2.1.x (Claude Code), then a health report with no errors

## Common errors

`claude: command not found` or 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](https://code.claude.com/docs/en/troubleshoot-install).

`'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](https://code.claude.com/docs/en/troubleshoot-install) 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

-   [Claude Code docs: Setup](https://code.claude.com/docs/en/setup)
-   [Claude Code docs: Troubleshoot installation](https://code.claude.com/docs/en/troubleshoot-install)
-   [Claude: Pricing](https://claude.com/pricing)

Checked against these pages on 2026-12-05. Tools change: if a step differs, the official page wins.

[Install guides : All guides](https://logicpacks.io/install) [Next : Install Codex CLI](https://logicpacks.io/install/codex)

---

Canonical URL: https://logicpacks.io/install/claude-code

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](https://logicpacks.io/llms.txt). Plain facts: [/about.md](https://logicpacks.io/about.md). Safety: [/safety.md](https://logicpacks.io/safety.md).
