All articles
Claude CodeClaudeFixes

Claude Code Errors: The Essential Fix List for 400, 403, 429 and 529

A lookup table for Claude Code errors, checked against Anthropic's error reference on Oct 21, 2026: what 400, 401, 403, 429 and 529 mean, login problems A1-A4, usage problems U1-U11, and which ones aren't officially documented.

Claude Code errors guide cover: a grid of pale tiles with one cracked tile under a magnifying glass
Also available in中文Español

Claude Code errors tend to show up at the worst moment, and the message is usually half a sentence. This page is my lookup table. Every entry was checked on October 21, 2026 against Anthropic’s error reference and install troubleshooting page; when something isn’t in the official docs, I say so instead of guessing.

Each of these Claude Code errors has a number. I = install, A = login (auth), U = usage. Install problems live on the install guide; login and usage problems are below. Find your message in the table, click the number, done.

Claude Code errors lookup table

Claude Code errors grouped by stage: install I1-I9, login A1-A4, usage U1-U11
Message you seeJump toStage
command not found: claudeI1install
EACCES: permission deniedI3install
npm WARN EBADENGINEI4install
curl: (22) ... 403 / App unavailable in regionI8install
OAuth error: Invalid codeA1login
API Error: 403 Request not allowedA2login
OAuth error: Request failed with status code 403A2login
Your organization has disabled Claude subscription accessA2login
Paste code here if prompted (stuck)A3login
Not logged in · Please run /loginA4login
Repeated 529 Overloaded errorsU1usage
Request rejected (429)U2usage
You've hit your session limitU3usage
You've hit your weekly limitU3usage
Usage credits required for 1M contextU4usage
This organization has been disabledU5usage
Credit balance is too low / Invalid API keyU6usage
thinking.type.enabled is not supportedU7usage
thinking type should be enabled or disabledU7usage
Error editing file / Error writing fileU8usage
Error loading webviewU9usage
Claude Code error today (is it down?)U10usage
Your account is on holdU11usage
svc-telemetry / Claude Code 2.1.313 (Open VSX, Cursor marketplace)checksecurity
Please run /login · API Error: 401 OAuth token has expired / OAuth token revokedA5 loginOAuth token expired, revoked, --bare ignored CLAUDE_CODE_OAUTH_TOKEN, or full ~/.claude quotaFix 401 OAuth token expired
<model> is temporarily unavailable, so auto mode cannot determine the safety of... / Not run · auto mode's check had no usable answerU12 auto modeSafety classifier model timed out or overloadedFix auto mode unavailable
Monthly spend limit / extra usage cap reachedU13 spend limitOrg or personal extra-usage monthly cap hitCheck spend limit
Credit balance is too low on a Pro/Max planFull fixusage
Prompt is too longFull fixusage
Postman plugin you didn’t install (hooks, MCP) in Claude Code or CodexCheck and remove itsecurity

Check this first: which credential is Claude Code using?

Claude Code errors from the wrong credential: authentication precedence ladder with ANTHROPIC_API_KEY above the subscription login

Honestly, a third of the Claude Code errors I’ve helped people with came down to one thing. Claude Code uses the first credential it finds, in this order: cloud provider settings, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_API_KEY, an apiKeyHelper script, CLAUDE_CODE_OAUTH_TOKEN, then your /login subscription (official order). So an old API key in ~/.zshrc or a project’s .env quietly wins over the Pro plan you’re paying for. In -p mode the key is always used. With no credential at all, background runs fail with Could not resolve authentication method.

Run /status. If there’s an API key row you didn’t expect, that’s likely your 400, your 401, your 429 or your “credit balance” message. Fixing it takes ten seconds and clears a surprising number of Claude Code errors at once.

Login errors A1 to A4

A1. Login fails: the general reset

The official reset is boring and works: /logout, quit Claude Code, run claude again and log in. OAuth error: Invalid code. Please make sure the full code was copied means the code expired or got cut off, so finish quickly after the browser opens. Failed to start OAuth callback server means Claude Code can’t listen on 127.0.0.1 (common in sandboxes); the docs suggest running claude setup-token on a machine where login works and setting the result as CLAUDE_CODE_OAUTH_TOKEN (source).

A2. API Error: 403 Request not allowed / OAuth 403

