Claude Code Not Working? Every Error and Its Fix
Every Claude Code error I've written up, grouped by what actually broke: network and enterprise setup, cost and context limits, or setup and tools. Find your exact message in the lookup table, get the one-line answer, then follow the link to the full fix.
When Claude Code stops working, the exact error text tells you which of three problems you have: something in the network path (a proxy, gateway or cloud project), a cost or context limit, or a setup and tooling problem. Find your message in the lookup table below, read the one-line answer, and follow the link for the full fix.
If you don't have an error message at all, run /doctor inside Claude Code. Anthropic's troubleshooting docs describe it as an automated check of your installation, settings, extensions and context usage, and it proposes fixes it can apply after you confirm. If claude won't start, run claude doctor from your shell instead.
Each entry below links to a post that covers that error or symptom in full. Reinstalling fixes very few of them, so read the message before you reinstall anything.
Last reviewed 13 November 2026, against Claude Code 2.1.323.
Find your error: symptom → fix
| What you see | What it usually means | Full fix |
|---|---|---|
| claude.ai down, Claude Code or Console partially unavailable | An Anthropic incident; check status.claude.com. In a sign-in outage (like 13 Nov 2026, with Failed to authenticate. API Error: 403 Attention Required! | Cloudflare) an API key keeps Claude Code working; when the Claude API is affected too, it does not | Claude down: the 13 Nov outages and what to do |
SSL certificate verification failed (UNABLE_TO_GET_ISSUER_CERT_LOCALLY) | A TLS-inspecting proxy re-signs your traffic with a root Claude Code can't read | SSL errors behind a corporate proxy |
SSL certificate verification failed (UNABLE_TO_GET_ISSUER_CERT) | A leftover CA certificate from a renewal on your machine; the 2.1.304 bug behind it is fixed in 2.1.310 | UNABLE_TO_GET_ISSUER_CERT, and the 2.1.304 fix |
Self-signed certificate detected (SELF_SIGNED_CERT_IN_CHAIN) | Same cause: the proxy's self-signed root isn't in any store Claude Code uses | SSL errors behind a corporate proxy |
CERT_NOT_YET_VALID or ERR_TLS_CERT_ALTNAME_INVALID | A clock or proxy-rule problem, not a missing CA | SSL errors behind a corporate proxy |
Not logged in · Please run /login | No credential this session can use: no saved login, or a key that isn't reaching Claude Code | Not logged in or login expired |
Login expired · Please run /login or Login reached its time limit | Renewing your claude.ai login failed, or it hit its fixed end date; retrying never helps | Not logged in or login expired |
There's an issue with the selected model (…) | Usually any HTTP 404: a typo, an extra /v1, or a proxy's error page | It's usually just a 404 |
model not found on Google Cloud's Agent Platform (Vertex AI) | Often the wrong project: ANTHROPIC_VERTEX_PROJECT_ID wins | Claude Code on Vertex AI |
| Vertex AI bill suddenly at the Opus rate | No pinned primary model | Claude Code on Vertex AI |
| Hitting your usage limit before lunch | Every turn resends the whole conversation | Why Claude Code uses so many tokens |
Compacted using a summary written while you were away (or Compacted while idle, before the prompt cache expired) | Idle compaction, a cost-saving feature switched on server-side | Compacted while you were away |
API Error: Repeated 529 Overloaded errors | API capacity, not your quota; already retried | 529 overloaded |
API Error: Server is temporarily limiting requests (not your usage limit) or API Error: Request rejected (429) | A 429 rate limit: a short server throttle on a subscription, or your API key's or project's limit; not your quota | Claude Code error 429 |
You've hit your session limit · resets … | A usage limit shared across all models | 529 overloaded: session limits |
Unknown command: /limit-reset, or a free reset to use | /limit-reset is hidden and switched on per account; use "Reset for free" in Settings > Usage | Claude limit reset |
API Error: Connection lost mid-response | Completed work was kept; reply continue | 529 overloaded |
Autocompact is thrashing: the context refilled to the limit... | Compaction worked; something refilled the context | Claude Code keeps compacting |
| Compacts far below the limit, or at the same low point every time | Idle compaction, or a small auto-compact window | Claude Code keeps compacting |
Search misses files on WSL, but claude doctor says OK | Cross-filesystem search returns fewer matches | Slow, hanging, or eating memory |
Raw mode is not supported | Git Bash, or piped stdin, not the install | Windows startup errors |
'claude' is not recognized | PATH, or a terminal opened before the install | Windows startup errors |
Claude Code does not support 32-bit Windows | You opened the PowerShell (x86) shortcut | Windows startup errors |
cannot execute binary file: Exec format error | WSL1 | Windows startup errors |
MCP server missing, ⏸ Pending approval or ✘ Failed to connect | The status names one of five problems | MCP server not showing up |
spawn npx ENOENT on Windows | Node refuses to spawn .cmd files directly | MCP server not showing up |
A mod does nothing, or hooks module did not load: … | Claude Code skips a mod that fails; claude plugin validate only reads the code | Claude Code mods |
Auto mode is now Claude Code's default permission mode., or sessions suddenly start in ⏵⏵ auto mode on | Since 2.1.283 auto mode is the starting mode; Shift+Tab or defaultMode turns it off | Claude Code auto mode: on, off or default |
auto mode is unavailable for your plan, auto mode disabled by settings or auto mode unavailable for this model | A circuit breaker, a managed setting, or an unsupported model; not your plan | Why auto mode is unavailable |
The server-side auto mode classifier gave no verdict | The safety check failed to answer; your command was never judged | Auto mode gave no verdict |
Not run · auto mode's check had no usable answer | The same failed safety check, as shown on a tool call that was skipped | Auto mode gave no verdict |
Auto-mode setup scan failed: The model call didn’t complete. | /auto-mode-setup lost its model request; nothing was saved | Auto-mode setup scan failed |
bwrap: No permissions to create new namespace, or --dangerously-skip-permissions cannot be used with root/sudo privileges | The sandbox can't start in a default container; the flag refuses root | Claude Code sandbox setup |
Claude Code deleted files, a project or ~ | /rewind misses files only rm touched; deny rules and hooks miss deletes inside scripts | Claude Code deleted my files |
We're changing auto mode to no longer charge for classifier requests … this session isn't eligible | A gateway drops the safety fields, so classifier checks stay billed | Auto mode classifier billing |
Your own MCP server connects, then a call fails with Connection closed | Output on stdout from a stdio server, such as text with no newline | Build a custom MCP server |
| Claude Code ignores a convention, or loads another team's rules | How CLAUDE.md files are discovered and loaded | Claude Code vs Cursor context management |
Network and enterprise
These errors mean Claude Code can't reach the model the way you think it can. Something sits in the middle (a TLS-inspecting proxy, an LLM gateway, a cloud project), and the error text hides which one. In this cluster, the error code is a better guide than the wording of the message.
SSL certificate verification failed
API Error: Unable to connect to API: SSL certificate verification failed (UNABLE_TO_GET_ISSUER_CERT_LOCALLY)A TLS-inspecting proxy such as Zscaler or Netskope is re-signing your traffic, so get its root into the OS trust store first (Claude Code reads that store by default) and set NODE_EXTRA_CA_CERTS only if your runtime can't read it. Since 2.1.316 the message also says when the server leaves out an intermediate certificate. → Claude Code SSL certificate verification failed: fix it by error code
The same intercepting proxy breaks other developer tools too. In Next.js it shows up as next/font failing to fetch Google Fonts. For npm, pip, git and curl, each reads trust from a different place: what each tool actually trusts.
There's an issue with the selected model
There's an issue with the selected model (claude-sonnet-5-5). It may not exist or
you may not have access to it. Run /model to pick a different model.In my tests on Claude Code 2.1.291, every HTTP 404 produced this message, whether the cause was a typo, an ANTHROPIC_BASE_URL ending in /v1 or a proxy's HTML error page, so run claude --debug and read the real request path and reply in ~/.claude/debug/. → Claude Code "There's an issue with the selected model": it's usually just a 404
Model not found on Vertex AI
model not foundCheck ANTHROPIC_VERTEX_PROJECT_ID first: it overrides GCLOUD_PROJECT, GOOGLE_CLOUD_PROJECT and the project in your credential file, so a 404 is often the wrong project rather than a disabled model. → Claude Code on Vertex AI: 404s, wrong regions and an Opus-sized bill
Security advisory: SneakPeek in Claude Code Desktop
Not an error message, but the question many teams are asking this week: SneakPeek was a preview-pane flaw in Claude Code Desktop that let a booby-trapped HTML file read local credentials, and it was fixed in Claude Desktop 1.30096.1 on August 17, 2026. If your Desktop app updates itself you already have the fix; on Windows, Get-AppxPackage -Name Claude shows the version. → Claude SneakPeek vulnerability: is your Claude Desktop patched?
Cost, context and limits
These problems usually don't stop Claude Code from running. They make it expensive or slow, or they throw away context. The fix is almost always to understand what is being sent, not to send it again.
Burning through tokens
The symptom is a usage limit that runs out far sooner than the number of messages you sent would suggest.
Every request carries your entire conversation, so a turn's cost is set by how much history sits behind it: run /usage to see where the tokens went, /context to see what's filling the window, and /clear (which is free) when you switch to unrelated work. → Why Claude Code uses so many tokens (and how to see where they go)
Limit resets and /limit-reset
A limit reset refills your usage right away without moving your weekly reset day; every Pro, Max, Ultra and Team account got one free full reset on 10 November 2026, usable until 10 December at 2:00 PM PT. Use it with "Reset for free" in Settings > Usage. Claude Code's /limit-reset is hidden and only runs when Anthropic has turned it on for your claude.ai account, otherwise it answers Unknown command: /limit-reset. → Claude limit reset: the free full reset, /limit-reset and what each reset refills
Compacted using a summary written while you were away
Compacted using a summary written while you were away · turn off with "idleCompaction": false in settings.jsonTerminal sessions may show Compacted while idle, before the prompt cache expired instead. Both are idle compaction, a cost-saving feature that summarises a long session around the time its one-hour prompt cache expires, and you can turn it off in /config on Claude Code 2.1.302 or later, or with "idleCompaction": false in your settings on 2.1.290 or later. → Claude Code "Compacted using a summary written while you were away"? How to turn idle compaction off
529 Overloaded
API Error: Repeated 529 Overloaded errors. The API is at capacity — this is usually
temporary. Try again in a moment. If it persists, check https://status.claude.com.A 529 doesn't count against your quota and Claude Code has already retried it up to ten times, so switch with /model (capacity is tracked per model) rather than retrying the same one. → Claude Code 529 overloaded: what it retries for you, and what it won't
429 rate limits
API Error: Server is temporarily limiting requests (not your usage limit)
API Error: Request rejected (429) · this may be a temporary capacity issue. If it persists, check https://status.claude.com.The first is a short server-side throttle on a claude.ai subscription or gateway sign-in; the second is the rate limit of your API key, Bedrock, Vertex AI or Foundry project. Neither is your plan's usage limit, and both were already retried up to ten times. Run fewer subagents and sessions at once, and for the second, check which credential /status shows. → Claude Code error 429: which message you have and how to fix it
The same post covers the look-alikes: You've hit your session limit (shared across all models, so /model won't help), Request timed out, and the CLAUDE_CODE_RETRY_WATCHDOG=1 setting for unattended runs.
Keeps compacting, or "Autocompact is thrashing"
Autocompact is thrashing: the context refilled to the limit...Four different causes look the same: idle compaction after a break, a small auto-compact window, something refilling the context right after each compaction, or an open bug. /context and /autocompact tell them apart. → Claude Code keeps compacting? Why it compacts early or loops
Slow, hanging, or eating memory
Check the silent failures first: on WSL, searching the Windows filesystem returns fewer matches while claude doctor still reports Search as OK, and a bundled ripgrep that won't run breaks search while claude doctor says OK. → Claude Code slow, hanging, or eating memory? Start with the silent failures
Auto mode classifier billing: "this session isn't eligible"
We're changing auto mode to no longer charge for classifier requests in Claude Code.
However, this session isn't eligible because your requests go through …Nothing is broken: the free server-side safety checks aren't reaching your session, usually because an LLM gateway drops the safeguards fields, so auto mode's classifier checks stay billed as token usage. Run /status to confirm, and note that CLAUDE_CODE_AUTO_MODE_SERVER=0 only hides the notice. → Claude Code auto mode billing: why "this session isn't eligible"
Setup, tools and agents
These errors come from the environment around Claude Code: the terminal it runs in, the MCP servers it starts, and the permission mode it works under. Most of them look like install failures and aren't.
Not logged in, or Login expired
Not logged in · Please run /login
Login expired · Please run /loginThe first means the session has no credential it can use; the second means renewing your claude.ai login failed and Claude Code cleared it. Both are fixed with /login, and since 2.1.318 claude auth status shows when your login ends (loginExpiresAt). For scripts and CI, claude setup-token prints a one-year token. → Claude Code "Not logged in" and "Login expired": what each means
Raw mode is not supported (and other Windows startup errors)
Raw mode is not supportedIt isn't an install failure: you either launched from Git Bash, which can't provide the TTY the interactive UI needs, or piped input into claude, so launch from PowerShell, or use claude -p "your prompt" for non-interactive runs. → Claude Code won't start on Windows? Match the error, not the guide
MCP server not showing up
claude mcp listRun claude mcp list before you edit any config, because the status next to each server (⏸ Pending approval, ✘ Failed to connect, connected with zero tools, or missing entirely) tells you which of five different problems you have. → MCP server not showing up in Claude Code? Read the status first
Auto mode is now the default (or "unavailable for your plan")
Auto mode is now Claude Code's default permission mode.From 2.1.283, terminal and VS Code sessions start in auto mode unless a flag or permissions.defaultMode says otherwise. Press Shift+Tab once to leave it, or set "defaultMode": "default" in ~/.claude/settings.json; "auto" only works from that user file, not a project's .claude/settings.json. "Unavailable for your plan" is the circuit-breaker message, not a plan limit. → Claude Code auto mode: turn it on, off or make it your default
Auto-mode setup scan failed
Auto-mode setup scan failed: The model call didn’t complete. This is usually temporary — re-run to try again./auto-mode-setup (added in 2.1.304) reads your project and recent sessions with a model call and drafts auto mode environment rules for you to review. This message means that call didn't finish, so there's no proposal and nothing was written to your settings. Run /auto-mode-setup again; if it keeps failing, it's the same cause as any failed request (a 529, a dropped connection, or a gateway in the way), so check 529 Overloaded and /status. If you cancel a proposal instead, Claude Code says Auto-mode proposal discarded — nothing was saved. Re-run /auto-mode-setup anytime. → What /auto-mode-setup does, in the auto mode guide
Auto mode classifier gave no verdict
The server-side auto mode classifier gave no verdict (error), so auto mode cannot
determine the safety of Bash.Nothing judged your command unsafe: the safety check failed to answer and auto mode blocks rather than run anything unchecked, so send another message, restart with CLAUDE_CODE_AUTO_MODE_SERVER=0 (v2.1.281 or later), or press Shift+Tab to leave auto mode. → Claude Code auto mode "gave no verdict": why even pwd gets blocked
Your own MCP server connects, then fails
The symptom is a server you wrote that shows up, connects, and then breaks on its first message.
On a stdio server, stdout is the JSON-RPC channel. In my test with SDK 2.4.0, a stray full console.log() line was skipped, but text written without a newline broke the next message and the call failed with Connection closed; log with console.error() instead. → Build a custom MCP server and add it to Claude Code
A mod does nothing, or "hooks module did not load"
Claude Code skips a mod that fails and carries on, so a broken mod looks like one that does nothing. Run claude plugin validate ./the-mod for a misspelled event, a missing modules key or a reserved name, then claude plugin test: on 2.1.302 validate passed a mod that throws at load, and only the test caught it. → Claude Code mods: examples, install, and why a mod does nothing
Claude Code ignores your conventions
The symptom is an agent that skips a rule you wrote down, or follows rules meant for a different part of the repo.
Claude Code loads every CLAUDE.md above your working directory in full at launch, so in a monorepo another team's file two directories up lands in your context too; exclude it with a claudeMdExcludes glob list in settings. → Claude Code vs Cursor: how each one decides what your agent knows
Setting up the sandbox, or running Claude Code in Docker
The symptom is a sandbox that won't start, bwrap: No permissions to create new namespace inside a container, or --dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons.
The built-in sandbox runs on macOS, Linux and WSL2, not native Windows, and when it can't start Claude Code runs commands unsandboxed unless sandbox.failIfUnavailable is true. In a default Docker container bubblewrap can't create its namespaces, so treat the container as the boundary, and run Claude Code there as a non-root user. → Claude Code sandbox: setup on macOS, Linux, Windows and Docker
Claude Code deleted your files
The symptom is a project, a folder or part of your home directory that's suddenly gone, often after Claude ran a cleanup script or a test.
/rewind restores only files Claude changed with its own edit tools, so a file that only rm touched is not in it; look in ~/.claude/file-history/, Git and your editor's local history instead. To stop a repeat, know that deny rules and hooks read only the command Claude types: a delete inside a script gets past them, and only the Bash sandbox or a container limits it. → Claude Code deleted my files: how to get them back, and how to stop it
When nothing here matches
Anthropic's docs split troubleshooting across three pages. The troubleshooting page covers performance, stability and search once Claude Code is running. The error reference lists the runtime errors Claude Code displays and how to recover from each one. Troubleshoot installation and login handles command not found, PATH, permission, network and sign-in errors.
Before you file anything, work through this:
- Run
/doctor, orclaude doctorfrom your shell if Claude Code won't start. Run/mcpto check MCP server status. - Run
claude --debugand read the newest file in~/.claude/debug/. The real request path and server reply are there, even when the on-screen message hides them. - Check status.claude.com for an active incident before you debug your own setup.
- Restart with
claude --safe-mode. It turns off every customization for one session, which is the quickest way to prove whether a plugin, MCP server or hook is the cause. - Report it with
/feedbackinside Claude Code, and search the anthropics/claude-code issues for a known bug.
Key takeaways
- Match the exact error text first. Claude Code errors fall into three groups (network and enterprise, cost and context limits, setup and tools), and each group needs a different fix.
- Behind a corporate proxy, SSL errors are fixed in the OS trust store first. Use NODE_EXTRA_CA_CERTS only when your runtime can't read that store.
- 'There's an issue with the selected model' is usually a 404 from somewhere. claude --debug shows the real path and reply.
- A 529 is a capacity error, not your quota, so switch with /model. Session and weekly limits are shared across every model.
- No error at all? Run /doctor, or claude doctor if Claude Code won't start. On WSL, search can silently miss files while still reporting OK.
Frequently asked questions
Why is Claude Code not working?
Start with the exact error text. Most Claude Code failures fall into one of three groups: network and enterprise setup (TLS-inspecting proxies, gateways, Google Cloud's Agent Platform), cost and context limits (token usage, compaction, 529 overloaded errors), or setup and tools (Windows terminals, MCP servers, auto mode). Each group has different fixes. If there is no error message at all, run /doctor inside Claude Code, or claude doctor from your shell if it won't start.
Is a 529 Overloaded error the same as hitting my usage limit?
No. A 529 means the API is at capacity, and it does not count against your quota. Capacity is tracked per model, so /model can unblock you. A usage limit shows up as 'You've hit your session limit' or 'You've hit your weekly limit'. Those limits are shared across all models, so switching models won't help.
How do I see the real error behind a vague Claude Code message?
Run claude --debug and open the newest file in ~/.claude/debug/. It records the exact request path and the server's real reply. That is how a generic 'There's an issue with the selected model' turns out to be a base URL with an extra /v1, or a proxy's HTML 404 page.
Will restarting Claude Code lose my conversation?
No. Press Ctrl+C to cancel the current operation, and close the terminal if it stays unresponsive. Then run claude --resume in the same directory to pick the session back up.
Where do I report a Claude Code bug?
Use the /feedback command inside Claude Code to report problems directly to Anthropic, and check the anthropics/claude-code GitHub repository for known issues. Anthropic's docs send account, billing and subscription problems to Anthropic support instead.
Getting AI coding tools to work cleanly inside locked-down company networks is a lot of the work I do. See recent projects.
References
- Troubleshooting — Claude Code docscode.claude.com · accessed 2026-10-08
- Error reference — Claude Code docscode.claude.com · accessed 2026-10-08
- Troubleshoot installation and login — Claude Code docscode.claude.com · accessed 2026-10-08
Last reviewed November 13, 2026
Tahir Nazir
Senior AI Engineer & Full-Stack Lead
5+ years shipping AI-powered products — RAG pipelines, agentic workflows, and MCP tooling. Top Rated on Upwork with a 100% job success score.
More about Tahir →Related articles
Claude Code SSL Certificate Verification Failed: Fix It by Error Code
API Error: Unable to connect to API: SSL certificate verification failed (UNABLE_TO_GET_ISSUER_CERT_LOCALLY) or Self-signed certificate detected (SELF_SIGNED_CERT_IN_CHAIN) behind Zscaler or any TLS-inspecting proxy. What the code in brackets means in the 2.1.316 wording, why the OS trust store comes before NODE_EXTRA_CA_CERTS, and the certificate fixes from 2.1.310 to 2.1.318.TroubleshootingAI Engineering29 min readWhy Claude Code Uses So Many Tokens (and How to See Where They Go)
Every request carries your whole conversation, so context size — not message count — sets what a turn costs. How to see your Claude Code token usage with /usage and /context, why it climbs while you're idle, and what thinking, plan mode and /compact really cost.TroubleshootingAI Engineering17 min readClaude Code 'Raw Mode Is Not Supported' on Windows? Match the Error First
Raw mode is not supported, 'claude' is not recognized, 32-bit Windows, Exec format error on WSL1 — five different Windows startup failures that get treated as one problem. Each has a distinct cause and a distinct fix, and four of them aren't install failures at all.TroubleshootingAI Engineering9 min read
Follow along
New posts land here first. Follow along by RSS, or get in touch if you are building something similar.