MyJackfruit

Help
Browse topics · Setup

Setup

← Back to Do I need to install anything?

How do I install Claude Code on Windows or Linux?

Short answer

Open PowerShell or a terminal, paste the line below for your computer, press Enter, type claude in a new window, press Enter and sign in.
On Windows, in PowerShell:
irm https://claude.ai/install.ps1 | iex
On Linux:
curl -fsSL https://claude.ai/install.sh | bash

Before you start

You need Windows 10 version 1809 or newer, or Linux such as Ubuntu 20.04 or newer, and a Claude account that includes Claude Code: Pro, Max, Ultra, Team, Enterprise or Console.

Steps
  1. Open PowerShell on Windows, or a terminal on Linux.

    On Windows, press the Windows key, search for PowerShell and press Enter. On Linux, press Ctrl + Alt + T, or search for Terminal in your applications menu.

    More about this

    A window opens with a blinking cursor: this is where you type commands. In PowerShell each line starts with PS, as in PS C:\Users\YourName>; without the PS you are in CMD, Windows' other command window; close it and open PowerShell as above. On Windows, do not open the entry whose name ends in (x86): Claude Code does not run in it. You do not need to run PowerShell as Administrator.

  2. Paste the install line for your computer and press Enter.

    On Windows, in PowerShell, paste this line and press Enter:
    irm https://claude.ai/install.ps1 | iex
    On Linux, paste this line and press Enter:
    curl -fsSL https://claude.ai/install.sh | bash

    More about this

    In PowerShell, paste with Ctrl + V or a right-click; in a Linux terminal, with Ctrl + Shift + V. Each line downloads and runs Anthropic's installer from claude.ai. It shows no progress while it downloads, so leave the window open and wait until it says Claude Code successfully installed!. If Windows says 'irm' is not recognized, you are in CMD: open PowerShell, or follow the CMD line on Anthropic's setup page. On Alpine Linux, install bash and curl first. If you see App unavailable in region, Claude Code is not offered in your country. For any other error, follow Anthropic's fixes at https://code.claude.com/docs/en/troubleshoot-install.

  3. Check the install in a new window.

    Open a new PowerShell or terminal window as in step 1, then paste this line and press Enter:
    claude --version
    It prints a version number followed by (Claude Code).

    More about this

    A new window is needed because the window you installed from may not find claude yet. If Windows says claude is not recognized, or Linux says command not found: claude, the folder the installer used is not yet on your PATH, the list of folders your computer looks in for commands. Anthropic gives the fix for each at https://code.claude.com/docs/en/terminal-guide, under Troubleshooting; then open a new window and try again. For a fuller check, claude doctor lists problems with suggested fixes; you do not need it.

  4. Type claude and press Enter.

    In the new window, type claude and press Enter. The first time, Claude Code asks you to log in and opens a browser window.

    More about this

    Follow the questions Claude Code shows in the window; Anthropic may change them. Use the arrow keys to move and Enter to choose; you cannot click in the window.

  5. Sign in with your Claude account in the browser.

    In the browser window, sign in with the Claude account that has your plan and follow its prompts. When the window shows Login successful, press Enter to continue.

    More about this

    If the browser does not open, press c in the window to copy the sign-in address, then paste it in your browser's address bar. If the browser shows a code instead of going back, paste the code where the window says Paste code here if prompted. Claude Code keeps your sign-in in your own user folder, so you sign in once. GilbApp's chat may show claude auth login for the same sign-in; you need not run it again. To leave Claude Code, type /exit and press Enter or, on an empty prompt, press Ctrl + D twice in quick succession.

Deeper