The official checklist for a 403 after login: on Pro or Max, open claude.ai/settings and confirm the subscription is actually active (remember Free doesn’t include Claude Code). On a Console account, you need the “Claude Code” or “Developer” role, which an admin assigns (source).

A cousin of this one: Your organization has disabled Claude subscription access for Claude Code. That’s a server-side org setting. Nothing local overrides it; ask your admin, or use a Console API key (source).

A3. Login stuck in WSL2, SSH or a container

The browser opens somewhere the callback can’t reach. The browser page shows a code; paste it at Paste code here if prompted. If pasting doesn’t work, use claude auth login. In WSL2, if no browser opens at all, set BROWSER to your Windows browser path and retry (source).

A4. Not logged in · Please run /login (again and again)

Run /login. If it keeps happening, check that your system clock is right. On macOS a locked Keychain is a known cause; claude doctor will flag macOS Keychain is not writable. There was also a bug before v2.1.211 where waking from sleep logged all sessions out at once, so update if you’re behind (source).

Usage errors U1 to U11

Claude Code errors cheat sheet for HTTP 400, 401, 403, 429, 500 and 529

U1. 529 Overloaded (and 500)

API Error: Repeated 529 Overloaded errors means the API is at capacity. It’s not your quota, and Anthropic says it doesn’t count against your limits. Claude Code already retried before showing it. Wait a few minutes, check status.claude.com, or switch model with /model, since capacity is tracked per model. A 500 Internal server error is also on their side (source).

U2. 429 Request rejected

Official meaning: you hit the rate limit of an API key, a Bedrock project or a Google Cloud project. That’s the pay-per-token path, not your subscription. So run /status first; a stray ANTHROPIC_API_KEY can route you through a low-tier key. Otherwise lower concurrency or ask for a higher tier. The different-looking Server is temporarily limiting requests (not your usage limit) is a short server throttle, and since v2.1.199 Claude Code retries it automatically (source).

U3. You’ve hit your session limit / weekly limit

This is your plan quota. The messages look like You've hit your session limit · resets 3:45pm or You've hit your weekly limit · resets Mon 12:00am. Session and weekly limits are shared across models, so switching model won’t help; the separate Opus or Sonnet limits are the exception. Run /usage to see when you reset, /usage-credits to buy extra usage on Pro or Max, and since v2.1.234 Claude Code can wait and continue automatically after the reset (the setting is in /config) (source). How the two clocks interact is in Claude usage limits explained.

If you searched “claude code usage limit bug”: there’s a big open GitHub thread, issue #16157, where Max users report limits draining unusually fast. It had 1,499 comments when I checked. Anthropic hasn’t posted an official explanation that I could find, so I’m not going to pretend to know the cause.

U4. Usage credits required for 1M context

Not a quota problem. You picked a [1m] model and your plan only includes 1M context through usage credits. /model and pick the variant without [1m], or turn on usage credits and restart. CLAUDE_CODE_DISABLE_1M_CONTEXT=1 hides those variants entirely (source).

U5. 400 This organization has been disabled

Scary wording, usually harmless. Per the docs, Claude Code is using a stale ANTHROPIC_API_KEY from a disabled Console organization, often an old job’s key in your shell profile. It is not your subscription being banned. Run unset ANTHROPIC_API_KEY (PowerShell: Remove-Item Env:ANTHROPIC_API_KEY), delete it from your profile, relaunch, check /status. No variable set and it still happens? Contact support (source). I go through the difference between this and a real account suspension in my Claude account ban notes.

U6. Credit balance is too low / Invalid API key / 401

Credit balance is too low: your Console org ran out of prepaid credit, or (again) an API key is overriding your subscription. Invalid API key: typo, revoked key, or invisible characters; env | grep ANTHROPIC finds keys loaded by direnv or .env. 401 Invalid authentication credentials: check /status, then /login once (source).

U7. 400 errors about thinking

"thinking.type.enabled" is not supported for this model means your Claude Code is older than the model needs. claude update and restart. Official minimums: Opus 4.7 needs v2.1.111, Opus 4.8 v2.1.154, Sonnet 5 v2.1.197, Opus 5 v2.1.219, Opus 5.5 v2.1.280, Sonnet 5.5 v2.1.284. On the stable channel you may need to switch to latest (source).

