Skip to content

Official links only. Every download link goes to the publisher's own official page. We never host, repackage or bundle files.

How-to 8 min read

How to install Claude Code on Windows (PowerShell, CMD or WinGet)

Windows पर Claude Code कैसे इंस्टॉल करें (PowerShell, CMD या WinGet)

By the ToolsBharat teamPublished 30 Oct 2026How we check

Applies to Claude Code 2.1.316 (released 31 Oct 2026)

हिंदी में पढ़ें

Quick answer

To install Claude Code on Windows, open PowerShell and run irm https://claude.ai/install.ps1 | iex, then open a new terminal and run claude --version to confirm it worked. Anthropic also lists a Command Prompt command and winget install Anthropic.ClaudeCode. You need Windows 10 version 1809 or later on a 64-bit PC, at least 4 GB of RAM, an internet connection and a paid Claude Pro, Max, Team or Enterprise plan or a Console account. The free Claude plan does not include Claude Code.

What you need before you start

Claude Code is Anthropic's coding assistant that runs in your terminal. It reads your project, edits files and runs commands after you approve them. Anthropic's setup page lists these requirements:

  • Windows: Windows 10 version 1809 or later, or Windows Server 2019 or later. It needs a 64-bit (x64 or ARM64) PC. Anthropic's troubleshooting page says 32-bit Windows is not supported.
  • Hardware: 4 GB of RAM or more.
  • Network: an internet connection. Claude Code works with Anthropic's servers, so it does not run offline.
  • Shell: PowerShell or Command Prompt (CMD) on Windows.
  • Location: a country on Anthropic's supported list. India is on it.
  • Account: a Claude Pro, Max, Team or Enterprise plan, or an Anthropic Console (API) account. Anthropic says plainly that the free Claude plan does not include Claude Code. Companies can also connect it to Amazon Bedrock, Google Cloud's Agent Platform or Microsoft Foundry.

You don't need administrator rights. Git for Windows is optional, but Anthropic recommends it: with Git for Windows installed, Claude Code can use Git Bash for its Bash tool. Without it, Claude Code runs commands through PowerShell instead.

  1. Open the Start menu, type PowerShell and open Windows PowerShell. Don't open the entry that ends in (x86), because that one runs as 32-bit. Your prompt should start with PS C:\Users\YourName>.
  2. Paste this command and press Enter: irm https://claude.ai/install.ps1 | iex
  3. Wait. Anthropic notes that the installer shows no progress while it downloads, so a quiet window doesn't mean it's stuck.
  4. When it finishes, close the window and open a new terminal window. A window that was already open keeps the old PATH and won't find the new command.
  5. Run claude --version. A working install prints a version number.
  6. Go to the folder of a project you want to work on, for example cd D:\Projects\my-app, and run claude.
  7. The first time, Claude Code opens your browser so you can log in with your Claude account. If the browser doesn't open, press c in the terminal to copy the login link and paste it into a browser yourself.

For a deeper health check at any time, run claude doctor. It prints install and settings diagnostics without starting a session.

Other ways to install it on Windows

  • Command Prompt (CMD): your prompt shows C:\Users\YourName> without "PS". Run: curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
  • WinGet: winget install Anthropic.ClaudeCode. WinGet installs don't update themselves, so run winget upgrade Anthropic.ClaudeCode now and then.
  • WSL (Windows Subsystem for Linux): open your WSL distribution and run the Linux installer inside it: curl -fsSL https://claude.ai/install.sh | bash. Anthropic's table says sandboxed command execution is supported in WSL 2 but not in native Windows or WSL 1.
  • No terminal at all: Anthropic also offers the Claude desktop app for Windows, which lets you use Claude Code through a graphical window.

On macOS and Linux, the same curl -fsSL https://claude.ai/install.sh | bash command is the native installer, and Homebrew users can run brew install --cask claude-code.

How updates work

The PowerShell, CMD and Linux installers set up a "native" install that updates itself in the background. The new version takes effect the next time you start Claude Code. To update straight away, run claude update. WinGet and Homebrew installs need a manual upgrade.

