Claude not working in Terminal? Start with the exact symptom. If your shell says claude is not found, check the installation and PATH. If the command starts but cannot sign in, check authentication and service status. If it works outside one repository, inspect that project’s configuration. These paths have different fixes; reinstalling everything is rarely the first useful step.
Anthropic recommends claude --version after installation and claude doctor when the command runs but has setup problems. If the shell cannot find claude, check the documented install location and PATH before trying doctor. The nine checks below also separate network, account, and project-only failures.

Table of Contents
Table of contents
What Claude not working in terminal means
Terminal failures include “command not found,” startup crashes, OAuth loops, network errors, permission prompts and project-only failures. Claude Code installation, shell discovery, stored credentials, provider status and project configuration are separate layers. The first error is the best route: “command not found” is a local command-discovery problem, while a 403 or 529 after launch points elsewhere.
Claude Code supports macOS, Windows, and several Linux distributions, with Bash, Zsh, PowerShell, and CMD listed in Anthropic’s current requirements. An organization may control installation, authentication, proxies, and project permissions. Use its administrator’s process where applicable.
Symptoms and diagnostic checklist
Record the shell, operating system, installation method, command entered, and first error. Does claude --version print a version? Does the interactive session start? Does login complete? Does the same command work in an empty local directory? Those answers separate installation, authentication, service, and project state.
- The shell reports claude command not found.
- Claude starts but exits immediately.
- Browser authentication never returns to the terminal.
- Claude works in one shell or folder only.
- Requests fail while Anthropic status or network access is degraded.
Quick checks
- Run claude –version.
- If
claudeis recognized, runclaude doctor; otherwise skip to the PATH check. - Identify the installation method.
- Check Anthropic Status.
- Test an empty local folder.
- Record the shell, OS and exact first error.
Check Anthropic’s status page only if the command launches and requests fail. A global outage will not make a locally missing executable appear in PATH. Conversely, a working version command does not prove that your account or network can reach Anthropic services.
Before you change anything
Before reinstalling, record whether the native, npm, Homebrew, WinGet, or other documented install method was used. Keep your project under version control and back up local settings before changing them. Do not delete ~/.claude, project files, or authentication material just to test a PATH error.
Use Anthropic’s current installer and troubleshooting pages. A diagnostic report can contain usernames, project paths, settings, account details, or tokens; redact them before sharing. Never post an OAuth code, API key, or private source code in a public issue.
Claude not working in terminal: step-by-step fixes
Choose the step matching the first failure. If the command is missing, go straight to PATH and installation. If it launches, use doctor and account checks. If it works in an empty directory but fails in one project, inspect that project without changing a healthy global installation.
1. Check Anthropic status and system requirements
Compare your operating system, architecture, available memory, shell, and network with Anthropic’s current requirements. Check the Claude Code component on the status page when requests fail after launch. If the command is not found, a status incident is not the explanation; continue to the local installation checks.
- Open Anthropic Status.
- Compare OS, shell, memory and network with current requirements.
- Wait or move to a supported environment when needed.
Expected result: The provider and platform baseline is confirmed.
Safety or rollback: Do not use unofficial binaries.
2. Use claude doctor and version output
If claude launches, run claude --version and claude doctor from your shell. Anthropic recommends /doctor inside a running session and claude doctor when the session will not start. If the command itself is missing, find the executable and fix PATH first.
- Run claude –version.
- Run claude doctor.
- Save the non-sensitive diagnostic result.
Expected result: The failing installation or environment layer is named.
Safety or rollback: Redact paths and account details before sharing output.
3. Fix PATH and shell command discovery
Anthropic documents the native binary at ~/.local/bin/claude on macOS/Linux and %USERPROFILE%\.local\bin\claude.exe on Windows. Check whether that file exists, then open a new terminal so it reads the current PATH. Add only the documented install directory if it is missing; the VS Code extension’s private binary does not count as a standalone CLI installation.
- Locate the official claude executable.
- Open a new terminal and inspect PATH.
- Add only the documented install directory, then retest.
Expected result: The same official binary runs by name.
Safety or rollback: Do not add broad writable directories to PATH.
4. Update or reinstall with the official method
More than one installation can make the shell run an older binary. Compare the command path with the method you intended to use. Anthropic currently recommends its native installer and documents platform-specific update methods. Reinstall only after identifying a missing or damaged installation; avoid deleting settings or using sudo npm install -g as a general repair.
- Identify and remove only the obsolete duplicate installation.
- Install or update using Anthropic’s current documented command.
- Open a new shell and confirm the path and version.
Expected result: One current Claude Code installation remains.
Safety or rollback: Avoid sudo npm install -g when Anthropic warns it can cause permission problems.
5. Refresh authentication safely
If the program starts but sign-in fails, identify whether you use claude.ai, Claude Console, or a managed cloud provider. Anthropic documents browser login for individuals and distinct environment settings for cloud providers. Use the official login flow or your organization’s process; a 403 may mean access is not granted, not simply that the local cache is stale.
- Use the Claude Code logout command or account menu.
- Start Claude and complete official browser authentication.
- Return to the initiating terminal and test a simple prompt.
Expected result: The terminal receives a valid session.
Safety or rollback: Never paste OAuth codes or API keys into chat or screenshots.
6. Test a supported shell and clean project
Compare a supported shell in an empty local directory with the same command in the failing project. If the clean directory works, examine that project’s settings, hooks, MCP configuration, and permissions. A clean directory does not rule out global shell startup or account settings, so use the first error and doctor output as well.
- Open Bash, Zsh, Fish or the documented Windows environment.
- Create an empty local test directory.
- Run Claude without project hooks and compare.
Expected result: The failure is isolated to shell or project configuration.
Safety or rollback: Do not delete the original project configuration.
7. Check proxy, certificates and firewall
Anthropic’s installer uses downloads.claude.ai, and a running session needs access to Anthropic services or your organization’s configured provider. A timeout, TLS error, or 403 during install has a different remedy from a local PATH failure. On managed networks, ask IT to review the documented endpoints and trusted certificates rather than bypassing controls.
- Review proxy environment variables.
- Test on another approved network.
- Ask IT to inspect blocked Anthropic endpoints or certificate errors.
Expected result: A network-specific failure is documented.
Safety or rollback: Do not bypass managed security or install untrusted certificates.
8. Review project permissions and configuration
If the problem occurs in one repository, review its Claude settings and hooks in version control. Save a copy before disabling a suspect entry, test once, then restore or repair the exact rule. Do not delete the whole configuration or uncommitted work; a global reinstall will not fix a project-specific hook.
- Inspect Claude project settings and recent changes.
- Temporarily rename only the suspect configuration with a backup.
- Retest and restore sections one at a time.
Expected result: A project-specific rule is isolated.
Safety or rollback: Preserve version control and never delete uncommitted work.
9. Collect a minimal support report
When the supported setup still fails, gather the first redacted error, claude --version, doctor summary, install method, operating system, and whether the same command works in a clean directory. Anthropic documents /feedback inside Claude Code and account support through the signed-in help route.
- Record Claude version, OS, shell and timestamp.
- Include claude doctor results and first redacted error.
- Use Anthropic’s official support route.
Expected result: Support receives a reproducible case.
Safety or rollback: Exclude prompts, source code, tokens and private paths.
Troubleshooting decision table
| What you observe | Likely layer | Best next action |
|---|---|---|
| Command not found | PATH/installation | Locate the official binary. |
| Starts in one shell only | Shell profile | Compare startup configuration. |
| Works outside repository | Project config/hooks | Audit project settings. |
| Authentication loop | Credentials/browser handoff | Log out and authenticate once. |
| All users affected | Anthropic service | Wait for recovery. |
Use the Claude command not found table to avoid repeating steps that cannot affect the observed layer. If two rows fit, begin with the one that preserves the most data and settings.
When these fixes will not help
- A genuine Claude Code service incident requires provider recovery.
- An organization can restrict Claude Code access or mandate a cloud-provider credential path.
- An unsupported OS or architecture requires a supported environment.
- A project-only hook or permission problem needs a project configuration change, not a global reinstall.
Escalate through Anthropic’s official support or your organization’s administrator when the documented checks reproduce the same failure. Include exact command output after redaction and the branch you followed: missing command, login, network, or project-only. That makes a support request actionable without exposing private code.
Prevention
- Use one documented installation method and know which executable your shell runs.
- Keep the CLI updated through its official channel.
- Keep project settings and hooks under version control.
- Record required proxy and certificate settings for managed networks.
- Keep a safe account recovery route without storing tokens in project files.
These habits cannot prevent a provider incident, but they make installation and project configuration faults easier to isolate without destructive resets.
Frequently asked questions
Why does my shell say “claude: command not found”?
The standalone CLI may not be installed, its directory may be missing from PATH, or the terminal may need to reopen after installation. The VS Code extension does not add a standalone claude command to PATH.
What is the difference between doctor commands?
Run /doctor inside a working Claude Code session. Run claude doctor from the shell when a session will not start but the command is recognized. Neither command can run until PATH finds the CLI.
Why does Claude work outside my repository?
A project setting, hook, MCP configuration, or permission may be involved. Compare the first error in the repository with an empty local directory, then inspect only the relevant project files.
Should I reinstall when login fails?
First check service status, your account type, and the official authentication flow. Reinstalling the executable usually does not grant access to a restricted account or repair a provider outage.
Official sources and related guides
The technical claims for Claude command not found were checked against the primary vendor resources below. Interfaces, availability and policies can change, so use the current vendor page if a label differs.
- Anthropic Claude Code setup
- Anthropic: troubleshoot installation, PATH and login
- Anthropic: Claude Code setup and system requirements
- Anthropic: Claude Code authentication
- Claude Code service status
Continue with these contextual TrueFixGuides resources:
In summary, diagnose Claude not working in Terminal from the first error. A missing command calls for installation and PATH checks; a launched CLI with login or network failure needs account and service checks; a repository-only failure points to its configuration. Keep the original project and settings intact while you compare these paths.


