Claude Code
How do you troubleshoot authentication issues in Claude Code?
QUICK ANSWER
Resolve CLI authentication issues by running '/config set logout', clearing your ~/.config/claude-code credentials directory, and restarting the CLI to run the OAuth flow again.
Step-by-step Troubleshooting
- Run
/config set logoutinside the Claude Code prompt if accessible. - If the prompt is locked or failing, delete the cached credentials file locally:
rm -rf ~/.config/claude-code - Verify your developer account status and credit balance in the Anthropic Console.
- Start the utility again by running
claudeto initiate a fresh browser-based device link verification flow.
Verified against: Claude Code CLI v0.2.5