Troubleshooting common install errors

  • 'irm' is not recognized: you are in Command Prompt, not PowerShell. Either open PowerShell and run the PowerShell command, or use the CMD command above.
  • The token '&&' is not a valid statement separator: you pasted the CMD command into PowerShell. Use irm https://claude.ai/install.ps1 | iex instead.
  • A parameter cannot be found that matches parameter name 'fsSL': you ran the macOS/Linux command in PowerShell, where curl means something else. Use the PowerShell command.
  • The command prints script text and nothing installs: you ran only half of it. Paste the whole line, including | iex.
  • 'claude' is not recognized after installing: first open a new window. If it still fails, check that the program exists with Test-Path "$env:USERPROFILE\.local\bin\claude.exe". If that prints True, the folder isn't on your PATH: open Environment Variables from Windows settings, add %USERPROFILE%\.local\bin to your User PATH and restart the terminal.
  • Claude Code does not support 32-bit Windows: you probably opened Windows PowerShell (x86). Close it, open Windows PowerShell without "(x86)" and run the installer again. If your Windows really is 32-bit, Claude Code won't run on it.
  • The process cannot access the file ... because it is being used by another process: another installer window or an antivirus scan is holding the download. Close other PowerShell windows, wait a minute, then run Remove-Item -Recurse -Force "$env:USERPROFILE\.claude\downloads" and install again.
  • Typing claude opens the desktop app instead: an older Claude Desktop version registered its own Claude.exe. Anthropic's fix is to update Claude Desktop to the latest version.
  • API Error: 403 after logging in: check that your Pro or Max subscription is active at claude.ai/settings. On a Console account, an admin must give you the "Claude Code" or "Developer" role.

Download Claude Code only through Anthropic's own commands or claude.com. Sites offering a "Claude Code setup.exe" are not Anthropic. See how to spot fake download sites.

हिंदी में

Windows पर Claude Code कैसे इंस्टॉल करें (PowerShell, CMD या WinGet)

Windows पर Claude Code इंस्टॉल करने के लिए PowerShell खोलें और irm https://claude.ai/install.ps1 | iex चलाएँ, फिर नई टर्मिनल विंडो खोलकर claude --version चलाएँ और देखें कि इंस्टॉल हुआ या नहीं। Anthropic ने Command Prompt के लिए अलग कमांड और winget install Anthropic.ClaudeCode भी दिया है। इसके लिए 64-बिट PC पर Windows 10 version 1809 या नया, कम से कम 4 GB RAM, इंटरनेट और Claude का पेड Pro, Max, Team या Enterprise प्लान या Console अकाउंट चाहिए। Claude के फ़्री प्लान में Claude Code शामिल नहीं है।

शुरू करने से पहले क्या चाहिए

Claude Code Anthropic का कोडिंग असिस्टेंट है, जो आपके टर्मिनल में चलता है। यह आपका प्रोजेक्ट पढ़ता है, फ़ाइलें बदलता है और आपकी मंज़ूरी के बाद कमांड चलाता है। Anthropic के सेटअप पेज पर ये ज़रूरतें लिखी हैं:

  • Windows: Windows 10 version 1809 या नया, या Windows Server 2019 या नया। PC 64-बिट (x64 या ARM64) होना चाहिए। Anthropic के ट्रबलशूटिंग पेज के मुताबिक़ 32-बिट Windows सपोर्टेड नहीं है।
  • हार्डवेयर: 4 GB या ज़्यादा RAM।
  • नेटवर्क: इंटरनेट कनेक्शन। Claude Code, Anthropic के सर्वर से काम करता है, इसलिए यह ऑफ़लाइन नहीं चलता।
  • शेल: Windows पर PowerShell या Command Prompt (CMD)।
  • लोकेशन: Anthropic की सपोर्टेड देशों की सूची वाला देश। भारत इस सूची में है।
  • अकाउंट: Claude का Pro, Max, Team या Enterprise प्लान, या Anthropic Console (API) अकाउंट। Anthropic साफ़ लिखता है कि Claude के फ़्री प्लान में Claude Code शामिल नहीं है। कंपनियाँ इसे Amazon Bedrock, Google Cloud's Agent Platform या Microsoft Foundry से भी जोड़ सकती हैं।

एडमिनिस्ट्रेटर अधिकार की ज़रूरत नहीं है। Git for Windows ज़रूरी नहीं है, पर Anthropic इसकी सलाह देता है: Git for Windows होने पर Claude Code अपने Bash tool के लिए Git Bash इस्तेमाल कर सकता है। इसके बिना Claude Code कमांड PowerShell से चलाता है।

