Troubleshooting
Fix high CPU or memory usage, hangs, auto-compact thrashing, and search problems in Claude Code, and find the right page for other issues.
This page covers performance, stability, and search problems once Claude Code is running. For other issues, start with the page that matches where you're stuck:
| Symptom | Go to |
|---|---|
command not found, install fails, PATH issues, EACCES, TLS errors | Troubleshoot installation and login |
Update or install download fails with The connection dropped while downloading the update or aborted | Error reference |
Login loops, OAuth errors, 403 Forbidden, "organization disabled", Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry credentials | Troubleshoot installation and login |
| Settings not applying, hooks not firing, MCP servers not loading | Debug your configuration |
| Session started in auto mode, or Claude edits files and runs commands without asking | Which mode a session starts in |
API Error: 5xx, 529 Overloaded, 429, request validation errors | Error reference |
model not found or you may not have access to it | Error reference |
| VS Code extension not connecting or detecting Claude | VS Code integration |
Claude Code process exited with code 1 in VS Code or an SDK app | Error reference |
| JetBrains plugin or IDE not detected | JetBrains integration |
| High CPU or memory, slow responses, hangs, search not finding files | Performance and stability below |
If you're not sure which applies, run /doctor inside Claude Code for an automated check of your installation, settings, extensions, and context usage; it proposes fixes it can apply after you confirm. If claude won't start at all, run claude doctor from your shell instead. Run /mcp to check MCP server status.
Performance and stability
These sections cover issues related to resource usage, responsiveness, and search behavior.
High CPU or memory usage
Claude Code is designed to work with most development environments, but may consume significant resources when processing large codebases. If you're experiencing performance issues:
- Use
/compactregularly to reduce context size. If it returnsNot enough messages to compact., the conversation has too few turns to summarize; that can happen even with a full context when a single large paste filled it - Close and restart Claude Code between major tasks
- Consider adding large build directories to your
.gitignorefile - Restart with
claude --safe-modeto check whether a plugin, MCP server, or hook is the source. It disables all customizations for the session; if usage drops, see Debug your configuration to find which one