🔥 Launch tonight — Claude Code Power Prompts PDF 50p (just 50p tonight)30 battle-tested prompts · 8-page PDF · paste into CLAUDE.md · flat 50p tonight

Claude Code Troubleshooting

Fix the most common Claude Code errors fast — authentication failures, slow responses, context limit hits, VSCode extension issues, and MCP connection problems.

Refresh auth
claude auth logout && claude auth login
Compress context
/compact
Update CLI
npm update -g @anthropic-ai/claude-code
Clear & restart
/clear (then re-open)
Check version
claude --version
Debug mode
claude --debug

Authentication & Login Problems

Error: "Not authenticated" or login loop
Token expired, credentials corrupted, or OAuth consent revoked.
API key authentication fails (sk-ant-…)
Key revoked, wrong permissions, or pasted with extra whitespace.
Corporate proxy or VPN blocking connections
HTTPS inspection or firewall blocking api.anthropic.com.

Slow Performance & Timeouts

Claude Code responding very slowly
Large context window, rate limiting, or high API latency.
.claudeignore example:
node_modules/
dist/
build/
.next/
*.lock
*.log
coverage/
.git/
Request timeout errors
Long-running operations hitting the default timeout.

Context Window & Memory Errors

"Context window exceeded" or truncated responses
Conversation history + open files exceed the model's token limit.
Claude "forgets" earlier instructions mid-session
Instructions scrolled out of the active context window.

VSCode Extension Issues

Claude Code panel not appearing or blank in VSCode
Extension or CLI version mismatch, or extension not activated.
Inline suggestions not appearing
Inline diff mode disabled, or conflicting with GitHub Copilot.
Extension says "Cannot find claude binary"
CLI not installed globally or not on VSCode's PATH.

MCP (Model Context Protocol) Issues

MCP server not connecting or tools missing
Server process crashed, misconfigured JSON, or Node version mismatch.
MCP tools appear but return errors
Server running but tool inputs failing schema validation or missing credentials.

Git & Permission Errors

Claude Code won't run git commands
Permission mode set to "default" blocks shell commands without explicit approval.
"Permission denied" writing files
Running Claude in a directory with restricted permissions.

Frequently Asked Questions

Claude Code installed but the `claude` command is not found

Your shell's PATH doesn't include npm's global bin directory. Run npm config get prefix to find the npm prefix, then add <prefix>/bin to your PATH in ~/.bashrc or ~/.zshrc.

echo 'export PATH="$(npm config get prefix)/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
which claude  # should now return a path
How do I completely reset Claude Code?

To clear all state: rm -rf ~/.claude/ then re-authenticate with claude auth login. This removes all conversations, settings, and credentials — use as a last resort.

Claude Code is producing different results than before

Claude's responses are non-deterministic by design. For consistent results: pin exact instructions in CLAUDE.md, use specific task descriptions rather than vague ones, and break complex tasks into smaller deterministic steps.

How do I report a Claude Code bug?

File issues at github.com/anthropics/claude-code/issues. Include: claude --version output, OS version, the exact command or prompt that failed, and the error message. For security issues use Anthropic's responsible disclosure process instead.

Claude Code says I'm out of credits — what do I do?

Go to console.anthropic.com → Billing and add credits or upgrade your plan. Claude Code uses the same API credits as direct API calls. There's no separate "Claude Code" billing — it all comes from your Anthropic account balance.

Still Stuck?

These resources help when the above fixes don't resolve your issue:

Related Guides