PowerShell से Claude Code इंस्टॉल करें (सुझाया गया तरीका)

  1. Start मेन्यू खोलें, PowerShell लिखें और Windows PowerShell खोलें। जिस एंट्री के आख़िर में (x86) लिखा हो, उसे न खोलें, क्योंकि वह 32-बिट में चलती है। आपका प्रॉम्प्ट PS C:\Users\YourName> से शुरू होना चाहिए।
  2. यह कमांड पेस्ट करें और Enter दबाएँ: irm https://claude.ai/install.ps1 | iex
  3. इंतज़ार करें। Anthropic के मुताबिक़ डाउनलोड के दौरान इंस्टॉलर कोई प्रोग्रेस नहीं दिखाता, इसलिए विंडो शांत दिखे तो इसका मतलब यह नहीं कि वह अटक गया है।
  4. इंस्टॉल पूरा होने पर विंडो बंद करें और नई टर्मिनल विंडो खोलें। पहले से खुली विंडो पुराना PATH ही रखती है और नया कमांड नहीं ढूँढ पाती।
  5. claude --version चलाएँ। इंस्टॉल ठीक है तो एक वर्ज़न नंबर दिखेगा।
  6. जिस प्रोजेक्ट पर काम करना है, उसके फ़ोल्डर में जाएँ, जैसे cd D:\Projects\my-app, और claude चलाएँ।
  7. पहली बार Claude Code आपका ब्राउज़र खोलेगा ताकि आप अपने Claude अकाउंट से लॉग-इन कर सकें। ब्राउज़र न खुले तो टर्मिनल में c दबाकर लॉग-इन लिंक कॉपी करें और ख़ुद ब्राउज़र में पेस्ट करें।

कभी भी पूरी जाँच करनी हो तो claude doctor चलाएँ। यह सेशन शुरू किए बिना इंस्टॉल और सेटिंग्स की जानकारी दिखाता है।

Windows पर इंस्टॉल करने के दूसरे तरीके

  • Command Prompt (CMD): यहाँ प्रॉम्प्ट में "PS" के बिना C:\Users\YourName> दिखता है। यह चलाएँ: curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
  • WinGet: winget install Anthropic.ClaudeCode। WinGet वाला इंस्टॉल अपने-आप अपडेट नहीं होता, इसलिए बीच-बीच में winget upgrade Anthropic.ClaudeCode चलाते रहें।
  • WSL (Windows Subsystem for Linux): अपना WSL डिस्ट्रीब्यूशन खोलें और उसके अंदर Linux वाला इंस्टॉलर चलाएँ: curl -fsSL https://claude.ai/install.sh | bash। Anthropic की तालिका के मुताबिक़ सैंडबॉक्स में कमांड चलाने की सुविधा WSL 2 में है, नेटिव Windows या WSL 1 में नहीं।
  • बिना टर्मिनल के: Anthropic, Windows के लिए Claude desktop app भी देता है, जिससे आप Claude Code को ग्राफ़िकल विंडो में इस्तेमाल कर सकते हैं।

macOS और Linux पर यही curl -fsSL https://claude.ai/install.sh | bash कमांड नेटिव इंस्टॉलर है, और Homebrew इस्तेमाल करने वाले brew install --cask claude-code चला सकते हैं।

अपडेट कैसे होते हैं

PowerShell, CMD और Linux इंस्टॉलर एक "नेटिव" इंस्टॉल बनाते हैं, जो बैकग्राउंड में ख़ुद अपडेट होता है। नया वर्ज़न अगली बार Claude Code शुरू करने पर लागू होता है। तुरंत अपडेट करना हो तो claude update चलाएँ। WinGet और Homebrew वाले इंस्टॉल को हाथ से अपग्रेड करना पड़ता है।