Claude Code is Anthropic's AI that you run in a terminal, the window where you type commands; on Windows that window is PowerShell. It is the AI you connect next: in GilbApp's chat on Windows or Linux, and to your vaults on Linux. To reach your vaults from PowerShell on Windows, GilbApp's steps use Codex, OpenAI's AI for writing code, instead. See: How do I make an AI vault and connect Codex to it? Anthropic says it runs on Windows 10 version 1809 or newer and Windows Server 2019 or newer, and on Linux: Ubuntu 20.04 or newer, Debian 10 or newer and Alpine Linux 3.19 or newer. It needs 4 GB or more of memory, an x64 or ARM64 processor and an internet connection, in a country Anthropic supports (https://www.anthropic.com/supported-countries). It needs a Pro, Max, Ultra, Team, Enterprise or Console account from Anthropic (a Console account is Anthropic's account for organisations that pay for the AI by use); the free Claude plan does not include it.

On Windows, Anthropic calls Git for Windows optional: without it, Claude Code uses PowerShell to run its commands. Claude Code can also run inside WSL 2, the Linux that Windows can run inside itself; Anthropic does not support WSL 1. Then you use the Linux line inside the WSL window. Installed with these lines, Claude Code updates itself in the background. Anthropic also offers it through WinGet on Windows and through Linux package managers; those copies do not update themselves.

Next, for GilbPlatform: GilbApp's chat needs Node.js 18 or newer, a free program that runs GilbPlatform's small helper on your computer. To check, paste this line and press Enter; it should show v18 or higher:
node --version
If it is missing, get it from https://nodejs.org; on Windows, GilbApp's chat says (choose the LTS Windows installer).

What is tested, plainly. In GilbApp's chat, Claude Code has steps for Mac, Windows and Linux. For Windows it says "Windows is new. It works on Windows test machines but has not yet been tried by a person on their own PC. If something does not work, write to [email protected] and we will help." and "Use Chrome on Windows. Edge and Brave use the same engine as Chrome but have not been tried on Windows yet." For Linux it has only Option One Session. Under ▸ CONNECT AI in a vault's access section, the steps that let Claude Code in a terminal reach your vaults, Linux says These Linux steps need further testing. Under Windows, Codex is chosen for you; with Claude Code chosen it says Claude Code on Windows is not available yet. Choose Codex.

The steps on this page are Anthropic's. We have not tried them on a Windows PC or a Linux computer. Anthropic makes Claude Code and sets its plans, commands and sign-in, and may change them. This answer follows Anthropic's pages, read on 12 November 2026: https://code.claude.com/docs/en/setup, https://code.claude.com/docs/en/terminal-guide and https://code.claude.com/docs/en/authentication.

On a Mac, the answer How do I install Claude Code? shows the steps. This answer has no pictures: every window in these steps belongs to Windows, Linux or Anthropic, not to GilbApp, so GilbApp cannot show them. This answer is written for a computer screen.

Source: Anthropic's own pages, read 12 November 2026: https://code.claude.com/docs/en/setup (System requirements; Native Install lines for Windows PowerShell and for Linux; You do not need to run as Administrator; Git for Windows optional; WSL; Alpine needs bash and curl; WinGet and Linux package managers do not auto-update; Verify your installation: claude --version, claude doctor; Authenticate: Pro, Max, Ultra, Team, Enterprise or Console, the free plan does not include it), https://code.claude.com/docs/en/terminal-guide (open a terminal: Ctrl + Alt + T on Linux, PowerShell and its PS prompt; paste keys; Claude Code successfully installed!; Windows and Linux troubleshooting: 'irm' is not recognized, claude is not recognized, command not found: claude, 32-bit (x86) PowerShell, App unavailable in region), https://code.claude.com/docs/en/authentication (browser log-in, press c, Paste code here if prompted, Login successful; credentials kept in the user folder on Windows and Linux). GilbApp 96968de7 (https://gilb.com/app/version.json read 12 November 2026): vendor/gilbplatformcode-claude-code-connect 0.1.10 src/ClaudeCodeConnect.tsx:124-126 (Windows notice, browser sentence, opening PowerShell), :129-133 (tabs Mac, Windows, Linux), :415-427 (Claude Code for Windows, claude auth login), :431-439 (Node.js 18 or newer; LTS Windows installer), :479 (Linux: Option One Session only); src/components/agent/AgentChat.tsx:788 ([email protected]); src/components/VaultAccessManager.tsx:72, :123-127, :780, :786-787 (Connect AI tabs; Linux note). GilbApp 4557cf80 (https://gilb.com/app/version.json, read 13 November 2026): src/components/VaultAccessManager.tsx:75 (Linux note), :105 (Claude Code on Windows is not available yet. Choose Codex.), :277-279 (Codex chosen for you on Windows), :1014-1018 (the computer tabs, the Claude Code and Codex buttons, the Windows sentence). Live help pages, shared sentences reused: How do I install Claude Code?, What do I need to get started?, How do I connect my AI to GilbApp chat?. Command list: https://code.claude.com/docs/en/commands (read 13 November 2026).

Checked against GilbApp d529620.