[BUG] Authentication Key Lost on Claude Code Updates
Environment:
Platform: WSL2
Issue: Frequent reauthorization required
Problem Description:
Claude Code frequently requires reauthorization and generation of new API keys, particularly after updates. The existing key appears to be lost during the update process, forcing users to generate new keys and clean up old ones.
Impact:
User Experience: Disruptive workflow interruption requiring frequent reauth
Organizational Overhead: Multiple developers in organization need to manage key cleanup
Analytics Degradation: Messes with Cost Per API Key statistics and tracking
Key Management Burden: Accumulation of unused keys requires manual cleanup
Steps to Reproduce:
Authenticate Claude Code with API key
Update Claude Code
Attempt to use Claude Code
Observe authentication failure requiring new key generation
Expected Behavior:
Authentication should persist across updates, maintaining the same API key.
Actual Behavior:
Each update invalidates the existing key, requiring new authentication and key generation.
Frequency:
Occurs consistently with Claude Code updates on WSL2.
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