[BUG] Cluade Code does not work for some projects on PyCharm
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?
Hi, I am using Claude Code via PyCharm's integration. While works most of the time, for some projects, it keeps getting "Invalid API key · Please run /login", despite I am on a MAX subscription. With the same device, and the same claude account, it works for other projects. Why it is the case?
<img width="1019" height="419" alt="Image" src="https://github.com/user-attachments/assets/3997e02d-3855-43e9-804f-05b1604ecb53" />
What Should Happen?
Claude should work.
Error Messages/Logs
Steps to Reproduce
/login
Select login method:
❯ 1. Claude account with subscription
Starting at $20/mo for Pro, $100/mo for Max - Best value, predictable pricing
Authorize on the website
Login successful. Press Enter to continue…
Then if I send any message, I get this
<img width="1021" height="177" alt="Image" src="https://github.com/user-attachments/assets/d7f42c03-f5e1-431d-839e-73affd6d4d23" />
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
1.0.71 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
IntelliJ IDEA terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