Part of the guide: What is Claude Code? What it does, what it costs, and how to start
Claude Code not working? Find your error message and the fix
In short
- First check status.claude.com for an outage, then open a new terminal window and run
claude --versionandclaude doctor(it only reads and prints). - "command not found: claude" means the install folder is not on your PATH; a new window or two PATH lines fix it.
- "You've hit your session limit" is your plan's limit; "529 Overloaded" and "Server is temporarily limiting requests" come from Anthropic's side and do not count against your quota.
- Inside a session,
/doctorchecks the install and settings and proposes fixes it applies only after you confirm.
When Claude Code is not working, check three things in this order: whether Anthropic has an outage (status.claude.com), whether the program starts (claude --version in a new terminal window), and what the exact error message says. Most problems in the first week are one of six: command not found, the wrong install command on Windows, sign-in, usage limits, server overload, or a session that hangs. Find your message below.
Checked on 18 November 2026 against Anthropic's installation troubleshooting and error reference pages.
The 60-second check
- Look at status.claude.com. If there's an incident, wait it out; reinstalling won't help.
- Open a new terminal window and type
claude --version. A number followed by(Claude Code)means the program is installed. - Type
claude doctor. It prints the state of your install and settings, with suggested fixes, and changes nothing. - Copy the exact error message. The words decide which fix applies.
Find your error
| What you see | Jump to |
|---|---|
command not found: claude, 'claude' is not recognized |
1. Not on PATH |
'irm' is not recognized, The token '&&' is not a valid statement separator, parameter name 'fsSL' |
2. Wrong command on Windows |
syntax error near unexpected token '<', 403 during install, App unavailable in region |
3. Install download fails |
OAuth error: Invalid code, API Error: 403 Request not allowed, asked to log in again |
4. Sign-in |
You've hit your session limit, You've hit your weekly limit |
5. Your usage limit |
529 Overloaded, Server is temporarily limiting requests, 500 Internal server error |
6. Anthropic's servers |
Unable to connect to API |
7. Network |
| Claude keeps thinking, nothing changes | 8. Stuck session |
| Claude talks about the wrong files | 9. Wrong folder |
| Claude edits files without asking | 10. Permission mode |
1. "command not found: claude"
| System | The message |
|---|---|
| Mac | zsh: command not found: claude |
| Linux | bash: claude: command not found |
| Windows CMD | 'claude' is not recognized as an internal or external command |
| Windows PowerShell | claude : The term 'claude' is not recognized as the name of a cmdlet |
Cause: the install worked, but its folder is not on your PATH, the list of folders where your computer looks for programs. The installer puts claude in ~/.local/bin on Mac and Linux and in %USERPROFILE%\.local\bin on Windows.
Fix on a Mac: open a new window first. If it still fails, run these two lines, then open another new window:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
Fix on Windows (PowerShell): open a new window first. If it still fails:
$currentPath = [Environment]::GetEnvironmentVariable('PATH', 'User')
[Environment]::SetEnvironmentVariable('PATH', "$currentPath;$env:USERPROFILE\.local\bin", 'User')
Never installed it? Follow install on Mac or install on Windows.
2. The wrong install command on Windows
Windows has two command windows with different install commands. PowerShell lines start with PS C:\; CMD lines start with just C:\.
'irm' is not recognized: you are in CMD with the PowerShell command. Open PowerShell (Win + X).The token '&&' is not a valid statement separator: you are in PowerShell with the CMD command.A parameter cannot be found that matches parameter name 'fsSL': you pasted the Mac/Linux command into PowerShell.
The right commands are in install Claude Code on Windows. You do not need Administrator rights.
3. The install download fails
syntax error near unexpected token '<'(or HTML in a PowerShell error): the command downloaded a web page instead of the install script.curl: (22) The requested URL returned error: 403: the download was refused.App unavailable in region: Claude Code is not offered in your country; see Anthropic's supported countries.
For each exact message, the Find your error table gives the fix and other ways to install.
4. Sign-in problems
Claude Code needs a Pro, Max, Ultra, Team, Enterprise or Console account. The free Claude plan does not include it; see is Claude Code free.
OAuth error: Invalid code: the login code expired or was cut off when copied. Press Enter to retry and finish quickly once the browser opens. If the browser does not open, presscto copy the login link and paste it into a browser yourself.API Error: 403 Request not allowedafter you sign in: on Pro, Max or Ultra, check that your subscription is active at claude.ai/settings. A company proxy can also cause it.- Sign-in keeps failing: type
/logout, close Claude Code, start it again withclaudeand sign in from scratch.
Never send anyone your sign-in code.
5. You hit your usage limit
You see You've hit your session limit · resets 3:45pm or You've hit your weekly limit · resets Mon 12:00am. Your plan's limit is used up until the time shown. Type /usage to see what you used and when it resets. What the limits are and how to stretch them: Claude usage limits.
6. Anthropic's servers are busy
API Error: Repeated 529 Overloaded errors: the service is at capacity. This is not your limit and does not count against your quota.API Error: Server is temporarily limiting requests (not your usage limit): a short throttle on Anthropic's side.API Error: 500 Internal server error: usually temporary.
Claude Code retries these automatically. If they keep coming, check status.claude.com and try again later.
7. "Unable to connect to API"
The connection to Anthropic failed. Check your internet connection. On a work network, a firewall, proxy or VPN can block it. The message usually says what failed; a refused connection often means a firewall or proxy is in the way. Anthropic's network configuration page covers proxies.
8. The session seems stuck
- Press
Escto stop Claude, orCtrl+Cto cancel the current operation. - If nothing responds, close the terminal, open a new one in the same folder and run
claude --continueto pick up the conversation in a fresh process. - In a very long conversation,
/compactsummarizes it and frees up room in the context.
9. Claude works on the wrong files
Claude Code works on the folder you start it in. The folder name shows above the input line when it starts. If it is wrong, type /exit, cd into the right folder and run claude again.
10. Claude edits files without asking
That is expected in recent versions: since 2.1.283, terminal sessions start in auto mode, where a second model reviews actions instead of you. Press Shift+Tab until you see manual mode on, or start with claude --permission-mode manual. Made a change you don't want? /rewind takes the code and conversation back.
In the desktop app
- The Code tab asks you to upgrade: the account has no paid plan.
- A 403 error in the Code tab: see the desktop authentication section.
- The Code tab runs its own copy of Claude Code, separate from the terminal one. Fixing the terminal install does not change it; update the app instead. More in desktop vs CLI.
None of these?
- Start Claude Code and type
/doctor. It checks the install, settings and extensions and proposes fixes, applied only after you confirm. - Search the words of your message in the troubleshooting page's table.
- Report a bug from inside Claude Code with
/feedback. For billing or account issues, use Get help in claude.ai.
How you know it works
It is fixed when, in a new window, claude --version prints a number, claude opens in the right folder, and Claude answers "what files are in this folder?". New to the tool? The Claude Code guide has the whole picture.
Still stuck on an error not listed here? Ask about it in my WhatsApp community, Team of One, where readers figure out AI tools side by side.
Questions
Is Claude Code down right now?
Check status.claude.com, the status page that Claude Code's own error messages point to. If there is an incident, wait; reinstalling will not help.
Why is `claude` not found after installation?
Usually the terminal window was open before the install. Open a new one and type claude --version. If it still fails, the install folder (~/.local/bin on Mac and Linux, %USERPROFILE%\.local\bin on Windows) is not on your PATH; the fix is below.
Does a 529 Overloaded error use up my plan?
No. The official error reference says a 529 is not your usage limit and does not count against your quota. Claude Code retries it automatically.
What is the difference between `claude doctor` and `/doctor`?
You run claude doctor in the terminal without starting a session: it prints a read-only report. You type /doctor inside Claude Code: it checks the install, settings and extensions, and proposes fixes that Claude applies only after you confirm.
Do I need to reinstall?
Rarely. Start with a new window, claude doctor and the table below. Reinstall only if the troubleshooting page tells you to.
Sources
- code.claude.com: installation and login errors: the Find your error table; command not found and not recognized; ~/.local/bin and the PATH fix; wrong install command on Windows; 403 and HTML instead of the script; App unavailable in region; OAuth error: Invalid code; 403 Request not allowed; /logout and /login; press c to copy the login URL, checked 18 November 2026
- code.claude.com: symptom to page table; /doctor in a session, claude doctor from the shell; high memory and claude --continue; /compact, checked 18 November 2026
- code.claude.com: error reference: You've hit your session limit / weekly limit; Server is temporarily limiting requests (not your usage limit); Repeated 529 Overloaded errors, not your usage limit; 500 Internal server error; status.claude.com; Unable to connect to API, checked 18 November 2026
- code.claude.com: claude --version, claude doctor, claude update; account types; the free plan does not include Claude Code, checked 18 November 2026
- code.claude.com: which mode a session starts in: auto from v2.1.283, checked 18 November 2026
- code.claude.com: the prompt shows the version, the model and the working folder, checked 18 November 2026
- code.claude.com: Desktop Code tab: prompt to upgrade, 403 error; the Code tab runs its own copy of Claude Code, checked 18 November 2026
Free WhatsApp community
Learning AI? Learn it on real work.
In “Team of one” I post what I actually tried on my own work. Most of it is in Romanian, but ask in English any time and we will work it out together.
Join the community