इंस्टॉल की आम गड़बड़ियाँ और हल

  • 'irm' is not recognized: आप PowerShell में नहीं, Command Prompt में हैं। PowerShell खोलकर PowerShell वाला कमांड चलाएँ, या ऊपर दिया CMD कमांड इस्तेमाल करें।
  • The token '&&' is not a valid statement separator: आपने CMD वाला कमांड PowerShell में पेस्ट कर दिया। इसकी जगह irm https://claude.ai/install.ps1 | iex चलाएँ।
  • A parameter cannot be found that matches parameter name 'fsSL': आपने macOS/Linux वाला कमांड PowerShell में चलाया, जहाँ curl का मतलब कुछ और है। PowerShell वाला कमांड चलाएँ।
  • कमांड स्क्रिप्ट का टेक्स्ट दिखाता है और कुछ इंस्टॉल नहीं होता: आपने आधा कमांड चलाया। | iex समेत पूरी लाइन पेस्ट करें।
  • इंस्टॉल के बाद 'claude' is not recognized: पहले नई विंडो खोलें। फिर भी न चले तो Test-Path "$env:USERPROFILE\.local\bin\claude.exe" से देखें कि प्रोग्राम मौजूद है। जवाब True आए तो फ़ोल्डर PATH में नहीं है: Windows सेटिंग्स से Environment Variables खोलें, अपने User PATH में %USERPROFILE%\.local\bin जोड़ें और टर्मिनल दोबारा शुरू करें।
  • Claude Code does not support 32-bit Windows: शायद आपने Windows PowerShell (x86) खोला था। उसे बंद करें, बिना "(x86)" वाला Windows PowerShell खोलें और इंस्टॉलर फिर चलाएँ। अगर आपका Windows सच में 32-बिट है, तो Claude Code उस पर नहीं चलेगा।
  • The process cannot access the file ... because it is being used by another process: कोई दूसरी इंस्टॉलर विंडो या एंटीवायरस स्कैन डाउनलोड को पकड़े हुए है। दूसरी PowerShell विंडो बंद करें, एक मिनट रुकें, फिर Remove-Item -Recurse -Force "$env:USERPROFILE\.claude\downloads" चलाकर दोबारा इंस्टॉल करें।
  • claude लिखने पर desktop app खुल जाता है: Claude Desktop के पुराने वर्ज़न ने अपना Claude.exe रजिस्टर कर रखा है। Anthropic के मुताबिक़ इसका हल है Claude Desktop को नए वर्ज़न पर अपडेट करना।
  • लॉग-इन के बाद API Error: 403: claude.ai/settings पर देखें कि आपका Pro या Max सब्सक्रिप्शन चालू है। Console अकाउंट पर एडमिन को आपको "Claude Code" या "Developer" रोल देना होगा।

Claude Code सिर्फ़ Anthropic के अपने कमांड या claude.com से ही लें। जो साइटें "Claude Code setup.exe" बाँट रही हैं, वे Anthropic की नहीं हैं। देखें: नकली डाउनलोड साइटें कैसे पहचानें।

Frequently asked questionsअक्सर पूछे जाने वाले सवाल

Is Claude Code free?
The tool installs for free, but using it needs a Claude Pro, Max, Team or Enterprise plan or an Anthropic Console account. Anthropic's docs say the free Claude plan does not include Claude Code.
क्या Claude Code फ़्री है?
टूल इंस्टॉल करना फ़्री है, लेकिन इसे इस्तेमाल करने के लिए Claude का Pro, Max, Team या Enterprise प्लान या Anthropic Console अकाउंट चाहिए। Anthropic के दस्तावेज़ों के मुताबिक़ Claude के फ़्री प्लान में Claude Code शामिल नहीं है।
Do I need administrator rights to install Claude Code on Windows?
No. Anthropic says you don't need to run the PowerShell or CMD installer as Administrator. It installs under your user profile.
क्या Windows पर Claude Code इंस्टॉल करने के लिए एडमिन अधिकार चाहिए?
नहीं। Anthropic के मुताबिक़ PowerShell या CMD इंस्टॉलर को Administrator के रूप में चलाने की ज़रूरत नहीं है। यह आपकी यूज़र प्रोफ़ाइल में इंस्टॉल होता है।
Do I need Git for Windows?
It's optional. With Git for Windows, Claude Code uses Git Bash for its Bash tool. Without it, Claude Code runs shell commands through PowerShell.
क्या Git for Windows ज़रूरी है?
ज़रूरी नहीं है। Git for Windows होने पर Claude Code अपने Bash tool के लिए Git Bash इस्तेमाल करता है। इसके बिना Claude Code शेल कमांड PowerShell से चलाता है।
Will Claude Code run on Windows 7 or 32-bit Windows?
No. Anthropic lists Windows 10 version 1809 or later (or Windows Server 2019 or later) on a 64-bit x64 or ARM64 PC.
क्या Claude Code, Windows 7 या 32-बिट Windows पर चलेगा?
नहीं। Anthropic ने 64-बिट x64 या ARM64 PC पर Windows 10 version 1809 या नया (या Windows Server 2019 या नया) लिखा है।

Sources

More guides

↑ ↓ to move · Enter to open · Esc to close