claude: command not found after install. Fix your PATH
Installation usually succeeded. Add ~/.local/bin (Windows: %USERPROFILE%\.local\bin) to PATH, open a new terminal, then confirm with which or where. Short answer: 5 steps. 1) Confirm the binary exists before you reinstall; 2) See whether the install folder is already on PATH; 3) Add ~/.local/bin (or .local\bin) permanently; 4) Reload editor terminals and check for conflicting installs; 5) Verify with doctor, then resume work.
Last updated: · This page is the decision checklist; the tools list for “Fix Claude Code “command not found”” is a separate URL.
How do I add ~/.local/bin to PATH when claude: command not found?
Confirm the binary exists before you reinstall
On macOS/Linux check `ls -la ~/.local/bin/claude`. On Windows PowerShell check `Test-Path "$env:USERPROFILE\.local\bin\claude.exe"`. If the file is missing, you only installed the VS Code extension (it does not put `claude` on PATH)—run the standalone installer from Anthropic’s setup docs. Troubleshoot install: https://code.claude.com/docs/en/troubleshoot-install
See whether the install folder is already on PATH
macOS/Linux: `echo $PATH | tr ':' '\n' | grep -Fx "$HOME/.local/bin"`. Windows PowerShell: `$env:PATH -split ';' | Select-String '\.local\\bin'`. No output means PATH is the problem, not a broken download.
Add ~/.local/bin (or .local\bin) permanently
zsh: `echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc` then `source ~/.zshrc`. bash: same line into `~/.bashrc` (or `~/.bash_profile` on some macOS setups). Windows PowerShell: append `$env:USERPROFILE\.local\bin` to your User PATH with `[Environment]::SetEnvironmentVariable`, then open a new terminal. Official steps: https://code.claude.com/docs/en/troubleshoot-install
Reload editor terminals and check for conflicting installs
Integrated terminals in VS Code/Cursor inherit the editor’s environment—quit and reopen the editor after PATH changes. Run `which -a claude` (or `where.exe claude` on Windows). If several binaries appear, remove or rename stale npm/Homebrew copies so the native `~/.local/bin/claude` wins.
Verify with doctor, then resume work
In a fresh shell run `claude --version` and `claude doctor`. If updates fail with Release verification errors instead, rerun `claude update` / `claude install` per the same troubleshooting page—not a PATH fix. General troubleshooting index: https://code.claude.com/docs/en/troubleshooting
Which tools are best to fix Claude Code “command not found”?
Troubleshoot installation and login
Official PATH fixes for command not found / not recognized after a native install.
Set up Claude Code
Standalone install steps when only the editor extension is present.
Troubleshooting index
Routes install/PATH issues vs runtime problems; points to claude doctor.
Claude Code
Product entry point for CLI install options.
Open: 1 spot per week
One labeled sponsor for this topic each week; this week's spot is open. See open weeks →
All tools for “Fix Claude Code “command not found”” →
Related fixes
- Stop a Cursor agent loopHow to fix a Cursor agent loop (same edit, or work after Stop)Fix →
- Claude Code vs Codex vs Cursor ~$20 plansClaude Code vs Codex vs Cursor $20 plan limits: how to pick without burning the weekFix →
- Scan a vibe-coded app for leaked API keysCheck a vibe-coded app for leaked API keys before you share itFix →
- Add an MCP server to Claude Code, Cursor, or CodexHow to add an MCP server to Claude Code, Cursor, or CodexFix →
See also AI tools launched today on the daily board.
NewAIToolsToday Daily
Top 3 AI launches, one model or news item that matters, and one simple fix. A 5-minute read, every weekday.