CLAUDE LABJP
FORK — Claude Code 2.1.212 changes what /fork does: it copies your conversation into a new background session with its own row in claude agents, so you can keep working. The old in-session subagent is now /subtaskLIMITS — WebSearch calls are now capped at 200 per session by default, and subagent spawns get the same 200 ceiling, so a runaway search or delegation loop stops on its ownMCPBG — MCP tool calls running past two minutes now move to the background automatically, keeping the session usable. Tune the threshold with CLAUDE_CODE_MCP_AUTO_BACKGROUND_MSPLANFIX — Fixed plan mode auto-running file-modifying Bash commands such as touch and rm without a permission prompt or an SDK canUseTool callbackSONNET5 — Claude Sonnet 5 is running on introductory pricing of $2 per million input tokens and $10 per million output. After August 31 it moves to $3 and $15IPO — Bankers are reportedly lining up investor meetings for Anthropic ahead of a possible public listing as soon as OctoberFORK — Claude Code 2.1.212 changes what /fork does: it copies your conversation into a new background session with its own row in claude agents, so you can keep working. The old in-session subagent is now /subtaskLIMITS — WebSearch calls are now capped at 200 per session by default, and subagent spawns get the same 200 ceiling, so a runaway search or delegation loop stops on its ownMCPBG — MCP tool calls running past two minutes now move to the background automatically, keeping the session usable. Tune the threshold with CLAUDE_CODE_MCP_AUTO_BACKGROUND_MSPLANFIX — Fixed plan mode auto-running file-modifying Bash commands such as touch and rm without a permission prompt or an SDK canUseTool callbackSONNET5 — Claude Sonnet 5 is running on introductory pricing of $2 per million input tokens and $10 per million output. After August 31 it moves to $3 and $15IPO — Bankers are reportedly lining up investor meetings for Anthropic ahead of a possible public listing as soon as October
Articles/Claude Code
Claude Code/2026-04-24Advanced

The Claude Code Error Handbook — Auth, Billing, Stalls, Tools & MCP, Diagnosed by Symptom

A field-tested reference for 40+ Claude Code error patterns, organized by visible symptom: authentication, billing, response stalls, tool failures, MCP connectivity, and hook issues. Each entry tells you where to look and what to change.

claude-code129troubleshooting87error17handbookauthentication4billing8mcp18hooks14

Premium Article

If you use Claude Code professionally, the time you spend deciphering error messages starts to outweigh the time you spend writing code. What makes it worse is that similar-looking errors can come from completely different layers — auth, billing, model generation, tools, MCP, hooks — and the right fix depends entirely on identifying which layer actually failed. This handbook is the reference I wish I'd had two years ago: a symptom-indexed map of the Claude Code errors I've actually hit, each paired with the log to inspect, the root cause to verify, and the specific recovery path.

How to read this handbook

The handbook is organized into six chapters. When you hit an error, jump to the chapter that matches the symptom. Each entry follows the same four-part structure: symptom, where it's happening, how to inspect it, and how to recover.

  1. Authentication and permission errors
  2. Billing, card declines, and subscription problems
  3. Response stalls, incompletes, and timeouts
  4. Tool-call failures (Bash / Read / Edit / Write)
  5. MCP server and hook failures
  6. Environment- and config-driven compound errors

1. Authentication and permission errors

Authentication in Claude Code lives in two layers at once: the Anthropic account, and the local CLI credentials. When they drift — one expires, or the CLI holds a token for the wrong workspace — you get errors that look random but are actually deterministic.

Symptom: Invalid API key at startup

Your cached access token has expired or was silently overwritten by a different account. Check ~/.claude/credentials.json for the token's expiry. If it's stale, run claude logout && claude login. On macOS, also clear any stale Keychain entry: security delete-generic-password -s "Claude Code" before re-logging in.

Symptom: You do not have access to this organization

This appears right after being invited to a new organization or switching workspaces. The CLI caches an access token that hasn't re-scoped yet. Fix with claude config set workspace <workspace-id> or a full logout/login cycle.

Symptom: Partner Network returns 403 Forbidden

If your integration runs through Claude Partner Network, the partner-to-workspace binding can expire silently. Check the Partner Network dashboard, re-authorize on the partner side if needed. Partner Network tokens are distinct from your main Anthropic token — they don't refresh together.

Symptom: 2FA code never arrives

Confirm the email on file is still active. Corporate mail filters routinely quarantine no-reply@anthropic.com; ask IT to whitelist it. If you use an authenticator app and codes are rejected as invalid, your device clock has drifted — enable automatic time sync.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
A symptom-first map of every major Claude Code error class, so you can jump from the message you see to the fix
A layered recovery playbook for card-declined and payment-failed errors, covering both cardholder and provider-side causes
Concrete pointers to the exact log file, env var, or setting to check when tool calls, hooks, or MCP servers stall
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Claude Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

Claude Code2026-06-02
Fixing Claude Code's 'Credit balance is too low' Error
You launch Claude Code and it immediately stops with 'Credit balance is too low' — even though you have an active subscription. The error looks like a money problem, but it is almost always a mismatch in which auth path is billing you. Here is how to tell them apart and fix it: switching auth routes, topping up credits, and setting auto-reload.
Claude Code2026-06-10
When git add -A Sweeps Up .bak Backups — The Quiet Trap of In-Place Fix Scripts
How .bak backups left by sed -i and homegrown --fix scripts get silently swept into production by git add -A, why it is so easy to miss, and how scoped adds and .gitignore close the gap for good.
Claude Code2026-06-09
When Yesterday's Article Bleeds Into Today's — The Stale Fixed-Name Temp File Trap
In a Claude Code automation pipeline, a fixed-name temp file kept stale content from the previous run and leaked old body text into a completely different article. Here is why the write fails silently, and how unique names plus a post-write grep check prevent it.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →