[BUG] I am using Claude on Windows, and when I change the API key, even after restarting the terminal or the computer, Claude continues to use the previous key. What is the reason for this?
Resolved 💬 3 comments Opened Sep 18, 2025 by 20220317 Closed Sep 25, 2025
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I am using Claude on Windows, and when I change the API key, even after restarting the terminal or the computer, Claude continues to use the previous key. What is the reason for this?
What Should Happen?
Successfully replaced Claude's key
Error Messages/Logs
Steps to Reproduce
1
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
401
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