Last updated: ยท Applies to: Claude Code VS Code extension; nonzero process exits
Claude Code process exited with code 1: find the real error
Error: Claude Code process exited with code 1. means the underlying Claude process exited unsuccessfully. Code 1 alone does not identify the cause. The official error reference directs you to View output logs, run claude in the same project and use claude doctor.
Separate the wrapper from its cause
Installation, authentication, configuration and platform errors can surface through this wrapper. Read the first specific failure before the final exit line. A historical October 2025 Windows report used VS Code 1.104.2 and extension 2.0.2 and described a startup/authentication failure. It is evidence of that report, not a current regression or proof every code 1 requires signing in.
Diagnose and repair in order
Read View output logs first
Open View output logs in the error notification. Record the first actionable error, timestamp, extension version, OS and whether the project is local, WSL, SSH or a container. A final process-exit line is a consequence; look earlier for the named executable, file, authentication response or platform mismatch.
Compare the same project and environment
If a standalone CLI is installed, open a terminal in that project and the same execution environment. Run:
claude claude doctorRun
claude doctorafter leaving the interactive session. The official troubleshooting guide uses doctor to diagnose installation health. Compare its findings and the terminal error with the extension log before choosing a repair.Interpret a missing terminal command correctly
The VS Code documentation explains that the chat panel bundles a CLI, while terminal use needs a separate installation. Terminal
claudebeing unavailable does not prove the bundled executable is missing. For the exact Windows terminal-mode message, follow Could not locate the Claude CLI on PATH.Fix only the underlying failure you found
If the log reports expired authentication, use
/loginin a working Claude session and retry. For invalid configuration, back up and repair only the named file, then recheck its syntax. For an executable or platform mismatch, use the correct extension package for the host described in the official executable/platform error reference. A PATH failure needs a PATH repair, not an assumed account reset. Do not delete.claudeor apply blanket API-key, sudo or safety-bypass advice.Update the component that failed
Update the extension through its extension manager. Update a separately installed CLI using its own installation method, following official setup. Updating one does not prove the other changed. Completely restart the editor, reopen the same project and send a small prompt.
Distinguish diagnosis from recovery
Confirm that the process stays open and returns a response. If it still exits, report the first specific error and doctor findings, not just code 1. Remove tokens, account details, private paths and project content from shared logs.
FAQ
Does exit code 1 always mean authentication failed?
No. It only reports a nonzero process exit. Read View output logs for the underlying error and use /login only when the evidence points to expired authentication.
Why can the panel exist when terminal claude is missing?
The VS Code chat panel bundles a CLI. A shell command requires a separate standalone installation, so a missing terminal command does not prove the bundled CLI is absent.
What confirms the repair worked?
Restart the editor, open the same project and send a small prompt. The process must stay open and return a response; a changed log message alone does not confirm recovery.
Sources
This is an independent, unofficial help site. It is not affiliated with or endorsed by Anthropic or OpenAI. Check the linked documentation and reports for your environment.