API Error: 400 thinking type should be enabled or disabled is a different animal. That text is not in Anthropic’s error reference at all. As far as I can tell it comes from a non-Anthropic endpoint, when ANTHROPIC_BASE_URL points at a third-party “compatible” API that doesn’t accept Claude Code’s thinking settings. Run echo $ANTHROPIC_BASE_URL. With Anthropic’s own API or a subscription you shouldn’t see it. I don’t troubleshoot third-party endpoints here.

400 due to tool use concurrency issues means the conversation history got corrupted; /rewind as the message suggests (source).

U8. Error editing file / Error writing file

The chat view only shows the short Error editing file; the real reason is in the transcript view (Ctrl+O), and Claude usually retries on its own. A common one is Found 2 matches of the string to replace, meaning the text wasn’t unique (#3337). “Error writing file” has no entry in the official reference, so I can’t tell you an official meaning; check the transcript for the underlying message.

U9. VS Code: Error loading webview

No official entry for this either. What the docs do say: the extension needs VS Code 1.94.0 or newer. The usual report looks like #24142 (a service worker failing to register, now closed). Update VS Code and the extension first, then reload the window. Beyond that it’s community guesswork, and I’d rather not pass it off as a fix.

U10. Is Claude Code down today?

Check status.claude.com (the old status.anthropic.com redirects there). When I looked on October 21 it said All Systems Operational; the most recent major incident listed was on October 7. If the status page is green and only you are seeing Claude Code errors, go back to /status.

U11. Your account is on hold

Your account is on hold and can't use Claude Code. View details or appeal: https://claude.ai/restricted. Logging in again won’t fix it, because the hold is on the account. The only route I’ll point you to is the official one: open that link, read the details, appeal through Anthropic’s safeguards and appeals page. Refunds after a suspension: I couldn’t find an official policy specific to that, only the general refund terms. More in what to do when your Claude account is banned.

If Claude Code can’t reach the API at all and shows Unable to connect to API, our Claude Code unable to connect to API guide walks through the network, proxy and ANTHROPIC_BASE_URL checks.

If the connection works but Claude Code answers with There's an issue with the selected model, the backend got the request and rejected the model name. With Ollama or OpenRouter that is usually a model that isn’t pulled, a missing tag or a base URL ending in /v1. Our tested fixes for there’s an issue with the selected model cover each case.

Claude Code output token maximum: when a reply gets cut off

If Claude Code stops in the middle of a long reply with the error below, the reply hit the output token maximum for that request and was cut off. It isn’t a context or usage limit. The wording comes from the official Claude Code error reference:

API Error: Claude's response exceeded the ... output token maximum. To configure this behavior, set the CLAUDE_CODE_MAX_OUTPUT_TOKENS environment variable.
API Error: Claude's response exceeded the 64000 output token maximum for a request sent without streaming. The CLAUDE_CODE_MAX_OUTPUT_TOKENS environment variable cannot raise this limit.

We reproduced both on Claude Code 2.1.312 with a mock API that ends every reply with stop_reason: max_tokens. With the session model claude-opus-5-5, Claude Code asked for max_tokens: 128000 and printed API Error: Claude's response exceeded the 128000 output token maximum. To configure this behavior, set the CLAUDE_CODE_MAX_OUTPUT_TOKENS environment variable. With CLAUDE_CODE_MAX_OUTPUT_TOKENS=8000 the request asked for 8000 and the message said 8000. When we broke the stream, Claude Code re-sent the request without streaming and showed the 64000 form. Per the docs, a non-streaming re-send is capped at 64,000 output tokens, and before v2.1.299 a reply cut off that way ended the turn with no message at all.

  • If Claude wrote part of the answer, reply continue in an interactive session; the partial text stays in the conversation.
  • Ask for the output in smaller pieces, such as one file or one section per reply.
  • If the message tells you to, set CLAUDE_CODE_MAX_OUTPUT_TOKENS (where to set environment variables). Claude Code lowers a value above the model’s cap to the cap, and a higher value leaves less room before auto-compaction.
  • The 64000 form can’t be raised with that variable. It means streaming failed, so check what breaks the stream, such as a proxy or gateway (it often shows up first as Streaming response ended before any complete data); our settings.json guide shows where the env block goes.

Install errors live on the install page

Claude Code errors that happen before your first login (PATH, permissions, Node warnings, WSL, the wrong Windows shell, a 403 from the install script) are in the Claude Code install guide, numbered I1 to I9. Jump straight to I1 command not found or I8 install script 403.

LiteLLM 1.107.0 was poisoned: check your proxy setup

If you route Claude Code or Codex to other models through a LiteLLM proxy (for example by pointing ANTHROPIC_BASE_URL at it), this one is for you. That proxy usually holds every upstream API key you have, and the malware in this release goes looking for exactly those keys, plus the config files of Claude Code, Codex, Cursor and similar tools.

What happened, times in Beijing time (UTC+8), October 21, 2026: at about 19:39, litellm 1.107.0 was uploaded to PyPI, and all 7 wheels contained a credential stealer. They drop cook.pth, cook.py and sitecustomize.py into site-packages, so the code runs every time Python starts, even if nothing imports litellm, and you shouldn’t count on pip uninstall to remove them. It collects browser passwords, SSH keys, cloud credentials, environment variables and AI tool configs (Claude, Codex, Cursor and more), and sends them to www.litellm.dev, a lookalike domain; the real project domain is litellm.ai. sitecustomize.py also starts a background loader that checks every hour for remote code to run. When the reports were written it had nothing to fetch, but the attacker can switch it on at any time. From about 19:48, the Docker tags latest, main-latest and main-stable (plus v1.107.0) pointed at the infected image. PyPI has since pulled 1.107.0, and the latest version there is 1.106.2. At 22:32 the maintainers said the malicious Docker images had been removed and that they were still investigating how the release was published. The payload is not in the v1.107.0 tag on GitHub; according to the Upwind researchers who reported it, the release was built from a lookalike repo, Berri-AI/litellm (with a hyphen).

  1. Look for the dropped file from the shell first, without starting Python: find / ( -path '*site-packages*' -o -path '*dist-packages*' ) -name cook.pth 2>/dev/null. If you find cook.pth, treat the machine as infected.
  2. Run pip show litellm in each environment that has it. If it says 1.107.0, you’re affected. (pip itself is Python, so on a machine that has the files it will run the payload again; that’s why the file check comes first.)
  3. If you pulled the Docker tags latest, main-latest or main-stable tonight, redeploy pinned to v1.106.2 (by digest if you can), and pin litellm==1.106.2 in Python too.
  4. If you were infected: kill the background Python process holding /tmp/remote_code_loader.lock, delete cook.pth, cook.py and sitecustomize.py (and their __pycache__ copies) from site-packages by hand, then rotate every key that machine could see: provider keys stored in the LiteLLM proxy, the proxy master key, cloud keys, SSH keys, tokens in environment variables. Rebuilding the environment from scratch is cleaner.

Sources: the GitHub issue #47826 and AISLE’s analysis. For the full timeline, payload analysis and Docker digest findings, see our full breakdown of the LiteLLM supply chain attack.

Claude Code extension 2.1.313 planted an SSH backdoor (Open VSX and Cursor’s marketplace): check svc-telemetry

This is for you if you use the Claude Code extension in Cursor, Windsurf or VS Code and it came from Open VSX or from Cursor’s own extension marketplace. If you had version 2.1.313 at any point on October 29 or 30, check your machine. The bad code runs as soon as the extension loads or its webview opens. You don’t have to send Claude a single message.

Where it was confirmed. OpenSourceMalware analyzed the Open VSX package that called itself [email protected] and confirmed it is malicious. Cursor then confirmed that its own extension marketplace served the same malicious 2.1.313. Cursor says it was there from about 2:27am to 1:35pm PT on October 29, 2026. That’s about 17:27 on October 29 to 04:35 on October 30 Beijing time (UTC+8), roughly 11 hours. Cursor says this version was not developed by Anthropic and that at most 5,000 users were affected. It will contact them directly. Microsoft’s VS Code Marketplace is a separate store. I haven’t seen any confirmation that its 2.1.313 is malicious. OpenSourceMalware filed a precautionary report for it, but they only analyzed the Open VSX file. Cursor says it has no evidence that other versions or the official distribution are affected.

What it does. A 66-line block was added to the top of extension.js. It adds an Ed25519 key with the comment svc-telemetry to ~/.ssh/authorized_keys. It tries to turn on SSH or Remote Login and opens a reverse tunnel to 134.209.82.225 (tunnel@…, -R *:0:localhost:22). It sends host details to port 8099 over HTTP. It also sets up persistence: a LaunchAgent called com.apple.sysmond.plist on macOS, a cron @reboot entry on Linux, and a SysMon scheduled task or a Startup item on Windows. Files to look for: ~/.config/.smt, ~/.config/.smtk, ${TMPDIR}/.stk_*, and on Windows .configsmt.cmd and smtk. OpenSourceMalware lists the Open VSX publisher as Anthropic employee Igor Kofman. Nobody has said how the package got published.

The current state. Cursor removed the version, then shut its whole marketplace down as a precaution. It audited access and found no other extensions had been tampered with. It rotated its keys, rebuilt the marketplace and brought it back online. Cursor also had the attacker’s server taken offline with the hosting provider, so the reverse tunnel and the host-detail upload no longer work. Turning on the local SSH service needs admin rights, and the extension doesn’t have them on most macOS and Windows machines. On those machines that step usually fails, and Cursor says the attacker could not have logged in through the tunnel. But the key, the persistence and the host-detail upload happen anyway, so clean up regardless. Per the earlier reports, Open VSX pulled 2.1.313 and replaced it with 2.1.314. Uninstalling the extension is not enough, because the persistence scripts keep running.

Cursor’s checks. On macOS (Linux uses the same file):

grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted"

On Windows, in PowerShell. This also checks C:ProgramDatasshadministrators_authorized_keys:

$files = "$HOME.sshauthorized_keys", "C:ProgramDatasshadministrators_authorized_keys" | Where-Object { Test-Path $_ }
if ($files -and (Select-String svc-telemetry $files)) { "svc-telemetry key found" } else { "No key found; machine not impacted" }
  1. Run the check above. If it prints svc-telemetry key found, treat the machine as infected.
  2. Also look for the IP 134.209.82.225, the LaunchAgent com.apple.sysmond.plist, long-running ssh or autossh processes with -R *:0:localhost:22, and the files listed above. These are the checks in the OpenSourceMalware and Cursor write-ups.
  3. If infected, take the machine off the network first and keep the evidence. Then run Cursor’s script: remediate-macos.sh as the affected user, not as root, or remediate-windows.ps1 from PowerShell opened as Administrator. The scripts remove the extension, the persistence, the tunnel processes and the key.
  4. Rotate every credential and session that machine could reach, and do it from a trusted machine. Rebuilding the machine is safer than assuming the cleanup got everything.

Sources: Cursor’s security notice and Cursor’s post on X, and OpenSourceMalware’s analysis.

Claude Code errors FAQ

What does Claude Code error 400 mean? Depends on the text after it. “organization has been disabled” is a stale API key (U5), “thinking.type.enabled” is an old version (U7), “thinking type should be enabled or disabled” is a third-party endpoint (U7).

Claude Code error 403? At login, an inactive plan or missing role (A2). At install, the script URL returned a page (I8).

Claude Code error 429 vs 529? 429 is an API key or cloud project rate limit (U2). 529 is Anthropic’s capacity, not your quota (U1).

Claude Code usage limit reached, when does it reset? The error message tells you, and /usage shows both windows. Changes to the limits are logged in my usage limit tracker.

Can I bring my Codex setup into Claude Code? Yes, officially with /import codex (commands reference), and --dry-run previews it. People also mention claude mcp serve; I couldn’t find it in Anthropic’s current docs, so don’t treat it as officially supported.

I installed Claude Code 2.1.313 from Open VSX or Cursor’s marketplace. What now? Run grep svc-telemetry ~/.ssh/authorized_keys first (Windows has its own PowerShell check), then follow the Claude Code 2.1.313 SSH backdoor section. Microsoft’s VS Code Marketplace is not confirmed affected.

Two newer exact-message guides: Claude Code does not support this model (usually an outdated build) · safeguards flagged this message (official feedback and CVP only).

More on this: Claude Code install guide · Claude and Codex usage limit tracker · AI subscription and API price comparison · Claude category

For a separate network and privacy check, use the Claude Code telemetry self-check. It covers optional Datadog traffic and permissions. Network observations alone do not establish an account-ban reason.

New: Claude Code “Error editing file”: press Ctrl+O for the real reason (five refusals reproduced on 2.1.312).

Related: You’ve hit your session limit in Claude Code, what the message means and 5 ways to keep working.

Related: Claude Code “claude native binary not installed”, the two npm causes and the fix I tested on 2.1.319.

Leave a thought

Your email address will not be published.